/sharp:check-yourself [topic or 'today']from Sharp
Offer or run 1-3 short retrieval questions about work just completed (why it works, what-if, where to look if it broke), grade the user's answers kindly, and save the reusable rule as a lesson that comes back when a similar situation appears. Use when sharp's stop hook asks for a check-yourself question, or when the user runs /sharp:check-yourself, asks to be quizzed, or asks "test me on this".
Ships in Sharp. 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.
What's on the current branch:
node "${CLAUDE_SKILL_DIR}/../../scripts/pr-context.mjs" --brief 2>/dev/null || echo "(no git context)"
When the user runs this command and nothing was changed in this session, the subject is the current PR or branch. The question is about what this branch changes, not about a saved lesson or sample data in its tests.
First, get the full context of the change. Never work from a guess. Unless this session already made the change, run:
node "${CLAUDE_SKILL_DIR}/../../scripts/pr-context.mjs" # add a base branch or commit as the argument if the user named one
It prints the PR description (when gh is available), every commit message, the files changed and the diff for the whole branch, not just the last commit. Use the description and commit messages to say why the change was made (an incident, a ticket, who was affected) and what is deliberately out of scope.
Target: understanding, never trivia or syntax. The questions train the skills needed to supervise AI, and debugging matters most.
Choose from the work just done (or $ARGUMENTS), mixing types across sessions. Set the scene in one or two plain sentences first (what the change was and why it was needed), and define any technical term the question uses.
For a PR or branch, the scene is three short sentences, in this order:
The type names above are for you. Never print them as labels ("Transfer question:", "Debug:"); just ask the question.
When offering at the end of a task, give one line that's easy to ignore: Check yourself (optional): <question>. When the user ran the command, ask the question once, with no extra "Check yourself" footer, and end on it: don't announce that you'll grade it or save anything.
A lesson is a reusable rule for a situation in a context: when <signals you'd notice>, in , do , because , unless . Context changes meaning: the same symptom in a different environment can need a different answer. It's what lets someone handle the next similar case on their own. Lessons capture principles, causal "why"s, diagnosis heuristics, trade-offs and invariants. Never make lessons out of syntax, flags, API names or anything a search answers in seconds; at most, mention where to look.
--when by the signals they'd notice next time:node ~/.sharp/bin/sharp.mjs lesson add --topic "<area>" --when "<the situation, described by signals you would notice next time>" --context "<where this holds: environment, stakes, constraints>" --unless "<when it does NOT apply>" --principle "<what to do or think>" --why "<the underlying reason>" --source "<the task/file/PR it came from>"
(Fallback path: ${CLAUDE_SKILL_DIR}/../../scripts/sharp.mjs.) Lessons from their own work are the ones that come back to mind.
4. Close the loop: end with their one-line "Next time" rule and stop. Don't chain another question. If they say they don't know or ask you to explain, explain directly, then close the same way.
5. If they say skip or no, stop offering for the rest of the session.
Never make the user feel tested or behind. The point is "you just learned something you can use again, so let's make sure you can."
What SKILL.md sets; muted values are Claude Code's defaults
15 skills in this plugin
/change-briefWrite a Change Brief, a compact 6 Ws summary (What, Why, Who, Where, When, How) with the change's Impact and one insight worth remembering, after completing a substantial change or when the user asks what changed, for a PR description, or for the impact of a change. Use it for code, config, infra, data, documents, policies, or any edited work product. "Substantial" means 2+ files, ~25+ lines, or any config, infra, data, security, or user-facing change./checkupMonthly AI-off checkup that measures real learning (retention, transfer, explanation) with confidence ratings, so growth is measured rather than felt. About 10 minutes./decisionsDecision journal and retrospectives. Lists one-way door decisions the user made, and replays ones that are due for review (what we expected vs what happened) to build calibrated judgment.Other plugins' skills for the same job
npx claudepluginhub pipeshub-ai/sharp --plugin sharp