Skillpedia
برمجة عامة48k · #5879

subagent-orchestrator

ما الذي تفعله

ينظّم هذا الوكيل وكلاء أصغر للتعامل مع المهام الكبيرة التي تشمل ملفات كثيرة. يقسّم العمل، ويدير التكاليف، ويضمن أن كل شيء يعمل معًا دون استهلاك موارد زائدة.

متى تستخدمها

  • ✓عندما تشمل المهمة أكثر من 3 ملفات.
  • ✓عندما تريد عمل عدة وكلاء في الوقت نفسه.
  • ✓عندما واجهت مشكلات في حدود الاستخدام (quota) من قبل.

رابط المهارة

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/subagent-orchestrator/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/subagent-orchestrator/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“قسّم مهمة إنشاء ميزة جديدة عبر عدة ملفات، مع التأكد من أن الوكلاء يعملون بالتوازي ويحترمون الحصة المسموحة.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يخطط أولًا لتقسيم المهمة الكبيرة إلى أجزاء أصغر، مع تحديد أي وكيل يعمل على ماذا وعلى أي ملفات. ثم يشغّل هؤلاء الوكلاء بالتوازي، ويتحقق من أن كل شيء يعمل بشكل صحيح قبل دمج الأجزاء.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Subagent Orchestrator

A quota-aware, parallel subagent coordination skill for Antigravity 2.0. Turns one big task into a set of isolated, efficient agent missions — without burning your weekly quota.


Use this skill when

  • A task spans 3+ files or components
  • You want multiple agents working at the same time
  • You've hit quota issues mid-task before
  • The task involves both planning AND building
  • You need browser agent + code agent + terminal agent running together

Do not use this skill when

  • Editing a single file or fixing one bug
  • Writing a quick script under 50 lines
  • Asking a question or generating a plan only

Phase 1 — DECOMPOSE (before any agent runs)

Before spawning any subagent, the orchestrator MUST produce a Mission Brief. Announce:

"Running subagent-orchestrator skill. Decomposing task into isolated missions."

Then output a Mission Brief in this format:

MISSION BRIEF
─────────────────────────────────────────
Goal: [one sentence, what done looks like]
Total Agents: [N]
Quota Strategy: [FLASH / SONNET / MIXED]
Expected Token Cost: [LOW / MEDIUM / HIGH]

AGENTS:
[1] ID: agent-001
    Role: [e.g. Planner / Builder / Tester / Browser]
    Scope: [exact files or URLs this agent touches]
    Model: [Gemini Flash / Claude Sonnet]
    Input: [what it receives]
    Output: [what it produces]
    Depends on: [none / agent-001]

[2] ...
─────────────────────────────────────────

Wait for user to approve the Mission Brief before proceeding. If the user edits it, update and re-confirm. Never skip this step.


Phase 2 — QUOTA ROUTING

Before assigning models, apply this decision tree:

Is this task > 20 files OR > 500 lines of new code?
  YES → Use Gemini Flash for all agents. Reserve Sonnet for final review only.
  NO  → Is this task creative UI / complex logic / API design?
          YES → Use Sonnet for builder agent, Flash for all others.
          NO  → Use Gemini Flash for everything.

Model cost rules (never violate these):

  • Claude Opus → NEVER use in subagents. Too expensive.
  • Claude Sonnet → Max 1 subagent per mission.
  • Gemini Flash → Default for all subagents. Fast, cheap, separate quota pool.
  • Browser subagent → Always runs on its own pool. Use sparingly (1 per mission max).

Phase 3 — CONTEXT ISOLATION

Each subagent gets a scoped context packet. Never give all agents the full codebase.

For each agent, prepare:

AGENT CONTEXT PACKET — agent-[ID]
Files to read: [list only what this agent needs]
Files to write: [list only what this agent will create/edit]
Do NOT read: [explicitly exclude irrelevant files]
Knowledge: [paste only the relevant section of GEMINI.md]

Rule: If an agent doesn't need node_modules, package-lock.json, .next/, or dist/ — add them to a .antigravityignore before the agent runs.


Phase 4 — PARALLEL EXECUTION

Spawn agents in dependency order:

Round 1 (no dependencies): Run agents in parallel
Round 2 (depends on Round 1): Wait for all Round 1 outputs, then run
Round 3 (final): Integrate + verify

Between rounds, the orchestrator MUST:

  1. Collect each agent's output artifact
  2. Run a 3-point spot check:
    • Did the agent stay within its assigned scope?
    • Are there any import/export conflicts with other agents' outputs?
    • Did any agent produce a placeholder ("TODO", "implement later")?
  3. If any check fails → re-run that agent with corrected context. Do NOT continue.

Phase 5 — ERROR RECOVERY

If a subagent fails or produces broken output:

RECOVERY PROTOCOL
─────────────────────────────────────────
1. Do NOT re-run the full mission.
2. Identify the exact failure point.
3. Spawn a single repair agent with:
   - Only the broken file(s) as scope
   - The error message as context
   - Model: Gemini Flash (cheapest for repairs)
4. Validate the repair before continuing.
─────────────────────────────────────────

Never cascade a broken output to the next agent. Always fix before moving forward.


Phase 6 — INTEGRATION CHECK

After all agents complete, run a final integration sweep:

  • All imports resolve correctly
  • No duplicate function/variable names across files
  • No hardcoded values that should be env variables
  • No console.log left in production files
  • Types are consistent across components (TypeScript)
  • Build would succeed (npm run build mentally verified)

…

الأسئلة الشائعة

ما هي «quota»؟

هي حد لكمية استخدام خدمة الذكاء الاصطناعي خلال فترة معينة (مثل أسبوع). يساعدك هذا الوكيل على تجنب تجاوز هذا الحد.

ما هم «الوكلاء الأصغر»؟

هم مساعدون ذكاء اصطناعي أبسط، يركز كل منهم على جزء محدد من المهمة، مثل كتابة الشيفرة أو الاختبار أو تصفح الويب.

لماذا أستخدم الوكلاء بالتوازي؟

لتسريع العمل. فالوكلاء المتعددون الذين يعملون على أجزاء مختلفة في الوقت نفسه ينتهون أسرع من وكيل واحد ينجز كل شيء بالتسلسل.

التفاصيل

الوصف الأصلي من المؤلف

Coordinate quota-aware parallel subagents for large, multi-file Antigravity tasks.

repo: sickn33/agentic-awesome-skills

الشعبية

نجوم GitHub
48k
الترتيب
#5879
الترخيص
MIT
آخر تحديث
15‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة