delegate
ما الذي تفعله
توضح هذه المهارة متى يمكن تسليم أجزاء من عمل أكبر إلى وكلاء فرعيين يعملون في الوقت نفسه. وهي موجهة لمن يشغّل مهام برمجة أو بحث أو تدقيق متعددة الخطوات بالذكاء الاصطناعي.
متى تستخدمها
- ✓عندما يمكن تقسيم مهمة كبيرة إلى أجزاء مستقلة تعمل في الوقت نفسه.
- ✓عندما تريد من مساعد مراجعة مقروءة فقط لمجموعة محددة من الملفات.
- ✓عندما يمكن تسليم تعديل ميكانيكي أو تشغيل اختبارات مع حدود واضحة.
رابط المهارة
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/delegate/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“قسّم هذا الترحيل إلى أجزاء، واجعل المساعدين يتولون فحص الملفات بينما تتولى أنت التصميم.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يحتفظ الوكيل الرئيسي بالقرارات والمراجعة النهائية، ثم يعطي كل مساعد نتيجة واضحة ومعايير قبول، ويشغّل المساعدين المستقلين معاً.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Delegate
Use sub-agents when they can do focused work in parallel while the parent keeps architectural judgment, integration, and final verification.
Keep vs Delegate
Keep in the parent:
- Understanding the user's actual request and constraints
- Architecture, security, product, and release-risk decisions
- Cross-module integration
- Final review, test interpretation, and user-facing summary
Delegate to sub-agents:
- Read-only exploration over a bounded file set
- Mechanical edits with a clear file ownership boundary
- Focused test or lint runs
- Boilerplate generation from an explicit spec
- Independent checks that can run while parent work continues
Do not delegate tiny one-step tasks, ambiguous product decisions, destructive operations without a clear acceptance criterion, or final verification.
Launch Focused Work
Use agent for a focused child run. Launch independent children together so they can run in parallel.
Give each child a concrete outcome and acceptance criteria. Let it continue until the work is complete or it needs input. Do not invent time, turn or token budgets, or tell it to stop early because a percentage of a budget has elapsed. The runtime carries any limits explicitly configured by the owner.
Prefer provider-neutral model_strength over hardcoded model ids. Children inherit the active model by default (model_strength: "same"), including type: "explore", so pass model_strength: "faster" explicitly to get the cheaper same-family sibling for read-only exploration:
{
"name": "config_audit",
"prompt": "Inspect crates/tui/src/config.rs and crates/tui/src/settings.rs for duplicate model-default logic. Return file/line findings only; do not edit files.",
"type": "explore",
"model_strength": "faster",
"cwd": "."
}
For code changes, give the child a precise write boundary and tell it not to revert unrelated edits. Keep implementation children capable with model_strength: "same":
{
"name": "docs_patch",
"prompt": "Update only docs/configuration.md to document the new [statusline] keys. Match the surrounding style. Do not edit other files.",
"type": "implement",
"model_strength": "same",
"cwd": "."
}
Use fork_context: true only when the child genuinely needs the current conversation prefix. Leave it omitted for fresh, narrower context.
Route the Work
Choose the route per child from agent(action:"roster") (no provider request), not from memory. It lists each role's resolved route and the models you may pick.
thinkingoverrides a saved tier on any role. Dial:off low medium high xhigh max ultra, plusinherit(role default, then session effort) andauto.modelandmodel_strengthapply to unpinned routes only. A pinned profile refuses a conflicting model; to choose a model, start an unpinned role such asgeneral.model_strength: "faster"is the same-family faster sibling,"same"the session model.- Read the receipt, not your request:
child_routeshows the provider, model and route source, andrequested_reasoningvseffective_reasoningshows what the route actually ran. - Route by stakes. Mechanical work: the cheapest sufficient route with
thinking: "off"or"low". Implementation: a capable route atmediumor above. Review and verification: a strong route athigh, on a different route than the author when independence matters.
Evaluate and Verify
Sub-agent outputs are self-reports. Re-check material claims before relying on them:
- Read changed files directly.
- Run the relevant tests locally.
- Inspect unexpected diffs before committing.
- Verify externally visible or destructive claims against source data.
Prompt Shape
A good delegation prompt includes:
- The exact task
- Files or modules owned by the child
- Files or behavior the child must not touch
- Expected output format
- Acceptance criteria
Weak prompt:
Fix the settings bug.
Strong prompt:
Own only crates/tui/src/settings.rs and its tests. Preserve existing config key names. Verify with the existing checks that provider-specific API key changes do not restart provider onboarding. Return the changed paths and test command output.
الأسئلة الشائعة
ماذا يبقى مع الذكاء الاصطناعي الرئيسي؟
فهم طلبك، وقرارات البنية والأمان، والتكامل بين الوحدات، والمراجعة النهائية تبقى مع الوكيل الرئيسي.
ما الذي لا يجب تفويضه؟
المهام الصغيرة ذات الخطوة الواحدة، وقرارات المنتج الغامضة، والعمليات المدمّرة بلا معايير واضحة، والتحقق النهائي.
هل يمكنني التحكم في نموذج المساعد؟
نعم. تفضّل المهارة إعداد قوة النموذج المحايد عن المزوّد، ويرث المساعدون النموذج النشط افتراضياً.
التفاصيل
الوصف الأصلي من المؤلف
Strategic delegation for multi-step coding, research, or verification work. Use when a task can be split into parent reasoning plus focused sub-agent execution through the agent tool.
repo: codewhale-hq/Codewhale
الشعبية
- نجوم GitHub
- 41k
- الترتيب
- #6523
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
best-of-n
41kيساعد وكيلك على إنتاج عدة إجابات مستقلة لمشكلة صعبة، وتقييمها بمعيار واحد، وتطبيق الإجابة الوحيدة التي تجتاز الفحوصات.
dataviz
41kيساعد وكيلك على اختيار مخطط أو لوحة معلومات مناسبة لبياناتك، بتسميات واضحة وملاحظات عن المصدر، مع فحص المحاور والقيم المفقودة.
debug
41kيساعد وكيلك على معرفة السبب الحقيقي للخطأ عبر إعادة إنتاجه وتضييقه، ولا يصلحه إلا بعد موافقتك، بدلاً من التخمين.
dependency-update
41kيساعد وكيلك على تحديث مجموعة محددة من الحزم البرمجية، وقراءة ملاحظات إصداراتها، وإصلاح التغييرات المكسِّرة، وتشغيل فحوصات المشروع.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.