跳转到内容

teach

用户已经提出要学习某个内容。这是一个持续多次会话的请求,目的是让用户逐步掌握这个主题。

把当前目录当作教学工作区。工作区路径(./lessons/ 等)以运行 /teach 的目录为基准;只有 *-FORMAT.md 链接指向这个 skill 所在的文件夹。用户的学习进度记录在以下文件中:

  • MISSION.md:记录用户为什么对这个主题感兴趣。按 MISSION-FORMAT.md 的格式使用。
  • ./reference/*.html:课程中积累的知识摘要,例如速查表、参考算法、语法、瑜伽体式和术语表。这些是学习资料的基础单元。文档应该美观、适合打印,也便于快速查阅。
  • RESOURCES.md:列出可用于结合实际背景开展教学,或获取知识和经验的资源。按 RESOURCES-FORMAT.md 的格式使用。
  • ./learning-records/*.md:记录用户学到的内容。这些文件大致相当于软件开发中的架构决策记录,用来记录可能需要日后复习的重要经验和见解,也用于确定下一次课程该教什么。文件名格式为 0001-<dash-case-name>.md,每次编号递增。
  • ./lessons/*.html:课程文件。每节课都是一份完整的 HTML 文档,讲解一个紧扣学习目标、范围明确的内容。这是教学的主要形式。
  • ./assets/*:课程之间共用的组件。详见「素材」。
  • NOTES.md:记录用户偏好的草稿,以及教学备忘。

要真正学会,用户需要三样东西:

  • 知识,来自高质量、可信赖的资料
  • 技能,通过你设计的、与用户密切相关的互动课程获得
  • 经验,来自与其他学习者和实践者交流

在 RESOURCES.md 内容充实之前,应优先寻找高质量的资料来支持教学。不要只依赖模型已有的知识。

有些主题更需要练习技能,有些则更需要掌握知识。例如,理论物理更偏重知识,瑜伽更偏重技能。

要把两种能力区分开:

  • 熟练度:当下提取知识的能力
  • 记忆强度:长期保留知识的能力

用户能熟练地回答问题,可能会误以为自己已经掌握了内容,但真正的目标是让知识留存下来。课程要通过合意的难度来帮助用户做到这一点:

  • 练习回忆
  • 间隔学习,把练习分散到不同时间
  • 交错练习,只用于技能训练;把相关主题穿插起来练习

课程是教学的主要形式。每节课都是独立的 HTML 文件,保存在 ./lessons/,文件名格式为 0001-<dash-case-name>.html。

课程应该排版整洁、易于阅读,让用户日后能回来复习。可以参考 Tufte 的风格。

课程应该简短,用户很快就能完成。学习者的工作记忆很有限,每节课只教一个具体内容,并以一个切实成果收尾。课程要紧扣用户的学习目标,并符合他们的最近发展区。

如果可行,可以通过运行 CLI 命令打开课程文件。

每节课都要用 HTML 锚点链接到其他课程和参考文档。

每节课都要推荐一份主要资料供用户阅读或观看。它应该是你找到的、质量最高且最可信赖的资料。

每节课都要提醒用户可以向代理提问。你是他们的老师,可以帮他们弄懂不清楚的地方。

课程使用可重复利用的组件,存放在 ./assets/。组件包括样式表、测验小工具、模拟器、图表辅助工具等。编写课程前,先阅读 ./assets/ 中的内容,并尽量复用现有组件。默认应复用组件。课程需要新的通用组件时,把它写进 ./assets/ 并链接使用,避免未来的课程重复编写。

共享样式表是工作区应当创建的第一个组件,因为每节课都会链接它,这样整个课程看起来风格统一。随着课程增多,组件库也应该逐步扩充。

每节课都要围绕用户的学习目标,也就是他们学习这个主题的原因。

如果用户的学习目标不明确,或者没有填写 MISSION.md,首先要问用户为什么想学这个主题。不了解学习目标,知识就无法联系用户的实际需求,课程会显得空泛,也无法判断下一步该教什么。

用户掌握更多技能后,学习目标可能会改变,这是正常的。更新 MISSION.md 并新增学习记录前,先和用户确认。

每节课都应该让用户觉得有一定挑战,但又能完成。

如果用户没有指定想学什么,可以通过以下方式确定他们目前最适合学习的内容:

  • 阅读 learning-records
  • 弄清他们的学习目标
  • 选择最符合其最近发展区、又最贴合目标的内容

课程应围绕用户要掌握的一项技能设计。课程只讲习得这项技能所必需的知识。先讲知识,再通过互动反馈,让用户练习技能。

知识应该先从可信赖的资料中获取。使用 RESOURCES.md 追踪这些资料。课程中应充分引用来源链接,为每项说法提供依据,提升可信度。

学习新知识时,难度会占用理解所需的工作记忆,因此应尽量降低难度。

技能训练要帮助用户长期、灵活地运用所学。练习时要有一定难度,这样才能增强长期记忆。课程应该是互动式的,并能及时提供反馈。可以使用多种工具:

  • 通过测验和简单的浏览器任务制作互动课程
  • 引导用户按步骤完成现实生活中的任务,例如瑜伽体式

所有技能训练都应该有反馈环节,让用户知道自己的表现如何。反馈越及时越好,最好还能自动完成。

测验里每个答案的单词数必须完全相同,字符数也尽量一致。每道题中,正确答案所在的位置都要变化。不要用格式或顺序透露答案线索。

当用户提出的问题需要实际经验时,默认先尝试回答,最后再把问题交给一个社群。

社群是让用户在现实中练习技能的地方,可以是论坛、subreddit、现实中的课程或兴趣小组,费用需在预算范围内。你应该寻找声誉良好、用户可以加入的社群。如果用户表示不想加入社群,就尊重他们的选择。

设计课程时,也要创建参考文档。课程可以链接这些文档,方便追踪不同课程都会用到的基础知识。

用户很少会日后重新阅读课程,所以参考文档应该浓缩课程的核心内容,方便快速查阅。

以下主题通常适合制作参考资料:

  • 编程语法和代码片段
  • 算法和流程图
  • 瑜伽体式和练习顺序
  • 健身练习和计划
  • 带有专门术语的主题术语表

尤其要重视术语表。术语表创建后,每节课都要遵循其中的用词。

用户有时会说明他们喜欢怎样的教学方式,或希望你记住什么。把这些内容记在这里,以便设计课程或继续教学时参考。

读者要自己输入 /teach 才会用到它。它在 Claude Code 插件里。

在这个工作区持续开展个性化教学,用短小互动的课程帮助用户掌握知识、练习技能,并通过回忆和间隔练习巩固长期记忆。

Teach the user a new skill or concept, within this workspace.
英文 SKILL.md
---
name: teach
description: Teach the user a new skill or concept, within this workspace.
disable-model-invocation: true
argument-hint: "What would you like to learn about?"
---
The user has asked you to teach them something. This is a stateful request - they intend to learn the topic over multiple sessions.
## Teaching Workspace
Treat the current directory as a teaching workspace. Workspace paths (`./lessons/` and the rest) resolve from the directory `/teach` was run in; only the `*-FORMAT.md` links resolve from this skill's folder. The state of their learning is captured in this directory in several files:
- `MISSION.md`: A document capturing the _reason_ the user is interested in the topic. This should be used to ground all teaching. Use the format in [MISSION-FORMAT.md](./MISSION-FORMAT.md).
- `./reference/*.html`: A directory of reference materials. These are the compressed learnings from the lessons - cheat sheets, reference algorithms, syntax, yoga poses, glossaries. They are the raw units of learning. They should be beautiful documents which print out well, and are designed for quick reference.
- `RESOURCES.md`: A list of resources which can be explored to ground your teaching in contextual knowledge, or to acquire knowledge and wisdom. Use the format in [RESOURCES-FORMAT.md](./RESOURCES-FORMAT.md).
- `./learning-records/*.md`: A directory of learning records, which capture what the user has learned. These are loosely equivalent to architectural decision records in software development - they capture non-obvious lessons and key insights that may need to be revised later, or drive future sessions. These should be used to calculate the zone of proximal development. They are titled `0001-<dash-case-name>.md`, where the number increments each time. Use the format in [LEARNING-RECORD-FORMAT.md](./LEARNING-RECORD-FORMAT.md).
- `./lessons/*.html`: A directory of lessons. A **lesson** is a single, self-contained HTML output that teaches one tightly-scoped thing tied to the mission. This is the primary unit of teaching in this workspace.
- `./assets/*`: Reusable **components** shared across lessons. See [Assets](#assets).
- `NOTES.md`: A scratchpad for you to jot down user preferences, or working notes.
## Philosophy
To learn at a deep level, the user needs three things:
- **Knowledge**, captured from high-quality, high-trust resources
- **Skills**, acquired through highly-relevant interactive lessons devised by you, based on the knowledge
- **Wisdom**, which comes from interacting with other learners and practitioners
Before the `RESOURCES.md` is well-populated, your focus should be to find high-quality resources which will help the user acquire knowledge. Never trust your parametric knowledge.
Some topics may require more skills than knowledge. Learning more about theoretical physics might be more knowledge-based. For yoga, more skills-based.
### Fluency vs Storage Strength
You should be careful to split between two types of learning:
- **Fluency strength**: in-the-moment retrieval of knowledge
- **Storage strength**: long-term retention of knowledge
Fluency can give the user an illusory sense of mastery, but storage strength is the real goal. Try to design lessons which build long-term retention by desirable difficulty:
- Using retrieval practice (recall from memory)
- Spacing (distributing practice over time)
- Interleaving (mixing up different but related topics in practice - for skills practice only)
## Lessons
A lesson is the main thing you produce: the unit in which knowledge and skills reach the user. Each lesson is one self-contained HTML file, saved to `./lessons/` and titled `0001-<dash-case-name>.html` where the number increments each time.
A lesson should be **beautiful**, with clean, readable typography and layout, since the user will return to these later to review. Think Tufte.
The lesson should be short, and completable very quickly. Learners' working memory is very small, and we need to stay within it. But each lesson should give the user a single tangible win that they can build on. It should be directly tied to the mission, and should be in the user's zone of proximal development.
If possible, open the lesson file for the user by running a CLI command.
Each lesson should link via HTML anchors to other lessons and reference documents.
Each lesson should recommend a primary source for the user to read or watch. This should be the most high-quality, high-trust resource you found on the topic.
Each lesson should contain a reminder to ask followup questions to the agent. The agent is their teacher, and can assist with anything that's unclear.
## Assets
Lessons are built from reusable **components**, stored in `./assets/`: stylesheets, quiz widgets, simulators, diagram helpers, and anything else a second lesson could reuse.
Reuse is the default, not the exception. Before authoring a lesson, read `./assets/` and build from the components already there. When a lesson needs something new and reusable, write it as a component in `./assets/` and link to it; never inline code a future lesson would duplicate.
A shared stylesheet is the first component every workspace earns: every lesson links it, so the lessons look like one consistent course rather than a pile of one-offs. As the workspace grows, so should the component library.
## The Mission
Every lesson should be tied into the mission - the reason that the user is interested in learning about the topic.
If the user is unclear about the mission, or the `MISSION.md` is not populated, your first job should be to question the user on why they want to learn this.
Failing to understand the mission will mean knowledge acquisition is not grounded in real-world goals. Lessons will feel too abstract. You will have no way of judging what the user should do next.
Missions may change as the user develops more skills and knowledge. This is normal - make sure to update the `MISSION.md` and add a learning record to capture the change. Confirm with the user before changing the mission.
## Zone Of Proximal Development
Each lesson, the user should always feel as if they are being challenged 'just enough'.
The user may specify an exact thing they want to learn. If they don't, figure out their zone of proximal development by:
- Reading their `learning-records`
- Figuring out the right thing to teach them based on their mission
- Teach the most relevant thing that fits in their zone of proximal development
## Knowledge
Lessons should be designed around a skill the user is going to learn. The knowledge in the lesson should be only what's required to acquire that skill. You teach the knowledge first, then get the user to practice the skills via an interactive feedback loop.
Knowledge should first be gathered from trusted resources. Use `RESOURCES.md` to keep track of them. Lessons should be littered with citations - links to external resources to back up any claim made. This increases the trustworthiness of the lesson.
For acquiring knowledge, difficulty is the enemy. It eats working memory you need for understanding.
## Skills
If knowledge is all about acquisition, skills are about durability and flexibility. Make the knowledge stick.
For skill acquisition, difficulty is the tool. Effortful retrieval is what builds storage strength. Skills should be taught through interactive lessons. There are several tools at your disposal:
- Interactive lessons, using quizzes and light in-browser tasks
- Lessons which guide the user through a list of real-world steps to take (for instance, yoga poses)
Each of these should be based on a **feedback loop**, where the user receives feedback on their performance. This feedback loop should be as tight as possible, giving feedback immediately - and ideally automatically.
For quizzes, each answer should be exactly the same number of words (and characters, if possible). Vary which position holds the correct answer across questions. Don't give the user any clues about the answer through formatting or order.
## Acquiring Wisdom
Wisdom comes from true real-world interaction - testing your skills outside the learning environment.
When the user asks a question that appears to require wisdom, your default posture should be to attempt to answer - but to ultimately delegate to a **community**.
A community is a place (online or offline) where the user can test their skills in the real world. This might be a forum, a subreddit, a real-world class (budget permitting) or a local interest group.
You should attempt to find high-reputation communities the user can join. If the user expresses a preference that they don't want to join a community, respect it.
## Reference Documents
While creating lessons, you should also create reference documents. Lessons can reference these documents - they are useful for tracking raw units of knowledge useful across lessons.
Lessons will rarely be revisited later - reference documents will be. They should be the compressed essence of the lesson, in a format designed for quick reference.
Some learning topics lend themselves to reference:
- Syntax and code snippets for programming
- Algorithms and flowcharts for processes
- Yoga poses and sequences for yoga
- Exercises and routines for fitness
- Glossaries for any topic with its own nomenclature
Glossaries, in particular, are an essential reference. Once one is created, it should be adhered to in every lesson.
## `NOTES.md`
The user will sometimes express preferences of how they want to be taught, or things you should keep in mind. This is the place to record those preferences, so you can refer back to them when designing lessons or working with the user.

非官方学习站,与 Matt Pocock 和 AI Hero 没有隶属关系。本站不提供可安装的中文技能包。

技能原文采用 MIT 许可。Copyright (c) 2026 Matt Pocock

鲁ICP备2025189036号