/sharper-skills:signal-first-planfrom sharper-skills
Signal-first planning before you build a feature. Lists every exit the feature's data leaves through, puts a countable signal on each, and checks the signals against main. Use when the user asks to build, add or change behaviour that ships to users or other systems. Skip it for questions, explanations, bug hunts, refactors with no behaviour change, and copy or style edits.
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: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Before you build, decide how you will see that the feature works and how you will see that it broke. A feature breaks at its exits: the places where its data or behaviour leaves the process. Name every exit, put one signal on each, and make every signal checkable before you write the feature.
A small change can have one exit. Then the plan is one row.
An exit is any place where the feature's data or behaviour leaves the process:
Trace exits from the data, not from the files you plan to change. Start at each table, column, flag or config value the feature reads or changes. Follow every query, controller, route and job that reads it, out to the place where it leaves the process. A reader you did not plan to touch is still an exit.
Done when every reader of the touched data is in the list as an exit, or is marked internal with a reason.
A signal is a number that a broken version changes: DNS lookups per request, rows written per job, payment API calls per checkout, emails sent per signup.
Write the expected value for every case the feature splits on: each type of viewer, each input class, each config value.
On a response exit, count over the whole body the client receives (the serialized page data or JSON), not over the one field you expect to carry the data. A leak sits in the field nobody planned for.
A number that the working and the broken version share is noise. Pick another.
Aggregates such as p99 and error rate are weak, because many causes move them. Prefer a count tied to one exit.
/debug-retro keeps the signals that past bugs in this project needed in a store file outside the repo. When the file exists, read it with this block, run as written. Each signal in it that touches an exit of this feature becomes a check in Step 3.
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#/}"
cat "$store/debug-layers.md" 2>/dev/null || echo "No store file yet."
Done when every exit has a signal and an expected value for every case.
Done when every signal has a test or an emitted metric, and you know which checks pass on main.
Show the user the plan as a table, then build: exit, signal, expected value per case, check (test name or metric), result on main.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
8 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./debug-retroRuns 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/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>./higherRuns only when the user asks for /higher by name. Rewrite a task to ask for the goal beyond the goal. /higher <task>, or /higher alone for your last request./leonardoDo open-ended creative work, such as a product name, a concept, marketing copy or a design, by making many candidates apart, picking them blind against the plain answer, and redrafting the best. Use when the user types /leonardo, or asks for such work that has no single right answer and that they will ship or publish. A run starts at least 13 subagents, so skip small names inside code, edits and questions. /leonardo <task>, or /leonardo alone for your last request.npx claudepluginhub rajnandan1/sharper-skills --plugin sharper-skills