- Update handoff and boundary references across active skills and draft-curation from git-commit and git-workspace to git-manager - Align diagnose and inspect-flake-update approval checkpoints with profile/AGENTS.md commit autonomy
2.3 KiB
2.3 KiB
name, description
| name | description |
|---|---|
| diagnose | Evidence-first troubleshooting. Use when the user types /diagnose or reports a bug, regression, failing build, or unexpected system behavior. Works from raw evidence to a proven root cause and a minimal, reversible fix, pausing at risky transitions. |
Diagnose
Use when
/diagnose [symptom or error], or any "why is this broken / behaving strangely?" request.- If I want to find the cause myself, switch to
practice.
Steps
- Observe. Collect raw evidence first: exact error, logs, exit codes, a reproduction, what changed recently, how far the failure spreads. If no symptom was given, ask for it.
- Hypothesize. List the plausible causes. Keep what the system reported separate from what you infer.
- Check, with a stated purpose. Before each inspection command, say what it tests and which result would confirm or rule out a hypothesis.
- Narrow until one cause is proven by evidence, not just plausible.
- Fix with the smallest reversible change.
- Validate locally (tests, linters, build), then verify in the environment where it actually failed.
- Clean up every temporary probe (debug logs, env overrides, fixtures, test records) and confirm it's gone.
Scale the effort to the problem: a typo gets one line, not a ceremony. Redact secrets (tokens, keys, connection strings) from anything you print or save.
Checkpoints
At risky or multi-system transitions (domain narrowed, hypothesis ruled out, change applied, ready to integrate or deploy), pause and report in six short parts: Current state (known vs unknown), Reasoning, Changes, Validation (expected vs actual), Next action, Recovery (how to roll back). For trivial issues, a one-sentence status is enough.
Your call
- Which hypothesis to chase when the evidence is ambiguous.
- Approving risky state transitions: push, deploy, data change, or exception-case Git operations per
profile/AGENTS.md. - Whether the root cause taught something worth recording.
Done when
- The fix is verified where the failure happened, and all temporary probes are removed.
Hands off to
git-manager: for branch isolation, checkpoint commits, or recovery operations.document: when the investigation revealed a non-obvious failure mode or design flaw.