Debugging
π₯ Teach yourself coding in real-time using your own projects with this free, open-source Claude Code plugin for active learning.
npx -y skills add wewpellex21/code-sensei --skill debuggingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 4 stars4 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Reading errors, troubleshooting, and fixing bugs. Activated when Claude encounters errors or when the user is debugging. Teaches the most valuable skill: understanding what went wrong.
SKILL.md
3.1 KB, 684 tokens by cl100k_base, as published. Nobody here has run it
Debugging β CodeSensei Teaching Module
What is Debugging?
- Analogy: Debugging is detective work. Something isn't working, and you need to find out why. Every error message is a clue.
- Key insight: Errors are NOT failures. They're the computer telling you exactly what went wrong and where. Learning to read errors is the single most valuable programming skill.
How to Read Error Messages
Teach users to look for these three things in EVERY error:
- What happened β the error type (TypeError, SyntaxError, 404, etc.)
- Where it happened β the file name and line number
- Why it happened β the description message
Example:
TypeError: Cannot read property 'name' of undefined
at UserCard (src/components/UserCard.jsx:12)
Translation: "On line 12 of UserCard.jsx, you tried to get .name from something that doesn't exist yet."
Common Error Types (teach as encountered)
Frontend Errors
- "Cannot read property X of undefined" β you're trying to use data that hasn't loaded yet. Like trying to read a book that hasn't been delivered.
- "X is not defined" β you're using a variable/function that doesn't exist. Likely a typo or missing import.
- "X is not a function" β you're trying to call something as a function, but it's not one.
- White screen of death β usually a component crashed during rendering. Check the browser console.
Backend Errors
- 404 Not Found β the URL/route doesn't exist. Like going to a room number that doesn't exist in the building.
- 500 Internal Server Error β something broke on the server. Check the server logs.
- 401 Unauthorized β you're not logged in (or your token expired).
- 403 Forbidden β you're logged in but don't have permission.
- CORS error β your frontend is trying to talk to a backend that doesn't trust it. Like calling a secure building and not being on the approved list.
Database Errors
- "relation X does not exist" β the table hasn't been created yet. Run your migrations.
- "unique constraint violation" β you're trying to add a duplicate entry (like two users with the same email).
- "null value in column X violates not-null constraint" β you forgot to include a required field.
The Debugging Mindset
- Don't panic β errors are normal. Every developer sees them constantly.
- Read the error β the answer is usually right there in the message.
- Google the error β copy the exact error message. Someone has had this problem before.
- Check what changed β what did you (or Claude) do right before it broke?
- Isolate the problem β narrow down which part is broken.
Teaching Opportunity
Every error is a learning moment. When Claude fixes an error, explain:
- What the error meant
- Why it happened
- How it was fixed
- How to prevent it next time
This is where real engineering intuition is built.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 1 of the 12 instructions most debug triage skills give in 684 tokens
Counted across 839 of the 1,149 authors here whose files we hold, read 2026-08-07
- Investigate root cause before proposing any fixin 102 of 839, across 67 files
- Read error messages completelyhere, and in 89 of 839, across 49 files
- Create a failing test case before fixingin 84 of 839, across 46 files
- Reproduce the issue consistentlyin 82 of 839, across 41 files
- Change one variable at a timein 82 of 839, across 42 files
- Check recent changesin 74 of 839, across 36 files
- Write the regression test before fixingin 74 of 839, across 40 files
- Fix the root cause not the symptomin 60 of 839, across 45 files
- Implement a single fix at a timein 59 of 839, across 20 files
- Trace data flow backward to the sourcein 50 of 839, across 20 files
- Remove all debug instrumentationin 49 of 839, across 13 files
- Form a single hypothesisin 48 of 839, across 18 files
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.