opencode-skills-collection 3.0.21 → 3.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundled-skills/.antigravity-install-manifest.json +5 -1
- package/bundled-skills/bilig-workpaper/SKILL.md +145 -0
- package/bundled-skills/docs/integrations/jetski-cortex.md +3 -3
- package/bundled-skills/docs/integrations/jetski-gemini-loader/README.md +1 -1
- package/bundled-skills/docs/maintainers/repo-growth-seo.md +3 -3
- package/bundled-skills/docs/maintainers/skills-update-guide.md +1 -1
- package/bundled-skills/docs/users/bundles.md +1 -1
- package/bundled-skills/docs/users/claude-code-skills.md +1 -1
- package/bundled-skills/docs/users/gemini-cli-skills.md +1 -1
- package/bundled-skills/docs/users/getting-started.md +1 -1
- package/bundled-skills/docs/users/kiro-integration.md +1 -1
- package/bundled-skills/docs/users/usage.md +4 -4
- package/bundled-skills/docs/users/visual-guide.md +4 -4
- package/bundled-skills/ejentum-reasoning-harness/SKILL.md +3 -0
- package/bundled-skills/ingest-youtube/SKILL.md +6 -1
- package/bundled-skills/ingest-youtube/ingest.py +81 -31
- package/bundled-skills/linux-privilege-escalation/SKILL.md +5 -4
- package/bundled-skills/mercury-mcp/SKILL.md +126 -0
- package/bundled-skills/news-sentiment-engine/SKILL.md +9 -1
- package/bundled-skills/photopea-embedded-editor/SKILL.md +1399 -0
- package/bundled-skills/subagent-orchestrator/README.md +99 -0
- package/bundled-skills/subagent-orchestrator/SKILL.md +201 -0
- package/bundled-skills/subagent-orchestrator/examples/api-plus-frontend.md +76 -0
- package/bundled-skills/subagent-orchestrator/examples/debug-mission.md +72 -0
- package/bundled-skills/subagent-orchestrator/examples/nextjs-feature.md +87 -0
- package/bundled-skills/subagent-orchestrator/resources/mission-brief-template.md +43 -0
- package/bundled-skills/subagent-orchestrator/resources/quota-reference.md +73 -0
- package/bundled-skills/subagent-orchestrator/scripts/install.js +62 -0
- package/bundled-skills/tokenwise/SKILL.md +5 -1
- package/package.json +1 -1
- package/skills_index.json +108 -14
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# Subagent Orchestrator — Antigravity 2.0 Skill
|
|
2
|
+
|
|
3
|
+
A quota-aware, parallel subagent coordination skill for Antigravity 2.0.
|
|
4
|
+
|
|
5
|
+
Turns one big task into a set of isolated, efficient agent missions — without burning your weekly quota in 30 minutes.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
## What it does
|
|
10
|
+
|
|
11
|
+
- Splits complex tasks into isolated agent missions before any code is written
|
|
12
|
+
- Routes tasks to the cheapest model that can handle them (Flash by default)
|
|
13
|
+
- Runs independent agents in parallel, not in sequence
|
|
14
|
+
- Monitors quota usage throughout and pauses if limits are approaching
|
|
15
|
+
- Recovers from agent failures without re-running the whole mission
|
|
16
|
+
- Runs a final integration check before declaring the mission complete
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
**One command (Windows PowerShell):**
|
|
23
|
+
```powershell
|
|
24
|
+
node scripts/install.js
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
**Manual install — copy this folder to:**
|
|
28
|
+
```
|
|
29
|
+
Windows: %APPDATA%\.gemini\antigravity\skills\subagent-orchestrator\
|
|
30
|
+
Mac/Linux: ~/.gemini/antigravity/skills/subagent-orchestrator/
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Then restart your Antigravity session.
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
The skill auto-activates when your task:
|
|
40
|
+
- Spans 3+ files or components
|
|
41
|
+
- Needs parallel agents (UI + API, planner + builder, etc.)
|
|
42
|
+
- Has quota risk (large codebase, many tool calls expected)
|
|
43
|
+
|
|
44
|
+
Or trigger it manually:
|
|
45
|
+
```
|
|
46
|
+
"Use subagent-orchestrator to build the auth flow"
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
---
|
|
50
|
+
|
|
51
|
+
## Folder structure
|
|
52
|
+
|
|
53
|
+
```
|
|
54
|
+
subagent-orchestrator/
|
|
55
|
+
├── SKILL.md ← Main skill (auto-loaded by Antigravity)
|
|
56
|
+
├── scripts/
|
|
57
|
+
│ └── install.js ← Installer script
|
|
58
|
+
├── examples/
|
|
59
|
+
│ ├── nextjs-feature.md ← 3-agent parallel Next.js feature
|
|
60
|
+
│ ├── api-plus-frontend.md ← Backend + frontend parallel build
|
|
61
|
+
│ └── debug-mission.md ← Minimal quota repair mission
|
|
62
|
+
└── resources/
|
|
63
|
+
├── mission-brief-template.md ← Copy-paste template for any mission
|
|
64
|
+
└── quota-reference.md ← Cost estimates for every action type
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Quota reference (quick)
|
|
70
|
+
|
|
71
|
+
| Model | Cost |
|
|
72
|
+
|-------|------|
|
|
73
|
+
| Gemini Flash | 1x (default for all subagents) |
|
|
74
|
+
| Claude Sonnet | ~4x (max 1 per mission) |
|
|
75
|
+
| Claude Opus | Never use in subagents |
|
|
76
|
+
|
|
77
|
+
| Mission size | Est. sprint used |
|
|
78
|
+
|-------------|-----------------|
|
|
79
|
+
| 1-file repair | < 5% |
|
|
80
|
+
| Single feature | 15–25% |
|
|
81
|
+
| Full flow (auth, API, UI) | 30–45% |
|
|
82
|
+
|
|
83
|
+
---
|
|
84
|
+
|
|
85
|
+
## Contributing
|
|
86
|
+
|
|
87
|
+
This skill was built to fill a real gap — the community's existing subagent skills had no quota management, no parallel coordination, and no error recovery.
|
|
88
|
+
|
|
89
|
+
PRs welcome. Follow the SKILL.md format from the Antigravity docs.
|
|
90
|
+
Submit to: https://github.com/sickn33/antigravity-awesome-skills
|
|
91
|
+
|
|
92
|
+
---
|
|
93
|
+
|
|
94
|
+
## Compatibility
|
|
95
|
+
|
|
96
|
+
- Antigravity 2.0+ (CLI and IDE)
|
|
97
|
+
- Claude Code
|
|
98
|
+
- Cursor (via SKILL.md standard)
|
|
99
|
+
- OpenCode
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: subagent-orchestrator
|
|
3
|
+
risk: safe
|
|
4
|
+
source: community
|
|
5
|
+
description: Coordinate quota-aware parallel subagents for large, multi-file Antigravity tasks.
|
|
6
|
+
version: 1.0.0
|
|
7
|
+
author: community
|
|
8
|
+
tags: [subagents, orchestration, quota, parallel, multi-agent]
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# Subagent Orchestrator
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
## Use this skill when
|
|
18
|
+
- A task spans 3+ files or components
|
|
19
|
+
- You want multiple agents working at the same time
|
|
20
|
+
- You've hit quota issues mid-task before
|
|
21
|
+
- The task involves both planning AND building
|
|
22
|
+
- You need browser agent + code agent + terminal agent running together
|
|
23
|
+
|
|
24
|
+
## Do not use this skill when
|
|
25
|
+
- Editing a single file or fixing one bug
|
|
26
|
+
- Writing a quick script under 50 lines
|
|
27
|
+
- Asking a question or generating a plan only
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Phase 1 — DECOMPOSE (before any agent runs)
|
|
32
|
+
|
|
33
|
+
Before spawning any subagent, the orchestrator MUST produce a Mission Brief. Announce:
|
|
34
|
+
> "Running subagent-orchestrator skill. Decomposing task into isolated missions."
|
|
35
|
+
|
|
36
|
+
Then output a Mission Brief in this format:
|
|
37
|
+
|
|
38
|
+
```
|
|
39
|
+
MISSION BRIEF
|
|
40
|
+
─────────────────────────────────────────
|
|
41
|
+
Goal: [one sentence, what done looks like]
|
|
42
|
+
Total Agents: [N]
|
|
43
|
+
Quota Strategy: [FLASH / SONNET / MIXED]
|
|
44
|
+
Expected Token Cost: [LOW / MEDIUM / HIGH]
|
|
45
|
+
|
|
46
|
+
AGENTS:
|
|
47
|
+
[1] ID: agent-001
|
|
48
|
+
Role: [e.g. Planner / Builder / Tester / Browser]
|
|
49
|
+
Scope: [exact files or URLs this agent touches]
|
|
50
|
+
Model: [Gemini Flash / Claude Sonnet]
|
|
51
|
+
Input: [what it receives]
|
|
52
|
+
Output: [what it produces]
|
|
53
|
+
Depends on: [none / agent-001]
|
|
54
|
+
|
|
55
|
+
[2] ...
|
|
56
|
+
─────────────────────────────────────────
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Wait for user to approve the Mission Brief before proceeding.**
|
|
60
|
+
If the user edits it, update and re-confirm. Never skip this step.
|
|
61
|
+
|
|
62
|
+
---
|
|
63
|
+
|
|
64
|
+
## Phase 2 — QUOTA ROUTING
|
|
65
|
+
|
|
66
|
+
Before assigning models, apply this decision tree:
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
Is this task > 20 files OR > 500 lines of new code?
|
|
70
|
+
YES → Use Gemini Flash for all agents. Reserve Sonnet for final review only.
|
|
71
|
+
NO → Is this task creative UI / complex logic / API design?
|
|
72
|
+
YES → Use Sonnet for builder agent, Flash for all others.
|
|
73
|
+
NO → Use Gemini Flash for everything.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
**Model cost rules (never violate these):**
|
|
77
|
+
- Claude Opus → NEVER use in subagents. Too expensive.
|
|
78
|
+
- Claude Sonnet → Max 1 subagent per mission.
|
|
79
|
+
- Gemini Flash → Default for all subagents. Fast, cheap, separate quota pool.
|
|
80
|
+
- Browser subagent → Always runs on its own pool. Use sparingly (1 per mission max).
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
|
84
|
+
## Phase 3 — CONTEXT ISOLATION
|
|
85
|
+
|
|
86
|
+
Each subagent gets a scoped context packet. Never give all agents the full codebase.
|
|
87
|
+
|
|
88
|
+
For each agent, prepare:
|
|
89
|
+
```
|
|
90
|
+
AGENT CONTEXT PACKET — agent-[ID]
|
|
91
|
+
Files to read: [list only what this agent needs]
|
|
92
|
+
Files to write: [list only what this agent will create/edit]
|
|
93
|
+
Do NOT read: [explicitly exclude irrelevant files]
|
|
94
|
+
Knowledge: [paste only the relevant section of GEMINI.md]
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
Rule: If an agent doesn't need `node_modules`, `package-lock.json`, `.next/`, or `dist/` — add them to a `.antigravityignore` before the agent runs.
|
|
98
|
+
|
|
99
|
+
---
|
|
100
|
+
|
|
101
|
+
## Phase 4 — PARALLEL EXECUTION
|
|
102
|
+
|
|
103
|
+
Spawn agents in dependency order:
|
|
104
|
+
|
|
105
|
+
```
|
|
106
|
+
Round 1 (no dependencies): Run agents in parallel
|
|
107
|
+
Round 2 (depends on Round 1): Wait for all Round 1 outputs, then run
|
|
108
|
+
Round 3 (final): Integrate + verify
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Between rounds, the orchestrator MUST:
|
|
112
|
+
1. Collect each agent's output artifact
|
|
113
|
+
2. Run a 3-point spot check:
|
|
114
|
+
- Did the agent stay within its assigned scope?
|
|
115
|
+
- Are there any import/export conflicts with other agents' outputs?
|
|
116
|
+
- Did any agent produce a placeholder ("TODO", "implement later")?
|
|
117
|
+
3. If any check fails → re-run that agent with corrected context. Do NOT continue.
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Phase 5 — ERROR RECOVERY
|
|
122
|
+
|
|
123
|
+
If a subagent fails or produces broken output:
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
RECOVERY PROTOCOL
|
|
127
|
+
─────────────────────────────────────────
|
|
128
|
+
1. Do NOT re-run the full mission.
|
|
129
|
+
2. Identify the exact failure point.
|
|
130
|
+
3. Spawn a single repair agent with:
|
|
131
|
+
- Only the broken file(s) as scope
|
|
132
|
+
- The error message as context
|
|
133
|
+
- Model: Gemini Flash (cheapest for repairs)
|
|
134
|
+
4. Validate the repair before continuing.
|
|
135
|
+
─────────────────────────────────────────
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
Never cascade a broken output to the next agent. Always fix before moving forward.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
## Phase 6 — INTEGRATION CHECK
|
|
143
|
+
|
|
144
|
+
After all agents complete, run a final integration sweep:
|
|
145
|
+
|
|
146
|
+
- [ ] All imports resolve correctly
|
|
147
|
+
- [ ] No duplicate function/variable names across files
|
|
148
|
+
- [ ] No hardcoded values that should be env variables
|
|
149
|
+
- [ ] No `console.log` left in production files
|
|
150
|
+
- [ ] Types are consistent across components (TypeScript)
|
|
151
|
+
- [ ] Build would succeed (`npm run build` mentally verified)
|
|
152
|
+
|
|
153
|
+
If any check fails, spawn one final repair agent scoped to the exact issue.
|
|
154
|
+
|
|
155
|
+
---
|
|
156
|
+
|
|
157
|
+
## Quota Monitoring Rules
|
|
158
|
+
|
|
159
|
+
Track estimated usage throughout the mission:
|
|
160
|
+
|
|
161
|
+
| Event | Quota Impact |
|
|
162
|
+
|-------|-------------|
|
|
163
|
+
| Agent spawned | LOW (setup) |
|
|
164
|
+
| File indexed (each) | LOW |
|
|
165
|
+
| Tool call (file read/write) | MEDIUM |
|
|
166
|
+
| Terminal command | MEDIUM |
|
|
167
|
+
| Browser subagent activated | HIGH |
|
|
168
|
+
| Thinking mode enabled | VERY HIGH |
|
|
169
|
+
|
|
170
|
+
If estimated usage crosses 60% of sprint quota mid-mission:
|
|
171
|
+
- Pause and report: "Quota checkpoint: ~60% of sprint used. Continue or defer remaining agents?"
|
|
172
|
+
- Switch remaining agents to Gemini Flash
|
|
173
|
+
- Disable browser subagent if not yet started
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Communication Rules
|
|
178
|
+
|
|
179
|
+
- Announce which agent is running at all times
|
|
180
|
+
- Show a compact progress bar between rounds:
|
|
181
|
+
```
|
|
182
|
+
Mission Progress: ████████░░ 4/5 agents complete
|
|
183
|
+
Quota Status: ▓▓▓▓░░░░░░ ~40% sprint used
|
|
184
|
+
```
|
|
185
|
+
- Never go silent for more than one agent turn
|
|
186
|
+
- If blocked, say why explicitly — never just stop
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Examples
|
|
191
|
+
|
|
192
|
+
See `examples/` folder:
|
|
193
|
+
- `nextjs-feature.md` — Building a full Next.js feature with 3 parallel agents
|
|
194
|
+
- `api-plus-frontend.md` — Backend API agent + Frontend UI agent running in parallel
|
|
195
|
+
- `debug-mission.md` — Repair mission for a broken build using minimal quota
|
|
196
|
+
|
|
197
|
+
## Limitations
|
|
198
|
+
|
|
199
|
+
- This skill coordinates agent planning; it does not provide a runtime scheduler or enforce quota limits automatically.
|
|
200
|
+
- Parallel agents still need explicit scoping, review, and integration by the parent agent.
|
|
201
|
+
- Do not use it when a single focused edit or direct answer would be faster and clearer.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# Example: Backend API Agent + Frontend UI Agent in Parallel
|
|
2
|
+
|
|
3
|
+
## Scenario
|
|
4
|
+
User prompt: "Build a proposal generator — form on frontend, AI call on backend, result displayed on screen."
|
|
5
|
+
|
|
6
|
+
## This is the ProposalKit core feature pattern.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Mission Brief
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
MISSION BRIEF
|
|
14
|
+
─────────────────────────────────────────
|
|
15
|
+
Goal: Working proposal generator with form input, API processing, and result display.
|
|
16
|
+
Total Agents: 2 + 1 integration
|
|
17
|
+
Quota Strategy: MIXED — Flash for backend, Sonnet for frontend UI
|
|
18
|
+
Expected Token Cost: MEDIUM
|
|
19
|
+
|
|
20
|
+
AGENTS:
|
|
21
|
+
[1] ID: agent-001
|
|
22
|
+
Role: Builder — Backend API
|
|
23
|
+
Scope: /app/api/generate/route.ts
|
|
24
|
+
Model: Gemini Flash
|
|
25
|
+
Input: NVIDIA API key env name, prompt template from resources/prompt-template.md
|
|
26
|
+
Output: POST route that accepts {clientName, projectType, budget}, returns {proposal: string}
|
|
27
|
+
Depends on: none
|
|
28
|
+
|
|
29
|
+
[2] ID: agent-002
|
|
30
|
+
Role: Builder — Frontend Form + Display
|
|
31
|
+
Scope: /components/ProposalForm.tsx, /components/ProposalResult.tsx, /app/page.tsx
|
|
32
|
+
Model: Claude Sonnet (UI needs quality)
|
|
33
|
+
Input: API contract from agent-001 spec (input/output shape only — not the code)
|
|
34
|
+
Output: Form component, result display, wired to /api/generate
|
|
35
|
+
Depends on: none (uses spec, not agent-001 output directly)
|
|
36
|
+
|
|
37
|
+
[3] ID: agent-003
|
|
38
|
+
Role: Integrator
|
|
39
|
+
Scope: review only — no new files
|
|
40
|
+
Model: Gemini Flash
|
|
41
|
+
Input: Outputs from agent-001 and agent-002
|
|
42
|
+
Output: List of any mismatches between API contract and frontend calls
|
|
43
|
+
Depends on: agent-001, agent-002
|
|
44
|
+
─────────────────────────────────────────
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## Key Pattern: Spec-First Parallelism
|
|
50
|
+
|
|
51
|
+
agents 001 and 002 run at the same time because:
|
|
52
|
+
- agent-002 receives the **API contract** (input/output shape) not the actual code
|
|
53
|
+
- The contract is defined before either agent runs
|
|
54
|
+
- Both agents work from the same agreed spec
|
|
55
|
+
|
|
56
|
+
This avoids agent-002 waiting for agent-001 to finish, saving significant time and quota.
|
|
57
|
+
|
|
58
|
+
**Always define the API contract before spawning parallel agents:**
|
|
59
|
+
```typescript
|
|
60
|
+
// Agree on this before agents run:
|
|
61
|
+
// POST /api/generate
|
|
62
|
+
// Input: { clientName: string, projectType: string, budget: number }
|
|
63
|
+
// Output: { proposal: string, error?: string }
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Quota Log
|
|
69
|
+
|
|
70
|
+
| Event | Impact |
|
|
71
|
+
|-------|--------|
|
|
72
|
+
| agent-001 (Flash, 1 file) | LOW |
|
|
73
|
+
| agent-002 (Sonnet, 3 files) | MEDIUM |
|
|
74
|
+
| agent-003 (Flash, review only) | LOW |
|
|
75
|
+
| 0 browser agents | NONE |
|
|
76
|
+
| **Total estimated** | **~30% sprint** |
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Example: Repair Mission for a Broken Build
|
|
2
|
+
|
|
3
|
+
## Scenario
|
|
4
|
+
User: "My Vercel deploy is failing. Build error: Cannot find module '@/components/ProposalResult'"
|
|
5
|
+
|
|
6
|
+
This is a targeted repair — minimum agents, minimum quota.
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
## Mission Brief
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
MISSION BRIEF
|
|
14
|
+
─────────────────────────────────────────
|
|
15
|
+
Goal: Fix broken import causing Vercel build failure. Do not touch anything else.
|
|
16
|
+
Total Agents: 1
|
|
17
|
+
Quota Strategy: FLASH only
|
|
18
|
+
Expected Token Cost: LOW
|
|
19
|
+
|
|
20
|
+
AGENTS:
|
|
21
|
+
[1] ID: repair-001
|
|
22
|
+
Role: Repair Agent
|
|
23
|
+
Scope: ONLY the file containing the broken import + the missing file (if it needs creating)
|
|
24
|
+
Model: Gemini Flash
|
|
25
|
+
Input: Exact error message, file path of the import
|
|
26
|
+
Output: Fixed import OR created missing file — nothing else
|
|
27
|
+
Depends on: none
|
|
28
|
+
─────────────────────────────────────────
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Repair Protocol
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
Step 1: Read the exact error — don't assume context
|
|
37
|
+
Error: "Cannot find module '@/components/ProposalResult'"
|
|
38
|
+
|
|
39
|
+
Step 2: Check if the file exists
|
|
40
|
+
→ If exists: fix the import path (casing issue, wrong alias, etc.)
|
|
41
|
+
→ If missing: create the minimum viable file (even if empty with correct export)
|
|
42
|
+
|
|
43
|
+
Step 3: Verify the fix compiles mentally
|
|
44
|
+
→ Check all other files that import the same module
|
|
45
|
+
→ Confirm tsconfig.json paths alias is correct
|
|
46
|
+
|
|
47
|
+
Step 4: Report what was changed and why — one sentence each
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## What NOT to do in a repair mission
|
|
53
|
+
|
|
54
|
+
- Do NOT re-read the entire codebase to "understand context"
|
|
55
|
+
- Do NOT refactor adjacent files while you're in there
|
|
56
|
+
- Do NOT switch to a more powerful model "just to be safe"
|
|
57
|
+
- Do NOT open a browser agent to check Vercel dashboard
|
|
58
|
+
- Do NOT spawn additional agents for a single broken import
|
|
59
|
+
|
|
60
|
+
---
|
|
61
|
+
|
|
62
|
+
## Quota Log
|
|
63
|
+
|
|
64
|
+
| Event | Impact |
|
|
65
|
+
|-------|--------|
|
|
66
|
+
| 1 Flash agent | LOW |
|
|
67
|
+
| 2–3 files read | LOW |
|
|
68
|
+
| 1–2 files written | LOW |
|
|
69
|
+
| **Total estimated** | **< 5% sprint** |
|
|
70
|
+
|
|
71
|
+
> Repair missions should almost never exceed 10% sprint quota.
|
|
72
|
+
> If a repair is growing complex, stop — decompose it as a new full mission instead.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Example: Building a Full Next.js Feature with 3 Parallel Agents
|
|
2
|
+
|
|
3
|
+
## Scenario
|
|
4
|
+
User prompt: "Add a user authentication flow — login page, signup page, and a protected dashboard route."
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Mission Brief (what orchestrator produces)
|
|
9
|
+
|
|
10
|
+
```
|
|
11
|
+
MISSION BRIEF
|
|
12
|
+
─────────────────────────────────────────
|
|
13
|
+
Goal: Auth flow with login, signup, and protected dashboard — all wired and working.
|
|
14
|
+
Total Agents: 3
|
|
15
|
+
Quota Strategy: FLASH for all, Sonnet for integration review only
|
|
16
|
+
Expected Token Cost: MEDIUM
|
|
17
|
+
|
|
18
|
+
AGENTS:
|
|
19
|
+
[1] ID: agent-001
|
|
20
|
+
Role: Builder — Auth UI
|
|
21
|
+
Scope: /app/login/page.tsx, /app/signup/page.tsx
|
|
22
|
+
Model: Gemini Flash
|
|
23
|
+
Input: Design system from GEMINI.md, form fields spec
|
|
24
|
+
Output: Two complete page components with Tailwind styling
|
|
25
|
+
Depends on: none
|
|
26
|
+
|
|
27
|
+
[2] ID: agent-002
|
|
28
|
+
Role: Builder — API Routes
|
|
29
|
+
Scope: /app/api/auth/login/route.ts, /app/api/auth/signup/route.ts
|
|
30
|
+
Model: Gemini Flash
|
|
31
|
+
Input: Auth logic spec, env variable names from .env.example
|
|
32
|
+
Output: Two API route handlers with error responses
|
|
33
|
+
Depends on: none
|
|
34
|
+
|
|
35
|
+
[3] ID: agent-003
|
|
36
|
+
Role: Builder — Protected Route
|
|
37
|
+
Scope: /app/dashboard/page.tsx, /middleware.ts
|
|
38
|
+
Model: Gemini Flash
|
|
39
|
+
Input: Output from agent-001 (session shape), output from agent-002 (token format)
|
|
40
|
+
Output: Dashboard page + middleware redirect logic
|
|
41
|
+
Depends on: agent-001, agent-002
|
|
42
|
+
─────────────────────────────────────────
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Execution Flow
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
Round 1 (parallel):
|
|
51
|
+
agent-001 → builds login + signup UI
|
|
52
|
+
agent-002 → builds API routes
|
|
53
|
+
|
|
54
|
+
[Spot check after Round 1]
|
|
55
|
+
✓ agent-001 stayed in /app/login and /app/signup only
|
|
56
|
+
✓ agent-002 used correct env variable names
|
|
57
|
+
✓ No TODOs left in either output
|
|
58
|
+
|
|
59
|
+
Round 2 (sequential, depends on Round 1):
|
|
60
|
+
agent-003 → builds dashboard + middleware
|
|
61
|
+
receives session shape from agent-001
|
|
62
|
+
receives token format from agent-002
|
|
63
|
+
|
|
64
|
+
[Spot check after Round 2]
|
|
65
|
+
✓ Middleware correctly references session cookie name
|
|
66
|
+
✓ Dashboard imports resolve to existing components
|
|
67
|
+
✓ No hardcoded redirect URLs
|
|
68
|
+
|
|
69
|
+
Integration Check:
|
|
70
|
+
✓ All imports resolve
|
|
71
|
+
✓ No duplicate type definitions
|
|
72
|
+
✓ Build mentally verified
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## Quota Log
|
|
78
|
+
|
|
79
|
+
| Event | Impact |
|
|
80
|
+
|-------|--------|
|
|
81
|
+
| 3 agents spawned | LOW |
|
|
82
|
+
| ~12 files indexed total | LOW |
|
|
83
|
+
| ~18 tool calls across all agents | MEDIUM |
|
|
84
|
+
| 0 browser agents used | NONE |
|
|
85
|
+
| **Total estimated** | **~25% sprint** |
|
|
86
|
+
|
|
87
|
+
> Tip: This mission costs ~25% sprint quota. You can run 3–4 missions like this per day on the free tier.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Mission Brief Template
|
|
2
|
+
|
|
3
|
+
Copy this before every multi-agent task. Fill it in, share with the orchestrator, wait for confirmation.
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
MISSION BRIEF
|
|
7
|
+
─────────────────────────────────────────
|
|
8
|
+
Goal:
|
|
9
|
+
Total Agents:
|
|
10
|
+
Quota Strategy: [ FLASH-ONLY | MIXED | SONNET-LEAD ]
|
|
11
|
+
Expected Token Cost: [ LOW | MEDIUM | HIGH ]
|
|
12
|
+
|
|
13
|
+
AGENTS:
|
|
14
|
+
[1] ID: agent-001
|
|
15
|
+
Role:
|
|
16
|
+
Scope:
|
|
17
|
+
Model: [ Gemini Flash | Claude Sonnet ]
|
|
18
|
+
Input:
|
|
19
|
+
Output:
|
|
20
|
+
Depends on: [ none | agent-XXX ]
|
|
21
|
+
|
|
22
|
+
[2] ID: agent-002
|
|
23
|
+
Role:
|
|
24
|
+
Scope:
|
|
25
|
+
Model:
|
|
26
|
+
Input:
|
|
27
|
+
Output:
|
|
28
|
+
Depends on:
|
|
29
|
+
|
|
30
|
+
─────────────────────────────────────────
|
|
31
|
+
EXCLUSIONS (files agents must not touch):
|
|
32
|
+
- node_modules/
|
|
33
|
+
- .next/
|
|
34
|
+
- dist/
|
|
35
|
+
- package-lock.json
|
|
36
|
+
- [add project-specific exclusions]
|
|
37
|
+
|
|
38
|
+
API CONTRACT (if agents share data):
|
|
39
|
+
Endpoint:
|
|
40
|
+
Input shape: { }
|
|
41
|
+
Output shape: { }
|
|
42
|
+
─────────────────────────────────────────
|
|
43
|
+
```
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Quota Reference Card
|
|
2
|
+
|
|
3
|
+
Quick reference for estimating and managing quota in every mission.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Sprint vs Weekly Limits
|
|
8
|
+
|
|
9
|
+
| Limit | Size | Resets |
|
|
10
|
+
|-------|------|--------|
|
|
11
|
+
| Sprint limit | 250 units | Every 5 hours |
|
|
12
|
+
| Weekly baseline | 2,800 units | Once per week (hard cap) |
|
|
13
|
+
|
|
14
|
+
The 5-hour refresh only refills the sprint — NOT the weekly baseline.
|
|
15
|
+
|
|
16
|
+
---
|
|
17
|
+
|
|
18
|
+
## Estimated Cost Per Event
|
|
19
|
+
|
|
20
|
+
| Action | Approx Units |
|
|
21
|
+
|--------|-------------|
|
|
22
|
+
| Spawning 1 agent | 1–2 |
|
|
23
|
+
| Reading 1 file (small) | 1 |
|
|
24
|
+
| Reading 1 file (large, e.g. 500+ lines) | 3–5 |
|
|
25
|
+
| Writing/editing 1 file | 2–4 |
|
|
26
|
+
| Terminal command | 2–3 |
|
|
27
|
+
| Browser subagent session | 15–30 |
|
|
28
|
+
| Enabling thinking/reasoning mode | 10–20 extra |
|
|
29
|
+
| Re-running a failed agent | same as original |
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Model Multipliers (relative cost)
|
|
34
|
+
|
|
35
|
+
| Model | Cost Multiplier |
|
|
36
|
+
|-------|----------------|
|
|
37
|
+
| Gemini Flash | 1x (baseline) |
|
|
38
|
+
| Claude Sonnet | ~4x |
|
|
39
|
+
| Claude Opus | ~8x (avoid in subagents) |
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
|
|
43
|
+
## Mission Size Guide
|
|
44
|
+
|
|
45
|
+
| Mission Size | Agents | Est. Sprint % | Safe? |
|
|
46
|
+
|-------------|--------|---------------|-------|
|
|
47
|
+
| Tiny (1 file fix) | 1 Flash | < 5% | Always |
|
|
48
|
+
| Small (1 feature) | 2–3 Flash | 15–25% | Yes |
|
|
49
|
+
| Medium (full flow) | 3–4 Mixed | 30–45% | Yes |
|
|
50
|
+
| Large (whole module) | 5+ Mixed | 50–70% | Careful |
|
|
51
|
+
| XL (full app build) | 6+ | 70–100% | Split across days |
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Quota Saving Moves
|
|
56
|
+
|
|
57
|
+
1. **`.antigravityignore`** → biggest single saving. Do this first always.
|
|
58
|
+
2. **New conversation per mission** → prevents history bloat eating tokens.
|
|
59
|
+
3. **Spec-first parallelism** → agents run at same time instead of waiting in sequence.
|
|
60
|
+
4. **Flash for repairs** → never use Sonnet to fix a small bug.
|
|
61
|
+
5. **Skip browser agent** → unless the task literally requires a live webpage.
|
|
62
|
+
6. **Sideload AI Studio key** → free Gemini quota when weekly limit hits.
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Sideload Free Quota (when you hit the wall)
|
|
67
|
+
|
|
68
|
+
1. Go to https://aistudio.google.com
|
|
69
|
+
2. Create a free API key (Gemini Flash, free tier)
|
|
70
|
+
3. In Antigravity → Settings → Models → Paste API key
|
|
71
|
+
4. Now running on your own separate quota pool
|
|
72
|
+
|
|
73
|
+
Works great for continuation after weekly baseline runs out.
|