/agent-skills:debuggingfrom agent-skills
Systematically finds the root cause of bugs, crashes, wrong values, and failing tests by locating the divergence point between expected and actual behavior.
Ships in agent-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A bug is a gap between what you believe the system does and what it does. Debugging closes the gap by finding the smallest place where belief and behaviour diverge. You are not looking for a fix yet — you are looking for the divergence point.
The failure mode this skill exists to prevent: changing code before locating the divergence point. A fix applied to a guessed cause either does nothing or hides the symptom, and both outcomes cost more than the time you saved.
Get a command that fails every time you run it. Write it down verbatim.
If it is intermittent, find what varies between runs — ordering, time, concurrency, a leftover file, a network call, and pin it. An intermittent bug is a bug with a hidden input.
Done when: you can produce the failure at will, or you have written down exactly why you cannot and what you are working from instead (a single log, one user report).
Write one sentence: what you expect to happen, and where. Be specific enough to be wrong — "the handler receives a list of two items" is testable, "auth works" is not.
Done when: the sentence names a place in the code and a value or behaviour you could observe there.
Find one observation point between a place where the system is definitely correct and a place where it is definitely wrong. Check it. That halves the search space. Repeat.
Observe, don't infer. Read the value, print it, break on it, log it. Do not reason about what it must be — the whole reason you have a bug is that your reasoning about this code is wrong somewhere.
Useful halving points, roughly in order of how much they narrow:
git bisect if the range is wide)Done when: you have two adjacent points where the value is right at one and wrong at the other.
Say out loud how the cause produces everything you observed, not just the headline error. The stray warning, the wrong count, the second failure downstream.
If part of the symptom is unexplained, you have found a bug, not necessarily the bug. Keep going or note the second one explicitly.
Done when: every observed symptom traces to the cause, or the leftovers are written down as separate findings.
Fix where the divergence is, not where the symptom surfaced. A null check at the crash site when the real problem is the value never being set is a symptom fix — it converts a crash into silently wrong data, which is worse.
Then prove it: run the step 1 command. It must now pass, and it must fail again if you revert the fix. If you cannot make it fail again, you have not proven the fix caused the pass.
Done when: the reproduction passes with the fix and fails without it.
A bug that reached you once will reach you again. Write the test that would have caught it, at the divergence point, and confirm it fails against the unfixed code.
Done when: a committed test fails on the old code and passes on the new.
Stuck usually means a false belief you have not questioned. Try, in order:
Report the divergence point and the evidence, not just the fix. The user needs to know why it broke to judge whether the fix is right.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub arjunprabhulal/agent-skills --plugin agent-skills60 skills in this plugin
/accessibility-reviewReviews an interface for barriers that stop people using it — keyboard operation, screen reader support, contrast, focus management, and form semantics. Use this whenever the user is building or reviewing UI, mentions accessibility, a11y, WCAG, screen readers, or keyboard navigation, and proactively when a change adds a modal, a custom control, a form, or anything interactive. For general code correctness, use code-review./agent-deploymentShips an agent to production — packaging, config and secrets, staged rollout, and the rollback plan — for a system whose failures are usually silent rather than loud. Use this whenever the user is deploying an agent or LLM feature, planning a rollout or canary, moving an agent from prototype to production, or asking how to release a prompt or model change safely. For monitoring it once live, use agent-observability./agent-designDesigns an agent's architecture — the tool surface, context strategy, control flow, and model choice — from a scoped set of jobs. Use this whenever the user is deciding how an agent should be built rather than what it should do — choosing tools, wiring up an agent loop, deciding single-agent vs multi-agent, picking a model, or planning what goes in the context window. Also use when an existing agent is unreliable and the cause looks structural rather than a prompt problem. For deciding what the agent is for, use agent-scoping first./agent-evaluationBuilds an eval set for an agent or LLM feature, writes graders, establishes a baseline, and reads the results honestly. Use this whenever the user wants to measure whether an agent works, asks if a prompt or model change was an improvement, mentions evals, LLM-as-judge, regression testing for AI, or is about to ship an agent on the strength of a few manual tries. Also use before any prompt or model change, since without a baseline no change can be judged./agent-hardeningMakes an agent safe to run with real permissions on real data — scoping what it can do, handling prompt injection, adding confirmation and dry-run for irreversible actions, and bounding cost. Use this whenever an agent is about to touch production, act autonomously, handle untrusted input, or use credentials, and whenever the user asks about agent safety, guardrails, permissions, or prompt injection. Also use when an agent has broad API access that nothing in code restricts./agent-implementationBuilds an agent from a design — the loop, the tools, the prompts, the schema validation, and the traces you will need later. Use this whenever the user is writing agent code — implementing tool calling, wiring an agent loop, building an MCP server or tool layer, writing system prompts for an agent, or turning a prototype agent into something maintainable. For deciding the architecture first, use agent-design; for measuring whether it works, use agent-evaluation.Other plugins' skills for the same job