| name | teach |
| description | Build a durable, mission-grounded teaching workspace with researched resources, reusable HTML lessons, retrieval practice, and learning records. Use when the user wants to learn a topic or skill over multiple sessions, create a personal course, or continue structured teaching from an existing workspace. |
| metadata | {"short-description":"Build durable mission-grounded learning"} |
| allowed-tools | read,write,edit,bash |
Teach
Language Definitions
- Teaching workspace — dedicated durable directory holding one learner’s mission, resources, lessons, references, assets, and evidence.
- Mission — agreed real-world outcome, observable success, constraints, and scope.
- Zone of proximal development — next challenge requiring effort without unknown prerequisites.
- Knowledge — trustworthy concepts required for the mission.
- Skill — durable flexible performance from practice and feedback.
- Wisdom — judgment tested with practitioners, communities, and real situations.
- Storage strength — durability of learning over time rather than immediate fluency.
- Retrieval practice — unaided recall or application before rereading.
- Learning record — evidence-backed insight changing future teaching, not a session log.
- Demonstrated understanding — correct unaided retrieval or application.
Workflow
Treat teaching as a stateful, multi-session practice. Route first between continuing an existing teaching workspace and creating a new one; do not treat a code checkout or generic workspace as teaching state without explicit approval.
1. Confirm the dedicated teaching workspace
Ask for a dedicated workspace path. Use one mission per workspace; unrelated topics require separate teaching workspaces. If the proposed path is an existing code checkout, explain that teaching state is durable and ask the user to choose a separate location or explicitly approve that checkout. Inspect an existing teaching workspace read-only before proposing changes.
For a new workspace, present the intended initial scaffold and obtain approval for both the path and exact first-lesson files/directories before writing:
<teaching-workspace>/
├── MISSION.md
├── RESOURCES.md
├── NOTES.md
├── GLOSSARY.md # created when understood terms emerge
├── lessons/
│ └── 0001-<lesson>.html
├── reference/
│ └── <quick-reference>.html
├── learning-records/
│ └── 0001-<insight>.md
└── assets/
└── course.css
Create only the approved first-lesson state; create all other artifacts lazily. Completion criterion: the user has approved one dedicated path and its exact initial scaffold before any workspace write occurs.
2. Ground the mission and learner evidence
Read existing mission, records, notes, glossary, and relevant lessons before selecting the next lesson. Interview for the real-world outcome, observable success, constraints, and out-of-scope topics. Write or revise MISSION.md only after agreement. A mission change requires user confirmation and a learning record explaining how the mission shift affects future teaching.
Use this compact mission format:
# Mission: {Topic}
## Why
{1-3 sentences about the concrete real-world outcome.}
## Success looks like
- {specific observable thing}
- {another specific thing}
## Constraints
- {time, budget, prior commitments, learning preferences}
## Out of scope
- {adjacent topics the user does not want right now}
Estimate the learner’s zone of proximal development from existing learning records and demonstrated performance, prior knowledge the learner reports, mission requirements and constraints, and misconceptions or retrieval failures from earlier lessons. Record demonstrated non-trivial understanding or stated prior-knowledge depth, not mere exposure. Completion criterion: the next lesson traces to the agreed mission, uses the available learner evidence, requires effort, and depends on no unknown prerequisite.
3. Build trustworthy resources
Compose research to gather and reconcile primary sources, official documentation, upstream source, recognized experts, and high-quality communities. Teach retains the teaching-workspace location, approved source set, RESOURCES.md, lesson claims, citations, and acceptance. Never use parametric recall as evidence for a material claim. Keep resources curated and annotated with what each source supports; prune sources proven wrong, shallow, or off-mission instead of burying them; and expose gaps instead of filling them with weak links.
Use this compact resource format:
# {Topic} Resources
## Knowledge
- source name
One line on concepts it supports and when to use it.
## Skill (Practice)
- practice source or activity
One line on the performance it develops, feedback path, and when to use it.
## Wisdom (Communities)
- community name
One line on judgment, practitioner feedback, or real-world context it supports.
## Gaps
- Missing area and why it matters.
Respect a learner’s choice not to join communities and record it in RESOURCES.md or NOTES.md. Completion criterion: every substantive factual lesson claim has an adjacent citation to an approved source or is clearly labelled as an exercise or hypothesis.
4. Design one small lesson
Before drafting, inspect assets/ and reference/ for reusable styles, widgets, simulators, diagrams, and established visual language. Then build one self-contained, attractive lessons/NNNN-<slug>.html lesson page with one tangible win tied to the mission. Teach only prerequisite knowledge needed for the target skill.
Use these checks while designing the lesson:
- prerequisite safety: model any unknown prerequisite before unsupported problem solving;
- retrieval before reveal: ask the learner to recall or apply before showing the answer;
- relevant practice: require a real attempt, not only reading;
- corrective feedback: state whether the attempt succeeded, what was wrong, and what to retry;
- observable success: make the win visible and checkable;
- trustworthy citations: substantively factual claims need adjacent approved citations; and
- no answer clues: formatting, length, wording, and option structure must not give away the answer.
Make feedback prompt and preferably automatic when correctness can be judged reliably, while choosing timing for the task. Schedule important retrieval in later lessons, and interleave only related skills whose foundations are already known. End with one primary-source recommendation and an invitation for follow-up questions.
When an interactive codebase-accurate lesson fits, compose create-explainer without weakening its source mapping, mandatory factual review, serving, or browser-validation process. Teach retains the mission, numbered lesson destination, workspace state, approved citations, lesson size, reusable assets, learner evidence, and acceptance; integrate the reviewed result as a teaching lesson rather than an unrelated explainer.
Completion criterion: the lesson has one mission-linked outcome, one retrieval/practice/feedback loop, trustworthy citations, reusable assets where applicable, no answer clues, and an observable success signal.
5. Reuse assets and compress understood knowledge
Place behavior another lesson could reuse in assets/ rather than duplicating it inline. Create attractive, printable HTML references for durable compressed knowledge such as cheat sheets, algorithms, syntax, sequences, and diagrams. Link lessons and references with relative HTML anchors.
Add or revise a GLOSSARY.md term only after the learner demonstrates understanding by using it correctly. Pick canonical terms, list avoided aliases or ambiguities, and revise stale definitions in place as understanding deepens. Use this compact glossary format:
# {Topic} Glossary
## Terms
**Term**:
One or two sentence definition.
_Avoid_: common aliases
Completion criterion: existing assets are reused where applicable, every new reusable behavior has one shared home, and glossary entries cross the understood-term threshold.
6. Observe, record, render, and choose the next step
After practice, ask the learner to retrieve or apply the idea unaided, without copying the lesson. Write the next sequential learning record only when evidence establishes demonstrated understanding, prior-knowledge depth, a corrected misconception, or an approved mission shift. Supersede contradicted records rather than deleting history. Put teaching preferences and temporary observations in NOTES.md; learning records are not session logs.
Use this compact learning record format when evidence qualifies:
# {Short title of what was learned or established}
{1-3 sentences: what was learned or what prior knowledge was established, and why it matters for future sessions.}
If understanding is not demonstrated, do not record it as learned—use the observed gap to choose support or the next lesson. Render-check the lesson locally. If rendering cannot be checked, report that limitation and do not claim it passed. Report the lesson’s absolute path and give the learner one concrete unaided practice action. Completion criterion: the current artifact renders, the absolute path and practice action are reported, evidence is stored at the correct durability, and the next step is selected from the mission plus learning records.