Langsung ke konten
Skillpedia
Pemrograman umum48k ยท #5879

subagent-orchestrator

Fungsinya

Agent ini mengatur beberapa agent kecil untuk menangani tugas besar yang melibatkan banyak file. Agent ini memecah pekerjaan, mengatur biaya, dan memastikan semuanya berjalan bersama tanpa menggunakan terlalu banyak sumber daya.

Kapan dipakai

  • โœ“Saat tugas melibatkan lebih dari 3 file.
  • โœ“Saat Anda ingin beberapa agent bekerja secara bersamaan.
  • โœ“Saat Anda pernah mengalami masalah dengan batas penggunaan (kuota).

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/subagent-orchestrator/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit โ†’

Contoh permintaan ke AI

โ€œPecah tugas membuat fitur baru di banyak file ini, pastikan agent bekerja secara paralel dan tetap dalam batas kuota.โ€

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Pertama, agent ini merencanakan cara membagi tugas besar menjadi bagian-bagian kecil, lalu menentukan agent mana yang mengerjakan apa dan di file mana. Setelah itu, agent-agent tersebut dijalankan secara paralel, dan agent ini memastikan semuanya berjalan dengan benar sebelum bagian-bagiannya digabungkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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)

โ€ฆ

Pertanyaan umum

Apa itu 'kuota'?

Kuota adalah batas penggunaan layanan AI dalam periode tertentu, misalnya seminggu. Agent ini membantu Anda agar tidak melewati batas tersebut.

Apa itu 'agent kecil'?

Agent kecil adalah asisten AI yang lebih sederhana, masing-masing fokus pada bagian tertentu dari tugas, seperti menulis kode, menguji, atau menjelajahi web.

Mengapa menggunakan agent secara paralel?

Agar pekerjaan lebih cepat. Beberapa agent yang mengerjakan bagian berbeda secara bersamaan akan selesai lebih cepat dibandingkan satu agent yang mengerjakan semuanya secara berurutan.

Detail

Deskripsi asli dari pembuat

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

repo: sickn33/agentic-awesome-skills

Popularitas

Bintang GitHub
48k
Peringkat
#5879
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • โ€ฆ

Skill lain dari repositori ini

Skill serupa