debug-retro
Skill3 starsChanged 8 days agoMITView on GitHub
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
In this repository7 other files it gives its agents.
- debugging-by-constraintsSkill
- deeperSkill
- defendSkill
- higherSkill
- leonardoSkill
- signal-first-planSkill
- widerSkill
The file
We split this skill into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Read this conversation from the start of the debug session.
- Very specific: line 30
Every line you add to a file goes to the store file, $store/debug-layers.md, outside the repo.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/debug-retro
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.
1. List the interventions
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.
2. Give each one a home
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:
- control, fact, proxy: a line under
## Sources and signalsin 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. - constraint: the fact that should be gathered by default, written as above. If the missing piece was a design rule in the code ("this state machine is single-use"), name a test that would enforce it as a follow-up in the repo.
- method: check the debugging-by-constraints SKILL.md first. If the skill lacks the rule, propose the rule. If the skill has it and the agent skipped it, the wording is too weak: propose sharper wording for that line. The home is an issue or pull request at https://github.com/rajnandan1/sharper-skills with the exact line, because the installed skill files belong to the plugin and an update overwrites them.
- decision: a line under
## Decisionsin 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. - a signal that took a layer descent to find: a follow-up for the codebase that names the log line or metric to emit by default, so the next session finds it at layer 1.
3. Show, then write
Print:
Interventions this session: N (plus D decisions).- A table: number, kind, what the human said (quoted), proposed home, exact text to add.
- The follow-ups that need the user or the repo.
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.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

