/sharper-skills:debug-retrofrom sharper-skills
Runs only when the user asks for /debug-retro by name. After a debug session, count each time you had to step in and turn each one into a lasting rule. /debug-retro
Ships in sharper-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Each time the human stepped in during a debug session, they supplied something the agent could have found alone. Count those steps and give each one a lasting home, so the next session needs fewer. The goal is zero steps per bug.
Read this conversation from the start of the debug session. An intervention is a human message that did one of these:
| Kind | The human… |
|---|---|
| control | gave a comparison case, or asked the agent to set one up |
| fact | supplied data, or pointed at data the agent had not gathered |
| constraint | pushed back with a fact that killed a hypothesis |
| proxy | ran a command, pasted output or a screenshot, or quoted a dashboard number the agent could have read itself |
| method | told the agent how to work: run the repro, cite, split the hypothesis, go a layer down |
| decision | picked a fix, or made a rollback, escalation or scope call |
The original bug report is not an intervention. Decisions are expected, so count them apart from the rest.
Done when every human message in the session is listed with a kind, or skipped as the original report.
Every line you add to a file goes to the store file, $store/debug-layers.md, outside the repo. debugging-by-constraints and signal-first-plan read it. Run this block as written; it prints the store folder for this project:
key=$(git remote get-url origin 2>/dev/null | sed -E 's#^[a-z+]+://##; s#^[^@/]*@##; s#:[0-9]+/#/#; s#:#/#; s#\.git$##; s#/$##; s#\.\.#_#g' | tr 'A-Z' 'a-z')
[ -n "$key" ] || key=$(git rev-parse --path-format=absolute --git-common-dir 2>/dev/null | sed 's#/\.git$##')
[ -n "$key" ] || key=$(pwd -P)
store="$HOME/.sharper-skills/${key#/}"
echo "$store"
For each intervention, propose the smallest lasting change that would have let the agent do it alone:
## Sources and signals in the store file. Give the source, the exact query or command, and the signal it showed. If no tool could reach the data, name the missing access (an MCP server, a read-only credential) as a follow-up for the user.## Decisions in the store file, only when the call will come up again ("roll back a slow but correct feature when p99 doubles for 15 minutes"). A one-off call stays one-off.Print:
Interventions this session: N (plus D decisions).Ask the user to approve the rows by number. Write only the approved rows. A row whose home is the store file goes to debug-layers.md in the printed folder, never to a file in this project's repo. If the store file is missing, create the printed folder with mkdir -p and create the file with the heading # Debug layers: learned in this codebase and the sections ## Sources and signals and ## Decisions. Add either section when it is missing. Before you add a line, check that the store file does not already say the same thing; update the existing line instead of adding a second one. If a permission prompt or a sandbox blocks the write, ask the user for permission; if they refuse, print the approved rows for them to keep.
Done when every intervention is written, rejected by the user, or listed as a follow-up.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub rajnandan1/sharper-skills --plugin sharper-skills8 skills in this plugin
/debugging-by-constraintsEvidence-first debugging for production bugs and PR review findings. Use when a bug or performance regression shows up in production telemetry, a user bug report, or a reviewer's or review bot's PR comment, starts after a deploy or version change, has no fast local repro, or sits in code the agent did not write. Use it before you offer fix options./deeperRuns only when the user asks for /deeper by name. Rewrite a task to ask for the deeper version, not the bigger one. /deeper <task>, or /deeper alone to deepen your last request./defendRuns only when the user asks for /defend by name. Turn a session's decisions, or a code change, into an HTML report with questions at the bottom. You answer in your own words, and the agent grades. /defend, or /defend <PR, branch, commit range or topic>.Other plugins' skills for the same job