/sharp:learn [nothing = this PR/branch] | [<topic> [map|contrast|drill|fade|autopsy|ladder|tour]]from Sharp
Learn from a PR, a branch or a recent change (the default when no topic is given), or learn a topic fast. For a change, it first gathers the full context (commits, PR description, diff), then explains it in plain words so the user can handle similar changes on their own. For a topic, it uses proven fast-learning formats (map, contrast, drill, fade, autopsy, ladder, tour).
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, though model invocation is off: only you can start it.
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)"
Request: $ARGUMENTS
Choose the mode:
Step 1: get the full context first. Never explain a change you haven't read.
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 title and description (if gh is available), every commit message, the files changed and the diff. Read whichever changed files you need to understand the surrounding code. If the description or commits mention an incident, ticket, customer impact or something deliberately out of scope, that context belongs in your answer.
Step 2: write for a smart newcomer. Plain words. Define every technical term the first time you use it, in a few words. Short paragraphs. Quote the real lines that matter. Use these sections, in this order, and finish all of them:
## What this PR does
2–3 sentences: the problem, who or what it affected (numbers from the PR or commits if given), and what the fix does.
## Before → after
One concrete example of the behaviour before and after (real inputs and outputs, or a real scenario).
## Ideas you need
2–4 concepts the change depends on. For each: **term**: what it means in plain words, and where it shows up in this diff.
## How the change works
The 2–5 pieces that matter, file by file: quote the key line(s), what each does, and what would break without it. Skip renames, formatting and boilerplate.
## Why this approach
The main decision and its trade-off, plus an alternative that was (or could have been) considered.
## Risks and what's not covered
What could still go wrong, and anything the PR leaves out on purpose (e.g. "refunds are handled separately").
## How it was checked
Tests or checks in the PR and what they prove, plus anything not verified.
Then end with two short parts. (Save the lesson with the command below before you start writing, right after reading the context, so your final message is the complete explanation. Don't add a separate "Next time" line or a Change Brief: the Lesson below is the takeaway. No meta comments about saving.)
node ~/.sharp/bin/sharp.mjs lesson add --topic "<area>" --when "<the signals of this situation>" --context "<where it holds>" --unless "<boundary>" --principle "<what to do>" --why "<because>" --source "PR: <title>"Length: as long as the PR needs and no longer. A small PR can be about 250 words; a large one, more.
Topic and format: $ARGUMENTS. If no format is given, use map. Keep each format to 10 minutes or less, make the user do something, and ground it in their codebase or recent work where possible (use Read, Grep and Glob). Define every term in plain words.
Finish every topic with a Lesson (2–3 plain sentences: what to do next time, why, and when it doesn't apply), and save 2–4 of them with lesson add as above, prioritizing what the user got wrong.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub pipeshub-ai/sharp --plugin sharp15 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./check-yourselfOffer 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".