agent-operated-workflows
ما الذي تفعله
تشرح هذه المهارة متى ينبغي أن يتحكم وكيل ذكاء اصطناعي في إجراء عمل متكرر، وكيف تبنيه. وهي موجهة للفرق التي تصمم أتمتة تتعامل مع حالات فوضوية من الواقع.
متى تستخدمها
- ✓عندما يكون للإجراء مسار واضح للنجاح، لكن حالته في الواقع فوضوية أو غير متوقعة.
- ✓عندما تحتاج إلى أن تستأنف عملية بأمان اعتمادًا على أدلة موثّقة.
- ✓عندما يجب أن تقرر هل يتحكم وكيل أم كود عادي في عملية ما.
رابط المهارة
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“عملية مطابقة الفواتير لدينا لها خطوات واضحة لكن بياناتها فوضوية. هل يشغّلها وكيل، أم نستخدم كودًا عاديًا؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
تقارن بين تكلفة الكود الشامل وقيمة حكم الوكيل، ثم تحدد كيف يراقب الوكيل ويتصرف ويتحقق ويحيل الأمر إلى شخص.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Agent-Operated Workflows
An Agent-Operated Workflow is a bounded procedure whose control loop belongs to an agent. The agent observes, interprets, sequences bounded actions, verifies their effects, adapts, and escalates genuine ambiguity. Deterministic code remains the exact substrate; it does not pretend to understand every state of a brownfield world.
Name the architecture before using it
- AI-enabled software: application code owns the control loop and calls a model as one capability.
- Agent-Operated Workflow: an agent owns one bounded procedure with a start and stop condition.
- Agent-Operated Software: an OpenRig agent or rig participates in an ongoing application's live
backend or control loop. It may run many workflows; see
agent-operated-software.
Calling a model is not enough. A deterministic program that consults a model still owns its loop.
Decide whether the agent earns the loop
Use an agent when the happy path is deterministic but the environment is brownfield, variable, partially knowable, or disproportionately expensive to model exhaustively. The judgment is in discovering what is true and choosing the next safe act.
Prefer ordinary code when the state space is closed and code is simpler and more reliable than judgment. A parser, fixed data transformation, or fully enumerated state machine does not become better because an agent drives it.
Keep ownership explicit
| Owner | Responsibility |
|---|---|
| Runbook | owns policy, the mental model, checkpoints, stop conditions, and escalation rules |
| Deterministic tools | own context gathering and bounded exact actions |
| Agent | owns interpretation, sequencing, adaptation, and effect verification |
| Human | owns destructive ambiguity and product policy |
The runbook guides judgment; tools enforce the invariants that must not be arguable.
Operate
- Establish identity, durable state, the runbook, and the promised outcome.
- Inspect with side-effect-free reads or an explicit plan mode.
- Choose one bounded action from observed state; do not mechanically replay the happy path.
- Verify the effect at the consumer or state surface that could prove it wrong.
- Record an observable checkpoint before moving on, so another agent can resume.
- Continue, stop at the declared condition, or escalate with evidence and the decision needed.
An interrupted or timed-out mutation is indeterminate, never failed by assumption and never safe to retry blind. Where a compatibility period is safer, separate reversible preparation from the destructive finalizer. Idempotence is a claim to prove per action, not a label for the whole run.
Build
Expose composable verbs, not an optimistic end-to-end controller. Help is inert. Read and plan modes are explicit. Mutations are narrow and independently readable. A failure should say what was observed, why the tool stopped, what remains unchanged, the safe next choices, and where its evidence lives. Keep checkpoints durable, effects observable, and recovery possible without private developer knowledge.
A capability composition is a reusable recipe; this is the execution architecture that operates capabilities toward an outcome. Promote a proven workflow to the composition shelf only after use.
Public example: load skills/core/openrig-upgrade/SKILL.md with
rig context get for the upgrade runbook. Its adjacent scripts/ directory
contains the bounded inspection, backup, plugin-refresh and migration helpers.
Follow that runbook for the procedure; this skill carries the reusable contract.
الأسئلة الشائعة
متى يكون الكود العادي أفضل؟
تقول المهارة إن مجموعة محددة من الحالات الثابتة يعالجها الكود العادي أفضل، مثل المحلل أو التحويل الثابت.
ماذا يعني التصعيد هنا؟
يعني أن الوكيل يسلّم الغموض الحقيقي إلى شخص بدل أن يخمّن.
هل استدعاء النموذج هو نفسه الوكيل؟
لا، تقول المهارة إن البرنامج الذي يستدعي نموذجًا يملك حلقته الخاصة، ولذلك ليس سير عمل لوكيل.
التفاصيل
الوصف الأصلي من المؤلف
Use when a bounded real-world procedure has a deterministic happy path but brownfield, variable, or partially knowable state; when an operation must resume from verified evidence; or when deciding whether agent judgment or ordinary code should own a procedure's control loop.
repo: mvschwarz/openrig
الشعبية
- نجوم GitHub
- 8.6k
- الترتيب
- #12383
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
agent-operated-software
8.6kيساعد وكيلك على تصميم تطبيق مستمر أو بناءه أو تصحيحه، يعمل فيه وكلاء الذكاء الاصطناعي ضمن الخادم الخلفي، مع مستوى تحكم بملفات Markdown أو JSON.
applying-a-permission-policy
8.6kيساعد وكيلك على ضبط أذونات الأوامر التي يستخدمها وكيل البرمجة أثناء إعداد الفريق، لتعمل الأوامر الروتينية بعدد أقل من طلبات الموافقة.
claude-compaction-restore
8.6kيساعد وكيل Claude Code على إعادة بناء صورة عمله بعد ضغط سياقه، باستخدام خريطة استعادة محفوظة وسجل المحادثة والملفات التي لمسها.
delegating-work
8.6kيساعد وكيلك على تحديد من ينفّذ المهمة: هو نفسه أو وكيل فرعي أو زميل يملك السياق، وكيف يوجّه ذلك العامل.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.