genzorr/agents/diagnose
Claude Code and agent skill by genzorr/agents
- community
Checking that the SKILL.md file is still in the repository.
Diagnose hard bugs, failing behavior, flaky tests, and performance regressions through a disciplined feedback-loop-first process. Use when the user says diagnose/debug, reports something broken or slow, provides an error/log, or asks for root-cause analysis before fixing.
Install
npx vskill@latest install genzorr/agents/diagnoseSKILL.md
The same SKILL.md was published earlier as genzorr/agents/diagnose.
Diagnose
Find the cause before changing code. Prefer a fast, deterministic pass/fail loop over code-reading guesses.
Handle a clear build failure
Use the supplied log and its original command. Check whether several messages share one cause, and inspect independent failures too. If the user requests only diagnosis, return the causes and next checks without editing. If repair is authorized and the cause is clear, fix the owning code, exercise affected callers and rerun the failing command. Use the full workflow below when reproduction, cause or recovery is uncertain.
Workflow
- Build the loop. Create or identify the smallest reliable signal that reproduces the symptom: a failing test, CLI command, fixture replay, browser script, benchmark, log assertion, or trace comparison. If runtime reproduction is unavailable, use the supplied logs, traces, failing assertions, fixtures, source invariants, or history for a bounded diagnosis. Distinguish verified evidence from unverified reports and state what remains inaccessible; ask for a missing artifact or environment only when that gap blocks useful progress.
- Reproduce or verify. Run the loop when one is available and confirm whether it matches the reported symptom. When no runtime loop exists, verify the diagnosis against the available evidence and say explicitly that runtime reproduction is unverified. For flaky failures, raise reproduction rate with repetition, stress, fixed seeds, or narrower setup.
- Hypothesize. List plausible, falsifiable causes in proportion to the evidence; do not force a fixed number. If one cause is supported, test that cause directly. If multiple material causes remain open, gather the cheapest discriminating evidence and state the unresolved gap.
- Instrument. Probe one hypothesis at a time. Use debugger/REPL inspection first when practical, then targeted logs or metrics. Tag temporary logs with a unique prefix so cleanup is reliable.
- Fix only when authorized. If the user asked for a fix (for example, "debug and fix") or an active implementation contract authorizes it, turn the minimized repro or other meaningful observable evidence into a regression test before the fix when that test protects a plausible production defect. For a tiny textual or configuration repair where source and existing checks provide the relevant evidence, use proportional verification instead of adding a generic test. Otherwise report the root cause and regression-test direction without editing source or tests. If no seam exists, note that as an architecture/testing gap.
- Verify and clean up. Re-run the original loop when available and run meaningful regression checks for the changed behavior. State which evidence is verified and which remains unverified, remove temporary instrumentation/prototypes, and state the confirmed or bounded root cause.
Systemic diagnosis when requested
An explicit request for systemic diagnosis can use docs/systemic-diagnosis-selector.md to map a recurring or cross-boundary failure. Distinguish observations, inferences and hypotheses, preserve refuted branches and choose the cheapest test that separates competing explanations. Keep ordinary local diagnosis on its existing path. If the diagnosis informs reusable guidance or a default, use docs/claim-discipline.md to bound the inference.
When interactions or recovery across components are material, use docs/whole-system-review.md for the relevant questions. Skip it for a contained local fault.
Rules
- Do not fix a guessed cause: apply a fix only when the cause is supported by the repro or available evidence; otherwise investigate the competing causes or explain what evidence is missing.
- For performance regressions, measure baseline first; do not add broad logging in hot paths.
- If the loop is too slow or noisy, improve the loop before continuing.
- Keep temporary files clearly named and delete them before reporting done unless the user asked to keep them.
- If the diagnosis exposes a module/interface problem, recommend
architecture-reviewafter the immediate bug is understood.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcodex/skills/diagnose/SKILL.md
Popularity
- Repository stars
- 2
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/genzorr/agents/diagnose)