| name | diagnose |
| description | Use for hard bugs, failing checks, pipeline failures, homelab incidents, performance regressions, or reports that something is broken and needs root-cause analysis. |
Diagnose
Core rule
Build a feedback loop before theorizing. A fast deterministic pass or fail signal is the main tool.
Workflow
- Reproduce or create the closest runnable signal:
- failing test
- CLI command
- curl or HTTP script
- log query
- minimal harness
- Confirm the signal matches the user's symptom.
- Generate 3 to 5 falsifiable hypotheses.
- Test one variable at a time.
- Add targeted temporary instrumentation only when needed.
- Fix the confirmed cause.
- Add a regression test when there is a correct seam.
- Remove temporary instrumentation and rerun the original signal.
Debug logging
- Use a unique prefix such as
[DEBUG-abc123].
- Remove it before completion.
- Never log secrets.
Stop condition
If no feedback loop can be built, report what was tried and ask for the missing artifact or access.