subagent-creator
ما الذي تفعله
توجّه هذه المهارة الذكاء الاصطناعي في إنشاء وكلاء فرعيين، وهم مساعدون متخصصون بسياقهم الخاص يعملون على مهمة معقدة. وهي مخصصة للذين يريدون مدققًا أو مصححًا أو منسقًا مخصصًا.
متى تستخدمها
- ✓عندما تكون المهمة معقدة إلى حد يحتاج إلى سياق معزول.
- ✓عندما تريد مدققًا مستقلًا يراجع العمل من زاوية جديدة.
- ✓عندما تريد عدة مساعدين يعملون على أجزاء منفصلة في وقت واحد.
رابط المهارة
https://github.com/tech-leads-club/agent-skills/blob/main/packages/skills-catalog/skills/(creation)/subagent-creator/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“أنشئ وكيلًا فرعيًا يفحص تغييرات الكود لدي بحثًا عن أخطاء، ويعود بقائمة قصيرة.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
توضح المهارة كيف تكتب الوكيل الفرعي كملف markdown فيه اسم ووصف لوقت استخدامه وخطوات واضحة، ومتى تكفي المهارة العادية بدلًا منه.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Subagent Creator
This skill provides guidance for creating effective, agent-agnostic subagents.
What are Subagents?
Subagents are specialized assistants that an AI agent can delegate tasks to. Characteristics:
- Isolated context: Each subagent has its own context window
- Parallel execution: Multiple subagents can run simultaneously
- Specialization: Configured with specific prompts and expertise
- Reusable: Defined once, used in multiple contexts
When to Use Subagents vs Skills
Is the task complex with multiple steps?
├─ YES → Does it require isolated context?
│ ├─ YES → Use SUBAGENT
│ └─ NO → Use SKILL
│
└─ NO → Use SKILL
Use Subagents for:
- Complex workflows requiring isolated context
- Long-running tasks that benefit from specialization
- Verification and auditing (independent perspective)
- Parallel workstreams
Use Skills for:
- Quick, one-off actions
- Domain knowledge without context isolation
- Reusable procedures that don't need isolation
Subagent Structure
A subagent is typically a markdown file with frontmatter metadata:
---
name: agent-name
description: Description of when to use this subagent.
model: inherit # or fast, or specific model ID
readonly: false # true to restrict write permissions
---
You are an [expert in X].
When invoked:
1. [Step 1]
2. [Step 2]
3. [Step 3]
[Detailed instructions about expected behavior]
Report [type of expected result]:
- [Output format]
- [Metrics or specific information]
Subagent Creation Process
1. Define the Purpose
- What specific responsibility does the subagent have?
- Why does it need isolated context?
- Does it involve multiple complex steps?
- Does it require deep specialization?
2. Configure the Metadata
name (required)
Unique identifier. Use kebab-case.
name: security-auditor
description (critical)
CRITICAL for automatic delegation. Explains when to use this subagent.
Good descriptions:
- "Security specialist. Use when implementing auth, payments, or handling sensitive data."
- "Debugging specialist for errors and test failures. Use when encountering issues."
- "Validates completed work. Use after tasks are marked done."
Phrases that encourage automatic delegation:
- "Use proactively when..."
- "Always use for..."
- "Automatically delegate when..."
model (optional)
model: inherit # Uses same model as parent (default)
model: fast # Uses fast model for quick tasks
readonly (optional)
readonly: true # Restricts write permissions
3. Write the Subagent Prompt
Define:
- Identity: "You are an [expert]..."
- When invoked: Context of use
- Process: Specific steps to follow
- Expected output: Format and content
Template:
You are an [expert in X] specialized in [Y].
When invoked:
1. [First action]
2. [Second action]
3. [Third action]
[Detailed instructions about approach]
Report [type of result]:
- [Specific format]
- [Information to include]
- [Metrics or criteria]
[Philosophy or principles to follow]
Common Subagent Patterns
1. Verification Agent
Purpose: Independently validates that completed work actually works.
---
name: verifier
description: Validates completed work. Use after tasks are marked done.
model: fast
---
You are a skeptical validator.
When invoked:
1. Identify what was declared as complete
2. Verify the implementation exists and is functional
3. Execute tests or relevant verification steps
4. Look for edge cases that may have been missed
Be thorough. Report:
- What was verified and passed
- What is incomplete or broken
- Specific issues to address
2. Debugger
Purpose: Expert in root cause analysis.
---
name: debugger
description: Debugging specialist. Use when encountering errors or test failures.
---
You are a debugging expert.
When invoked:
1. Capture the error message and stack trace
2. Identify reproduction steps
3. Isolate the failure location
4. Implement minimal fix
5. Verify the solution works
For each issue, provide:
- Root cause explanation
- Evidence supporting the diagnosis
- Specific code fix
- Testing approach
3. Security Auditor
Purpose: Security expert auditing code.
---
name: security-auditor
description: Security specialist. Use for auth, payments, or sensitive data.
---
You are a security expert.
When i
الأسئلة الشائعة
ما الفرق بين الوكيل الفرعي والمهارة؟
للوكيل الفرعي نافذة سياق خاصة به للعمل المعقد، بينما المهارة أبسط وتشارك السياق الرئيسي.
هل يعمل مع أي وكيل ذكاء اصطناعي؟
نعم. التوجيه مكتوب ليعمل مع أي وكيل يدعم الوكلاء الفرعيين.
هل يمكن تشغيل الوكلاء الفرعيين في وقت واحد؟
نعم. يمكن تشغيل عدة وكلاء فرعيين بالتوازي.
التفاصيل
الوصف الأصلي من المؤلف
Guide for creating AI subagents with isolated context for complex multi-step workflows. Use when users want to create a subagent, specialized agent, verifier, debugger, or orchestrator that requires isolated context and deep specialization. Works with any agent that supports subagent delegation. Triggers on "create subagent", "new agent", "specialized assistant", "create verifier". Do NOT use for Cursor-specific subagents (use cursor-subagent-creator instead).
الشعبية
- نجوم GitHub
- 7.1k
- الترتيب
- #13519
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
component-common-domain-detection
7.1kيساعد وكيلك على إيجاد منطق العمل المكرر عبر عدة أجزاء من قاعدة الكود، ويقترح طريقة لدمجه.
component-flattening-analysis
7.1kيساعد وكيلك على إيجاد الكود الموضوع في المكان الخطأ، وتسطيح مجلدات المكونات المتشابكة، ليأخذ كل جزء مكانه الصحيح.
component-identification-sizing
7.1kيساعد وكيلك على رسم خريطة أجزاء قاعدة الكود وقياس حجمها، لمعرفة الوحدة التي يجب تقسيمها أولًا.
coupling-analysis
7.1kيساعد وكيلك على فحص مدى اعتماد أجزاء قاعدة الكود على بعضها، وتحديد الروابط التي يجب تخفيفها أولًا.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.