Create structured, self-contained lessons to ramp up on any domain — a codebase, technology, team process, or concept. Use when the user wants to "learn", "ramp up", "get up to speed", "create lesson", or "understand" something unfamiliar.
Build a structured curriculum of self-contained lesson files that rapidly build understanding of an unfamiliar domain.
00-learning-guide.md) is the syllabus — it defines what to learn and in what order.| Command | Behavior |
|---|---|
/learn <domain> |
New curriculum — create .lessons/, draft learning guide, write first lesson |
/learn <topic> | Add a lesson to an existing .lessons/ directory |
/learn --update <file> | Process the ## Updates section in an existing lesson |
/learn --status | Show curriculum progress from the learning guide |
If .lessons/ exists, /learn <topic> adds a lesson. If it doesn't, /learn <domain> bootstraps a new curriculum.
Assess the domain type to pick a research strategy:
Create .lessons/ directory in the current project root.
Draft 00-learning-guide.md — the curriculum index. Include:
# Learning Guide: <Domain>Write the first lesson (01-*.md) following the Lesson File Format.
Present the plan — show the user the proposed curriculum and ask if they want to adjust the lesson order or topics before continuing.
.lessons/.00-learning-guide.md — mark lesson status as complete, fill in summary.## Updates section — this is a scratch area where users (or reviewers) drop notes about what needs to change.## Updates section entirely once all items are processed.Filename: NN-kebab-case-title.md (e.g., 01-project-architecture.md)
# Lesson Title
One sentence stating what the reader will understand after this lesson.
---
## Section Heading
Body content. Use H2 and H3 for structure. Include code snippets, diagrams,
or examples where they aid understanding.
Attribute non-obvious claims inline (e.g., "per the Express.js docs, ...").
Date-stamp information that may become stale (e.g., "as of March 2026").
## Key Takeaways
- Bullet point summaries of the most important concepts
- 3–5 takeaways per lesson
## Additional Information
- Related lessons: `03-data-model.md`, `05-api-layer.md`
- Links to primary sources for further reading
---) separates purpose from body## Key Takeaways is always the second-to-last section## Additional Information is always the last section## Updates is a temporary scratch section users can add anywhere — it gets consumed and removed by /learn --updateFilename: 00-learning-guide.md
# Learning Guide: <Domain>
Brief description of what this curriculum covers and who it's for.
| # | Lesson | Status | Summary |
|---|--------|--------|---------|
| 01 | Project Architecture | Complete | How the repo is structured and why |
| 02 | Data Model | In Progress | Core entities and their relationships |
| 03 | Authentication Flow | Planned | How users authenticate and sessions work |
Status values: Planned, In Progress, Complete