avibebuilder/diagnose
Investigate unexpected behavior and mysterious bugs. Use when the cause of a problem is unknown and the user needs to understand WHY something is happening — symptoms like: sudden unexplained changes in metrics or behavior, works locally but not in staging/production, inconsistent or intermittent failures, correct code producing wrong results, operations succeeding but having no effect, environment-specific failures, duplicate executions, stale data, or any \"why did this change?\" or \"why is this happening?\" situation. Covers infrastructure anomalies (cache hit rates dropping, latency spikes, queue behavior shifts) as well as code bugs. The key signal is confusion about root cause, not a request to implement a known fix. Do NOT use for feature requests, known fixes, planning, or documentation tasks.
npx skills add https://github.com/avibebuilder/claude-prime --skill diagnose
Think harder.
Check conversation context and skip completed steps.
Fact (confirmed): the server returns 200Assumption (unconfirmed): the client receives the full HTML bodyMisidentifying an assumption as a fact is the most common source of wasted investigation.
Confirm if: [what observation would prove this is the cause]Eliminate if: [what observation would rule this out]A hypothesis you can't falsify in both directions is too vague to test.
Start with the cheapest source of truth that can kill hypotheses:
Only add new instrumentation when existing evidence is insufficient.
diagnose/references/runtime-debugging.md#region agent log / #endregion markers for any instrumentation you addhypothesisIdagent-browser skill when reproduction or inspection needs itOutput structured diagnosis:
## Diagnosis: [Issue Title]
### Symptoms
- [What was observed]
### Evidence
- [Finding] — `file:line` or runtime source — hypothesis X
- ...
### Root Cause
[Confirmed or most likely cause, with evidence]
### Hypotheses Tested
| # | Hypothesis | Confirm if | Eliminate if | Result |
|---|-----------|-----------|-------------|--------|
| A | ... | [what observation would prove this] | [what observation would rule this out] | Confirmed/Eliminated/Inconclusive |
### Recommended Next Steps
- [What to do next — usually hand off to `/fix` with this diagnosis]
### Active Instrumentation
- [List files with `#region agent log` blocks still in place, or `None`]
/fix with the diagnosis; it does not prescribe specific parameter values, code snippets, or step-by-step implementation instructions.#region agent log blocks, leave them in place for /fix to verify the repair and call them out in the final report<bug>$ARGUMENTS</bug>
Take avibebuilder/diagnose from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.