Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Debug?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sagarkonkanagaon-netizenk-debug)
---
name: debug
description: Memory-first debugging: check deja for the fix seen before, find the root cause step by step, record it. Use when something fails.
argument-hint: "[error text or symptom]"
---
# Memory-first debugging
1. **Ask memory first.** Run `node "${CLAUDE_PLUGIN_ROOT}/bin/deja.mjs" why` with the key error lines as one quoted argument (a quoted heredoc, never raw interpolation). Also call `recall` with two or three distinctive words from the error and the area of code. A past fix that fits is the fastest path: try it, and say which memory it came from.
2. **Reproduce.** Find the smallest command that shows the failure. Note the exact output. If it does not reproduce, say so and look for state: caches, env, services, data, time.
3. **Read before guessing.** Read the code on the failing path and the last changes to it (`git log -p -3 -- <file>`). Write down one hypothesis at a time and the observation that would prove it wrong.
4. **Test one hypothesis per step.** Change one thing, rerun the smallest reproduction, keep or revert. Do not stack speculative changes.
5. **Fix the cause, not the symptom.** Then run the wider check (the test file, then the suite or build) so the fix is proven and deja's playbook learns the passing command.
6. **Record the why.** deja captures the error and the commands that fixed it on its own. Add the root cause with `remember`, kind `fix`, a title naming the error, a body that says why it happened and how to tell next time, and the files involved. If the trap will catch people before the error even shows, also save a `gotcha`.