Antigravity Swarm Start Work
Use this skill after asw-plan when the user says start-work, asw-start-work, execute the plan, continue the plan, or resume a plan under .asw/plans/.
Contract
- Select the named plan. If no name is provided, inspect
.asw/plans/ and choose the only active plan; ask one focused question only when multiple plans match.
- Create or resume
.asw/start-work/state.json before editing. Track the selected plan path, active checkbox, spawned subagents, artifacts, and cleanup items.
- Re-read the selected plan before each step.
- Execute the first unchecked top-level checkbox in
## TODOs or ## Final Verification Wave.
- Split independent work across Antigravity subagents. Keep dependent file edits serialized.
- For each checkbox, capture:
- failing test or reproduction before production changes,
- passing automated verification after the fix,
- real-surface QA through tmux, browser, HTTP, or desktop automation,
- applicable adversarial checks,
- cleanup receipt for every spawned QA resource.
- Mark the checkbox done only after the evidence exists.
- Continue to the next unchecked checkbox without asking whether to proceed.
Execution Rules
- If the selected checkbox is too broad, split it inside the plan before editing.
- Keep one status ledger entry per checkbox: started, RED evidence, implementation, GREEN evidence, real-surface QA, cleanup, done.
- Do not mark a checkbox complete until the evidence named in the plan exists.
- If a command fails for environmental reasons, capture the exact failure and choose the nearest authoritative fallback.
- If user instructions conflict with the plan, follow the newest user instruction and update the plan ledger.
- If unrelated local changes exist, preserve them and work around them.
Resume Protocol
On start:
- Read the selected plan.
- Read
.asw/start-work/state.json if present.
- Confirm the last completed checkbox.
- Confirm any in-progress checkbox.
- Verify artifacts listed in state still exist or mark them stale.
- Inspect git status.
- Continue from the first unchecked checkbox.
State shape:
{
"plan": ".asw/plans/name.md",
"activeTask": "Task 3",
"completed": [],
"artifacts": [],
"cleanup": [],
"blockers": []
}
Do not restart from scratch when state exists. Reconcile state with the plan.
Evidence Ledger
For each checkbox, append:
Task:
RED:
Implementation:
GREEN:
Manual QA:
Reviewer:
Cleanup:
Status:
If a plan item has no RED test because it is docs-only or inventory-only, record the exemption and the replacement check. Do not silently skip evidence.
Manual QA Channels
Run the channel named by the plan:
- HTTP call for API behavior,
- tmux for CLI, installer, hook, HUD, and package smoke,
- browser for web UI,
- computer use for desktop or IDE flows.
If the named channel is impossible in the environment, record:
- why it is impossible,
- nearest authoritative fallback,
- what risk remains.
Do not substitute unit tests for manual QA.
Reviewer Gate
Run a reviewer before completion when:
- the plan's final verification wave asks for it,
- 3 or more files changed,
- package or public docs changed,
- hooks, agents, skills, installer, or status line changed,
- private/runtime exclusion is part of the goal.
Reviewer packet:
- selected plan,
- evidence ledger,
- diff,
- automated test outputs,
- manual QA artifacts,
- package/private scans,
- cleanup receipts,
- remaining risk.
Blockers must be fixed and rechecked before final status.
Cleanup Receipts
Every task must close its own resources:
- temp dirs removed,
- tmux sessions killed,
- spawned servers stopped,
- browser contexts closed,
- generated scratch files deleted,
- package tarballs removed,
- config backups restored or documented.
Append one receipt per resource. A missing cleanup receipt keeps the task open.
Failure Handling
When a task fails:
- Capture the failing command and output.
- Identify whether the failure is code, test, environment, or plan quality.
- Fix code/test issues with the smallest change.
- Update the plan if the task was underspecified.
- Retry once with a clearer check.
- If the same blocker repeats, stop and report with evidence.
Do not mark the checkbox done because a fallback passed unless the fallback proves the same user-visible criterion.
Final Verification
Before printing completion:
- all top-level checkboxes are marked complete,
- evidence ledger has no empty RED/GREEN/manual QA rows except documented exemptions,
- final verification wave ran,
- package/private surfaces were checked when shipping changed,
- reviewer gate passed when triggered,
- cleanup list is closed,
- git status is understood.
Completion
When every top-level checkbox is complete, run the plan's final verification commands and print:
ORCHESTRATION COMPLETE
Plan: <path>
Verification: <commands>
Artifacts: <paths>
Cleanup: <receipts>
Never treat green tests alone as completion. The plan is done only when the observable user-facing surface has been exercised and all continuation state is closed.
1---2name: asw-start-work3description: Execute an ASW plan after asw-plan, with subagents, verification, real-surface QA, continuation state, and cleanup receipts.4---56# Antigravity Swarm Start Work78Use this skill after `asw-plan` when the user says `start-work`, `asw-start-work`, execute the plan, continue the plan, or resume a plan under `.asw/plans/`.910## Contract11121. Select the named plan. If no name is provided, inspect `.asw/plans/` and choose the only active plan; ask one focused question only when multiple plans match.132. Create or resume `.asw/start-work/state.json` before editing. Track the selected plan path, active checkbox, spawned subagents, artifacts, and cleanup items.143. Re-read the selected plan before each step.154. Execute the first unchecked top-level checkbox in `## TODOs` or `## Final Verification Wave`.165. Split independent work across Antigravity subagents. Keep dependent file edits serialized.176. For each checkbox, capture:18 - failing test or reproduction before production changes,19 - passing automated verification after the fix,20 - real-surface QA through tmux, browser, HTTP, or desktop automation,21 - applicable adversarial checks,22 - cleanup receipt for every spawned QA resource.237. Mark the checkbox done only after the evidence exists.248. Continue to the next unchecked checkbox without asking whether to proceed.2526## Execution Rules2728- If the selected checkbox is too broad, split it inside the plan before editing.29- Keep one status ledger entry per checkbox: started, RED evidence, implementation, GREEN evidence, real-surface QA, cleanup, done.30- Do not mark a checkbox complete until the evidence named in the plan exists.31- If a command fails for environmental reasons, capture the exact failure and choose the nearest authoritative fallback.32- If user instructions conflict with the plan, follow the newest user instruction and update the plan ledger.33- If unrelated local changes exist, preserve them and work around them.3435## Resume Protocol3637On start:38391. Read the selected plan.402. Read `.asw/start-work/state.json` if present.413. Confirm the last completed checkbox.424. Confirm any in-progress checkbox.435. Verify artifacts listed in state still exist or mark them stale.446. Inspect git status.457. Continue from the first unchecked checkbox.4647State shape:4849```json50{51 "plan": ".asw/plans/name.md",52 "activeTask": "Task 3",53 "completed": [],54 "artifacts": [],55 "cleanup": [],56 "blockers": []57}58```5960Do not restart from scratch when state exists. Reconcile state with the plan.6162## Evidence Ledger6364For each checkbox, append:6566```text67Task:68RED:69Implementation:70GREEN:71Manual QA:72Reviewer:73Cleanup:74Status:75```7677If a plan item has no RED test because it is docs-only or inventory-only, record the exemption and the replacement check. Do not silently skip evidence.7879## Manual QA Channels8081Run the channel named by the plan:8283- HTTP call for API behavior,84- tmux for CLI, installer, hook, HUD, and package smoke,85- browser for web UI,86- computer use for desktop or IDE flows.8788If the named channel is impossible in the environment, record:8990- why it is impossible,91- nearest authoritative fallback,92- what risk remains.9394Do not substitute unit tests for manual QA.9596## Reviewer Gate9798Run a reviewer before completion when:99100- the plan's final verification wave asks for it,101- 3 or more files changed,102- package or public docs changed,103- hooks, agents, skills, installer, or status line changed,104- private/runtime exclusion is part of the goal.105106Reviewer packet:107108- selected plan,109- evidence ledger,110- diff,111- automated test outputs,112- manual QA artifacts,113- package/private scans,114- cleanup receipts,115- remaining risk.116117Blockers must be fixed and rechecked before final status.118119## Cleanup Receipts120121Every task must close its own resources:122123- temp dirs removed,124- tmux sessions killed,125- spawned servers stopped,126- browser contexts closed,127- generated scratch files deleted,128- package tarballs removed,129- config backups restored or documented.130131Append one receipt per resource. A missing cleanup receipt keeps the task open.132133## Failure Handling134135When a task fails:1361371. Capture the failing command and output.1382. Identify whether the failure is code, test, environment, or plan quality.1393. Fix code/test issues with the smallest change.1404. Update the plan if the task was underspecified.1415. Retry once with a clearer check.1426. If the same blocker repeats, stop and report with evidence.143144Do not mark the checkbox done because a fallback passed unless the fallback proves the same user-visible criterion.145146## Final Verification147148Before printing completion:149150- all top-level checkboxes are marked complete,151- evidence ledger has no empty RED/GREEN/manual QA rows except documented exemptions,152- final verification wave ran,153- package/private surfaces were checked when shipping changed,154- reviewer gate passed when triggered,155- cleanup list is closed,156- git status is understood.157158## Completion159160When every top-level checkbox is complete, run the plan's final verification commands and print:161162```text163ORCHESTRATION COMPLETE164Plan: <path>165Verification: <commands>166Artifacts: <paths>167Cleanup: <receipts>168```169170Never treat green tests alone as completion. The plan is done only when the observable user-facing surface has been exercised and all continuation state is closed.