/sharper-skills:defend [PR, branch, commit range or topic]from sharper-skills
Runs 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>.
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.
The user wants to understand this work well enough to defend it: to explain each decision, and each line of any code, to the person who will live with it. The main targets are the decisions the user agreed to with a quick "yes": a well-written proposal is easy to accept without a view of one's own. The output is an HTML report with questions at the bottom. The user answers in their own words, and you grade each answer against a rubric you wrote first.
The work is the text the user typed after the skill's name. Claude Code adds that text at the end of this skill as an ARGUMENTS: line. If the user typed nothing after the name, the work is everything this conversation produced: the decisions, conclusions and plans it reached, the documents it wrote, and the code it changed. A PR, branch, commit range or topic narrows it. If this conversation produced nothing, the work is the current branch against its base, plus uncommitted work.
The request is what the work set out to do: the user's asks in this conversation, or else the PR body, the commit messages and any linked ticket. Read the conversation from its start, and every source it relied on. When the work includes code, read the full diff, the commit messages, and the PR body and its review threads. Then read the existing code that the change calls into and the code that calls it. Much of the change's behaviour lives there, outside the diff.
List these items. Give each one a citation: a file and line in the changed version, a quoted message from this conversation, or a link to a run or a source.
Done when every item has a citation, every decision names who made it, and every hunk of a diff maps to a decision or to the request.
Write one self-contained HTML file with inline CSS. Write it for a reader who did not see the work. Use these sections, in this order:
Done when each section cites the work.
Write at most 8 questions. Pick first the decisions the user agreed to in a short reply and the decisions the agent made alone. Then pick the assumptions and evidence gaps that would cost the most if the reader misread them. When the work has code, add one changed line picked at random, preferring a line of new logic. Each question makes the reader reason with the work: defend a decision against its alternative, say what would have to be true for it to be wrong, predict the outcome on an input, name what a piece of evidence leaves open, or say what breaks without a line.
Then write the rubric: for each question, the points that a right answer must contain, each with a citation. Save it next to the report, with the same name ending in -rubric.md. It stays out of the page and out of the chat, so the bar is fixed before any answer arrives.
Done when every question has a rubric entry with a citation.
Save the report in the system temp folder as defend-<repo or topic>-<yyyymmdd-hhmm>.html, open it in the browser, and print the full path. Then ask question 1 in the chat.
Ask one question at a time, and grade each answer against the rubric:
The pass mark is every question right. Done when the user passes or stops. End with the score and the decisions not yet passed. Acting on the work, such as a merge, is the user's call.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
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./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./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./leonardoRuns only when the user asks for /leonardo by name. Do open-ended work, such as a name, a concept, copy or a design, by making many candidates apart, picking them blind against the plain answer, and redrafting the best. /leonardo <task>, or /leonardo alone for your last request./signal-first-planSignal-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.