For installable Agent Skills (SKILL.md), see SkillsMP or Claude Code docs.
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
Claude Refactor Assistant Use when you want to improve code structure, naming, or patterns without changing behavior. Claude API Design Use when you need REST or RPC API design: endpoints, request/response shapes, and versioning. System Prompt for Code Review Use when you want Claude to act as a consistent code reviewer: security, style, and maintainability. Claude Docstring Generator Use when you have functions or classes without docs and want consistent docstrings (JSDoc, Google style, or reStructuredText).