From skills-for-learning
Write a revealing architectural walkthrough as educational material — for a PR, design decision, code structure, or feature. Use when the user wants to create learning material for junior engineers, explain *why* decisions were made, or document the reasoning behind an architecture. Trigger on "walkthrough", "write a walkthrough", "educational material", "explain the decision", "why was this designed this way", or when asked to produce a document that teaches through re-experiencing a decision rather than summarising it.
How this skill is triggered — by the user, by Claude, or both
Slash command
/skills-for-learning:walkthroughThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Produce a revealing, educational walkthrough document written for junior engineers. The document must re-create the experience of _making the decision_, not narrate it from a god-view perspective.
Produce a revealing, educational walkthrough document written for junior engineers. The document must re-create the experience of making the decision, not narrate it from a god-view perspective.
Input: A PR number, file path, feature name, design decision, or architectural concept. Read the actual code before writing — never write from PR descriptions alone.
Output: A well-structured markdown document saved to <git-repo-root>/personal/walkthrough-<subject-slug>.md. These are personal study notes — add the pattern walkthrough-*.md to .gitignore if it isn't there already.
The key distinction: a summary tells you what was decided. A walkthrough puts you in the room when the decision is being made.
The document must follow this part structure. Scale the number of parts to the complexity of the subject — a small decision might need 4 parts, a large architectural change might need 8. Aim for ~500 words for a focused decision, ~2000+ words for a major architectural change. Let the subject dictate the length, not a formula.
Opening — You Inherit [the Situation] Drop the reader into the codebase as a new engineer. Show the exact files, components, or interfaces they'd encounter first. Use grep results, code snippets, and definitions directly from the codebase. End on a moment of confusion or an unanswered question.
Closing trio (always the last three parts, in this order):
Name the Problems Before solutions, enumerate the problems precisely. Each problem gets a name and a specific description grounded in actual code. Do not accept vague problem statements.
Consider the Alternatives Walk through 3–4 realistic alternatives in the order an engineer would naturally consider them. For each:
What You Should Take Away 3–5 explicit, generalizable lessons. Each lesson must state a principle and ground it in a specific example from the code. Not generic advice — lessons the reader could only have learned from this walkthrough.
These fill the gap between discovery and verdict. Pick whichever apply to the subject:
A small decision might have zero middle parts (opening → closing trio). A major architectural change might have 3–4.
## Final Verdict
> **[Grade]: [Label]**
### Why
[3–5 bullet points grounding the verdict in specific things from the code, not generalities]
### Suggestions (not blockers) ← include only for grades B or above with gaps
[Numbered list. Each suggestion must: name the specific gap, quote or reference the specific code involved, explain what could go wrong if left unaddressed, and suggest the concrete fix or follow-up action]
Grade scale:
Include a dependency graph, entity-relationship diagram, or before/after comparison when it materially aids understanding. ASCII diagrams only.
# before, # after, # BROKEN, # CORRECT — the label is part of the teaching.processOrder() — a guard you didn't write because you assumed the caller would 'of course' pass a valid object."Fetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Applies a firm's KYC/AML rules grid to parsed onboarding records: assigns risk rating, checks required documents, outputs rule outcomes with citations, and routes for escalation.
Generates daily or weekly digests of activity from connected sources (chat, email, docs, tasks, CRM), highlighting action items, decisions, mentions, and project updates.
npx claudepluginhub iannbing/skills-for-learning --plugin skills-for-learning