Skip to content
Back to skills

Debug Retro

ASecurity

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

  • 4 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 2, 2026
ai-agentsgodebugginggit

Works with

  • mcp

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 2, 2026

npx -y skills add rajnandan1/sharper-skills --skill debug-retro --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Debug Retro?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Debug Retro
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/rajnandan1-debug-retro/badge)](https://www.skillsdirectory.com/skills/rajnandan1-debug-retro)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: debug-retro
description: 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
disable-model-invocation: true
---

# /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:

```sh
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 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.
- **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 `## 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.
- **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:

1. `Interventions this session: N (plus D decisions).`
2. A table: number, kind, what the human said (quoted), proposed home, exact text to add.
3. 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.

Files in this skill

  • SKILL.md4.4 KB
  • agents/openai.yaml43 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.