debug
What it does
This skill guides the AI through diagnosing failures, crashes, and wrong outputs step by step. It is for anyone who needs a bug understood, not just patched.
When to use it
- ✓When a program crashes, fails, or gives a wrong result and the cause is unclear.
- ✓When a test is flaky or a feature has stopped working after a change.
- ✓When you want a clear diagnosis before deciding on a fix.
Skill link
https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/debug/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“My export script started giving wrong totals after the last update. Find out why and show me the evidence.”
5 new skills a week. 1 minute to read.
How it works
The AI reproduces the failure, shrinks it to a minimal case, pins it to a file and line, and separates the root cause from the symptoms.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Debug
When to use
Use for failures, flakes, wrong outputs, crashes, and regressions.
Non-goals
- Do not jump to a fix before reproduction/localization when the bug is unclear.
- Do not treat “run all tests” as debugging by default.
Workflow
- Reproduce or gather the strongest available failure signal.
- Minimize the case.
- Localize to component/file/line.
- State root cause vs symptoms.
- Fix only when authorized; otherwise hand back a diagnosis with evidence.
Output shape
- Symptom
- Reproduction
- Localization
- Root cause
- Fix status / next step
FAQ
Does it fix the bug right away?
Not unless you authorize a fix. The skill can hand back a diagnosis with evidence instead.
Why not just run all the tests?
The skill says running all tests is not debugging by default, so it focuses on a targeted failure signal.
What does the report include?
It lists the symptom, reproduction steps, where the problem is, the root cause, and the fix status.
Details
Original description by the author
Reproduce, minimize, localize, identify root cause, and distinguish diagnosis from an authorized fix. Prefer root-cause over symptom patches.
repo: codewhale-hq/Codewhale
Popularity
- GitHub stars
- 41k
- Ranking position
- #6522
- License
- MIT
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
best-of-n
41kHelps your agent produce several independent answers to a hard problem, judge them against one rubric, and apply only the one that passes checks.
dataviz
41kHelps your agent choose a suitable chart or dashboard for your data, with clear labels, source notes, and checks on axes and missing values.
delegate
41kTeaches your agent to split a large task into focused parallel helpers, while keeping planning, integration, and the final check in its own hands.
dependency-update
41kHelps your agent update a named set of software dependencies, read their release notes, fix breaking changes, and run the project's checks.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.