Google Antigravity: Agentic Task Prompts
Antigravity Expects Done Criteria
Agentic IDEs (including Google Antigravity) perform best when each turn has a single objective and verifiable completion signal—tests passing, screenshot, command output, or file diff.
Objective + Constraints Template
"Objective: add dark mode toggle to the settings page. Constraints: use existing CSS variables; no new npm packages; support system preference + manual override. Done when: (1) toggle persists in localStorage, (2) charts remain readable in both themes, (3) npm run build succeeds."
Stepwise Execution
"Work in phases. Phase 1 — audit current theme tokens and list gaps. Phase 2 — implement toggle UI. Phase 3 — fix chart styles. After each phase, stop and show summary before continuing."
Proof of Verification
Require evidence: command run, test count, or before/after description. Reject "should work" without artifacts.
Recovery Prompt
"You are stuck. Stop editing. Summarize what you tried, exact errors, and two smallest next options. Do not change more files until I choose."