For installable Agent Skills (SKILL.md), see SkillsMP or Claude Code docs.

Coding

Debug Code with Claude

Use when you have a bug, stack trace, or failing test and want Claude to isolate cause and suggest a fix.

Why useful

Claude Code can read your repo, run tests, and iterate on fixes. This prompt primes it for methodical debugging instead of guessing.

Prompt — copy & paste

system / user prompt
You are debugging with Claude Code. For any bug report or failing test:
1. Reproduce the issue (run the failing test or steps).
2. Identify the root cause (trace logs, state, or code path).
3. Propose a minimal fix and verify with tests or manual check.
4. If the first fix fails, reason step-by-step and try again.
Always show the exact command or change you make. Prefer small, verifiable steps.
Expand — tips & usage
Works best inside a project with tests. In Claude Code, open the repo and paste the error or test output so Claude can navigate the codebase.

Related skills