[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F5M3ZCN0TMNXZ6XV41MNJC":3,"skill-same:01M7F5M3ZCN0TMNXZ6XV41MNJC":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":40,"updatedAt":41,"install":42,"resources":55},"01M7F5M3ZCN0TMNXZ6XV41MNJC","subagent-orchestrator",null,"Coordinate quota-aware parallel subagents for large, multi-file Antigravity tasks.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: subagent-orchestrator\nrisk: safe\nsource: community\ndate_added: \"2026-09-04\"\ndescription: Coordinate quota-aware parallel subagents for large, multi-file Antigravity tasks.\nversion: 1.0.0\nauthor: community\ntags: [subagents, orchestration, quota, parallel, multi-agent]\n---\n\n# Subagent Orchestrator\n\nA 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.\n\n---\n\n## Use this skill when\n- A task spans 3+ files or components\n- You want multiple agents working at the same time\n- You've hit quota issues mid-task before\n- The task involves both planning AND building\n- You need browser agent + code agent + terminal agent running together\n\n## Do not use this skill when\n- Editing a single file or fixing one bug\n- Writing a quick script under 50 lines\n- Asking a question or generating a plan only\n\n---\n\n## Phase 1 — DECOMPOSE (before any agent runs)\n\nBefore spawning any subagent, the orchestrator MUST produce a Mission Brief. Announce:\n> \"Running subagent-orchestrator skill. Decomposing task into isolated missions.\"\n\nThen output a Mission Brief in this format:\n\n```\nMISSION BRIEF\n─────────────────────────────────────────\nGoal: [one sentence, what done looks like]\nTotal Agents: [N]\nQuota Strategy: [FLASH \u002F SONNET \u002F MIXED]\nExpected Token Cost: [LOW \u002F MEDIUM \u002F HIGH]\n\nAGENTS:\n[1] ID: agent-001\n    Role: [e.g. Planner \u002F Builder \u002F Tester \u002F Browser]\n    Scope: [exact files or URLs this agent touches]\n    Model: [Gemini Flash \u002F Claude Sonnet]\n    Input: [what it receives]\n    Output: [what it produces]\n    Depends on: [none \u002F agent-001]\n\n[2] ...\n─────────────────────────────────────────\n```\n\n**Wait for user to approve the Mission Brief before proceeding.**\nIf the user edits it, update and re-confirm. Never skip this step.\n\n---\n\n## Phase 2 — QUOTA ROUTING\n\nBefore assigning models, apply this decision tree:\n\n```\nIs this task > 20 files OR > 500 lines of new code?\n  YES → Use Gemini Flash for all agents. Reserve Sonnet for final review only.\n  NO  → Is this task creative UI \u002F complex logic \u002F API design?\n          YES → Use Sonnet for builder agent, Flash for all others.\n          NO  → Use Gemini Flash for everything.\n```\n\n**Model cost rules (never violate these):**\n- Claude Opus → NEVER use in subagents. Too expensive.\n- Claude Sonnet → Max 1 subagent per mission.\n- Gemini Flash → Default for all subagents. Fast, cheap, separate quota pool.\n- Browser subagent → Always runs on its own pool. Use sparingly (1 per mission max).\n\n---\n\n## Phase 3 — CONTEXT ISOLATION\n\nEach subagent gets a scoped context packet. Never give all agents the full codebase.\n\nFor each agent, prepare:\n```\nAGENT CONTEXT PACKET — agent-[ID]\nFiles to read: [list only what this agent needs]\nFiles to write: [list only what this agent will create\u002Fedit]\nDo NOT read: [explicitly exclude irrelevant files]\nKnowledge: [paste only the relevant section of GEMINI.md]\n```\n\nRule: If an agent doesn't need `node_modules`, `package-lock.json`, `.next\u002F`, or `dist\u002F` — add them to a `.antigravityignore` before the agent runs.\n\n---\n\n## Phase 4 — PARALLEL EXECUTION\n\nSpawn agents in dependency order:\n\n```\nRound 1 (no dependencies): Run agents in parallel\nRound 2 (depends on Round 1): Wait for all Round 1 outputs, then run\nRound 3 (final): Integrate + verify\n```\n\nBetween rounds, the orchestrator MUST:\n1. Collect each agent's output artifact\n2. Run a 3-point spot check:\n   - Did the agent stay within its assigned scope?\n   - Are there any import\u002Fexport conflicts with other agents' outputs?\n   - Did any agent produce a placeholder (\"TODO\", \"implement later\")?\n3. If any check fails → re-run that agent with corrected context. Do NOT continue.\n\n---\n\n## Phase 5 — ERROR RECOVERY\n\nIf a subagent fails or produces broken output:\n\n```\nRECOVERY PROTOCOL\n─────────────────────────────────────────\n1. Do NOT re-run the full mission.\n2. Identify the exact failure point.\n3. Spawn a single repair agent with:\n   - Only the broken file(s) as scope\n   - The error message as context\n   - Model: Gemini Flash (cheapest for repairs)\n4. Validate the repair before continuing.\n─────────────────────────────────────────\n```\n\nNever cascade a broken output to the next agent. Always fix before moving forward.\n\n---\n\n## Phase 6 — INTEGRATION CHECK\n\nAfter all agents complete, run a final integration sweep:\n\n- [ ] All imports resolve correctly\n- [ ] No duplicate function\u002Fvariable names across files\n- [ ] No hardcoded values that should be env variables\n- [ ] No `console.log` left in production files\n- [ ] Types are consistent across components (TypeScript)\n- [ ] Build would succeed (`npm run build` mentally verified)\n\nIf any check fails, spawn one final repair agent scoped to the exact issue.\n\n---\n\n## Quota Monitoring Rules\n\nTrack estimated usage throughout the mission:\n\n| Event | Quota Impact |\n|-------|-------------|\n| Agent spawned | LOW (setup) |\n| File indexed (each) | LOW |\n| Tool call (file read\u002Fwrite) | MEDIUM |\n| Terminal command | MEDIUM |\n| Browser subagent activated | HIGH |\n| Thinking mode enabled | VERY HIGH |\n\nIf estimated usage crosses 60% of sprint quota mid-mission:\n- Pause and report: \"Quota checkpoint: ~60% of sprint used. Continue or defer remaining agents?\"\n- Switch remaining agents to Gemini Flash\n- Disable browser subagent if not yet started\n\n---\n\n## Communication Rules\n\n- Announce which agent is running at all times\n- Show a compact progress bar between rounds:\n  ```\n  Mission Progress: ████████░░ 4\u002F5 agents complete\n  Quota Status: ▓▓▓▓░░░░░░ ~40% sprint used\n  ```\n- Never go silent for more than one agent turn\n- If blocked, say why explicitly — never just stop\n\n---\n\n## Examples\n\nSee `examples\u002F` folder:\n- `nextjs-feature.md` — Building a full Next.js feature with 3 parallel agents\n- `api-plus-frontend.md` — Backend API agent + Frontend UI agent running in parallel\n- `debug-mission.md` — Repair mission for a broken build using minimal quota\n\n## Limitations\n\n- This skill coordinates agent planning; it does not provide a runtime scheduler or enforce quota limits automatically.\n- Parallel agents still need explicit scoping, review, and integration by the parent agent.\n- Do not use it when a single focused edit or direct answer would be faster and clearer.\n","# Subagent Orchestrator\n\nA 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.\n\n---\n\n## Use this skill when\n- A task spans 3+ files or components\n- You want multiple agents working at the same time\n- You've hit quota issues mid-task before\n- The task involves both planning AND building\n- You need browser agent + code agent + terminal agent running together\n\n## Do not use this skill when\n- Editing a single file or fixing one bug\n- Writing a quick script under 50 lines\n- Asking a question or generating a plan only\n\n---\n\n## Phase 1 — DECOMPOSE (before any agent runs)\n\nBefore spawning any subagent, the orchestrator MUST produce a Mission Brief. Announce:\n> \"Running subagent-orchestrator skill. Decomposing task into isolated missions.\"\n\nThen output a Mission Brief in this format:\n\n```\nMISSION BRIEF\n─────────────────────────────────────────\nGoal: [one sentence, what done looks like]\nTotal Agents: [N]\nQuota Strategy: [FLASH \u002F SONNET \u002F MIXED]\nExpected Token Cost: [LOW \u002F MEDIUM \u002F HIGH]\n\nAGENTS:\n[1] ID: agent-001\n    Role: [e.g. Planner \u002F Builder \u002F Tester \u002F Browser]\n    Scope: [exact files or URLs this agent touches]\n    Model: [Gemini Flash \u002F Claude Sonnet]\n    Input: [what it receives]\n    Output: [what it produces]\n    Depends on: [none \u002F agent-001]\n\n[2] ...\n─────────────────────────────────────────\n```\n\n**Wait for user to approve the Mission Brief before proceeding.**\nIf the user edits it, update and re-confirm. Never skip this step.\n\n---\n\n## Phase 2 — QUOTA ROUTING\n\nBefore assigning models, apply this decision tree:\n\n```\nIs this task > 20 files OR > 500 lines of new code?\n  YES → Use Gemini Flash for all agents. Reserve Sonnet for final review only.\n  NO  → Is this task creative UI \u002F complex logic \u002F API design?\n          YES → Use Sonnet for builder agent, Flash for all others.\n          NO  → Use Gemini Flash for everything.\n```\n\n**Model cost rules (never violate these):**\n- Claude Opus → NEVER use in subagents. Too expensive.\n- Claude Sonnet → Max 1 subagent per mission.\n- Gemini Flash → Default for all subagents. Fast, cheap, separate quota pool.\n- Browser subagent → Always runs on its own pool. Use sparingly (1 per mission max).\n\n---\n\n## Phase 3 — CONTEXT ISOLATION\n\nEach subagent gets a scoped context packet. Never give all agents the full codebase.\n\nFor each agent, prepare:\n```\nAGENT CONTEXT PACKET — agent-[ID]\nFiles to read: [list only what this agent needs]\nFiles to write: [list only what this agent will create\u002Fedit]\nDo NOT read: [explicitly exclude irrelevant files]\nKnowledge: [paste only the relevant section of GEMINI.md]\n```\n\nRule: If an agent doesn't need `node_modules`, `package-lock.json`, `.next\u002F`, or `dist\u002F` — add them to a `.antigravityignore` before the agent runs.\n\n---\n\n## Phase 4 — PARALLEL EXECUTION\n\nSpawn agents in dependency order:\n\n```\nRound 1 (no dependencies): Run agents in parallel\nRound 2 (depends on Round 1): Wait for all Round 1 outputs, then run\nRound 3 (final): Integrate + verify\n```\n\nBetween rounds, the orchestrator MUST:\n1. Collect each agent's output artifact\n2. Run a 3-point spot check:\n   - Did the agent stay within its assigned scope?\n   - Are there any import\u002Fexport conflicts with other agents' outputs?\n   - Did any agent produce a placeholder (\"TODO\", \"implement later\")?\n3. If any check fails → re-run that agent with corrected context. Do NOT continue.\n\n---\n\n## Phase 5 — ERROR RECOVERY\n\nIf a subagent fails or produces broken output:\n\n```\nRECOVERY PROTOCOL\n─────────────────────────────────────────\n1. Do NOT re-run the full mission.\n2. Identify the exact failure point.\n3. Spawn a single repair agent with:\n   - Only the broken file(s) as scope\n   - The error message as context\n   - Model: Gemini Flash (cheapest for repairs)\n4. Validate the repair before continuing.\n─────────────────────────────────────────\n```\n\nNever cascade a broken output to the next agent. Always fix before moving forward.\n\n---\n\n## Phase 6 — INTEGRATION CHECK\n\nAfter all agents complete, run a final integration sweep:\n\n- [ ] All imports resolve correctly\n- [ ] No duplicate function\u002Fvariable names across files\n- [ ] No hardcoded values that should be env variables\n- [ ] No `console.log` left in production files\n- [ ] Types are consistent across components (TypeScript)\n- [ ] Build would succeed (`npm run build` mentally verified)\n\nIf any check fails, spawn one final repair agent scoped to the exact issue.\n\n---\n\n## Quota Monitoring Rules\n\nTrack estimated usage throughout the mission:\n\n| Event | Quota Impact |\n|-------|-------------|\n| Agent spawned | LOW (setup) |\n| File indexed (each) | LOW |\n| Tool call (file read\u002Fwrite) | MEDIUM |\n| Terminal command | MEDIUM |\n| Browser subagent activated | HIGH |\n| Thinking mode enabled | VERY HIGH |\n\nIf estimated usage crosses 60% of sprint quota mid-mission:\n- Pause and report: \"Quota checkpoint: ~60% of sprint used. Continue or defer remaining agents?\"\n- Switch remaining agents to Gemini Flash\n- Disable browser subagent if not yet started\n\n---\n\n## Communication Rules\n\n- Announce which agent is running at all times\n- Show a compact progress bar between rounds:\n  ```\n  Mission Progress: ████████░░ 4\u002F5 agents complete\n  Quota Status: ▓▓▓▓░░░░░░ ~40% sprint used\n  ```\n- Never go silent for more than one agent turn\n- If blocked, say why explicitly — never just stop\n\n---\n\n## Examples\n\nSee `examples\u002F` folder:\n- `nextjs-feature.md` — Building a full Next.js feature with 3 parallel agents\n- `api-plus-frontend.md` — Backend API agent + Frontend UI agent running in parallel\n- `debug-mission.md` — Repair mission for a broken build using minimal quota\n\n## Limitations\n\n- This skill coordinates agent planning; it does not provide a runtime scheduler or enforce quota limits automatically.\n- Parallel agents still need explicit scoping, review, and integration by the parent agent.\n- Do not use it when a single focused edit or direct answer would be faster and clearer.\n",{"name":5,"risk":24,"tags":25,"author":31,"source":31,"version":32,"date_added":33,"description":7},"safe",[26,27,28,29,30],"subagents","orchestration","quota","parallel","multi-agent","community","1.0.0","2026-09-04","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fsubagent-orchestrator",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill subagent-orchestrator",{"tool":48,"command":49},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill subagent-orchestrator",{"tool":51,"command":52},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill subagent-orchestrator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002FSKILL.md",true,[56,62,66,70,74,78],{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"examples\u002Fapi-plus-frontend.md","REFERENCE","参考文档",2625,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002Fexamples\u002Fapi-plus-frontend.md",{"path":63,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":64,"sourceHtmlUrl":65},"examples\u002Fdebug-mission.md",2195,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002Fexamples\u002Fdebug-mission.md",{"path":67,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":68,"sourceHtmlUrl":69},"examples\u002Fnextjs-feature.md",2713,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002Fexamples\u002Fnextjs-feature.md",{"path":71,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":72,"sourceHtmlUrl":73},"README.md",2769,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002FREADME.md",{"path":75,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":76,"sourceHtmlUrl":77},"resources\u002Fmission-brief-template.md",1121,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002Fresources\u002Fmission-brief-template.md",{"path":79,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":80,"sourceHtmlUrl":81},"resources\u002Fquota-reference.md",2168,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fsubagent-orchestrator\u002Fresources\u002Fquota-reference.md",[83,90,95,102,109,116],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":91,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":6,"description":119,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]