/learn-skills:learn-by-doingfrom learn-skills
Generates source-grounded coding exercises from a file, function, or topic, then verifies user answers against real code or docs. Useful for hands-on practice and applying theory.
Ships in learn-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.
Read when SKILL.md points to them.
Speak to the user in their language; these instructions are in English for the agent.
A generative skill: produces a markdown file under learn/ containing 3–7 graded exercises plus a hidden solutions section. The user attempts the exercises; the agent verifies each answer against the real code/docs when the user submits them. The artefact (the exercises file) persists in the project and can be reopened later — see ADR 0002 for why we don't schedule those reopenings.
User: /learn-by-doing src/orders/payment.ts
Agent: Project read first. Stack: TypeScript + Express 4.21, ESM modules.
I'll generate 5 exercises of ascending difficulty, save them to
learn/payment-exercises.md, and hide solutions behind a fold.
Bring me each answer when you're ready — I'll verify against payment.ts.
After generation, the user works through the file, brings answers back into the conversation, and the agent verifies.
Inspect the argument:
Generation:
- [ ] Project read complete (stack + versions identified)
- [ ] Artefact read (code-mode) or docs fetched (topic-mode)
- [ ] 3–7 exercises drafted with ascending difficulty (E1 → E7 ladder)
- [ ] E4 (Debug) included when code-mode
- [ ] Every solution traces to file:line or cited doc
- [ ] Solutions folded under <details> tag (none above the fold)
- [ ] File written to the active output folder (see Workspace mode)
- [ ] Filename + path confirmed with user before write if collision
Per-answer verification (each time the user brings an answer):
- [ ] User's answer read carefully (not skimmed)
- [ ] Verified against artefact with file:line or doc citation
- [ ] Marked pass / partial / fail with evidence
- [ ] On fail: one targeted question + line reference + retry (no spoiler)
- [ ] On pass: user decides whether to proceed to next exercise
Read EXERCISES.md for the full generation reference (exercise ladder E1–E7 + file format). Summary of the steps:
<details>.file:line or a doc link.If CURRICULUM.md exists in the current directory, the skill is running inside a Scenario B workspace. In workspace mode:
exercises/<slug>-exercises.md (not learn/).MISSION.md before generating: use the stated goal to shape exercise difficulty and context. A user learning chess for casual play needs different exercises than one studying openings competitively.CURRICULUM.md to identify which lesson the exercises should reinforce, then target that lesson's concepts.If CURRICULUM.md is absent (legacy mode), use learn/ paths as before.
<slug>-exercises.md, slug derived from topic or source file.learn/<slug>-exercises.md. In workspace mode: exercises/<slug>-exercises.md.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/ask-me-questionsGuides reasoning through one question at a time, with citation and safety exceptions. Use when the user asks to reason without being told the answer, work through a confusion or design choice, or says "ask me questions"./assessAssesses demonstrated understanding with Bloom or SOLO levels, concrete gaps, and a next learning step. Use when the user requests a formative assessment, asks "where am I at?", or wants their current level checked after studying./connect-to-what-you-knowChecks the user's analogies between new concepts and familiar ideas. Use when learning an unfamiliar pattern, connecting languages or frameworks, anchoring a concept that is not sticking, or asking "what does this remind me of?"./explain-and-checkChecks the user's explanation of code or a topic against real sources. Use when verifying comprehension after LLM-written code, a merged change, or recent study, or when the user wants to explain something in their own words and find gaps./flashcardsCreates cited Markdown flashcards for later retrieval practice. Use when the user wants reusable cards, facts to drill, or flashcards from code or a learning session; practising existing cards belongs to quiz-me./linked-notesCaptures the user's ideas as atomic, cited, linked Markdown notes. Use when saving learning insights, turning a session into durable notes, or when the user says "save this as notes" or "make me notes".npx claudepluginhub ic3b3rg/learn-skills --plugin learn-skillsOther plugins' skills for the same job