Skip to content
Skillpedia
Testing41k · #6522

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.md

Copy 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

Use this skill to help me: https://github.com/codewhale-hq/Codewhale/blob/main/crates/skills/assets/skills/debug/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

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

  1. Reproduce or gather the strongest available failure signal.
  2. Minimize the case.
  3. Localize to component/file/line.
  4. State root cause vs symptoms.
  5. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills