What it does
/troubleshoot runs a structured four-phase debugging process. It starts by confirming the issue is reproducible, gathers the exact error and context, then works through root cause investigation, pattern analysis, hypothesis testing, and implementation — in that order.
When to use
Use/troubleshoot when you have a bug, test failure, or unexpected behavior to diagnose. Use it for flaky issues, environment-specific failures, and anything that resists ad-hoc guessing.
Prerequisites
- An exact error message or description of unexpected behavior
- Ideally: a stack trace and “when did this last work?”
Conversation mode
Planning Mode — required.What happens
Confirm reproducibility
Before loading any skill, Antigravity asks: “Can you trigger this consistently? Yes/No?” For flaky issues, the protocol changes: Phase 1 priority shifts to timing dependencies, async race conditions, and environment-specific state. Antigravity will not attempt a fix until the failure can be reproduced at least once on demand — or until it can explain why consistent reproduction is impossible.
Gather context
The exact error message, stack trace, and “when did this last work?” are collected before investigation begins.
Phase 1 — Root cause investigation
The
systematic-debugging skill leads. The codebase is read, logs are examined, and possible causes are enumerated without guessing.Phase 2 — Pattern analysis
The failure pattern is analyzed: is it consistent, intermittent, environment-specific, or regression-triggered? Related code paths are examined.
Phase 3 — Hypothesis and testing
A specific, falsifiable hypothesis is formed. It is tested with targeted instrumentation — not trial-and-error retries.
Skills invoked
systematic-debugging— owns the four-phase debugging processverification-before-completion— confirms the fix is complete before declaring donedeep-research— loaded if all four phases complete without resolution, to search official docs and issues
Commit format after fix
Escalation path
If all four phases complete and the issue is still unresolved:- Document in
BLOCKERS.md: symptom, what was tried, what was ruled out - Load
deep-researchskill to search official docs and open issues - Present findings to you with a specific, targeted question
What not to do
- Do not retry the same failing command without a new hypothesis
- Do not declare fixed without running
verification-before-completion - Do not guess and check — form a hypothesis first
Example
Related commands
/analyze
Proactive code analysis — catch issues before they become bugs.
/test
Run the test suite to confirm the fix and check for regressions.
/research
Research unfamiliar error patterns or third-party library issues.
/implement
If troubleshooting reveals a larger design issue, implement the proper fix with TDD.