Systematic teaching skill: prep → profile → outline → content authoring → teach → verify → track.
Deterministic operations use Python scripts. The model handles teaching and judgment; scripts handle state.
| Script | Purpose | When to call |
|---|---|---|
| -------- | --------- | ------------- |
scripts/init_course.py | Create course directory and state files | Phase 2: after student confirms outline |
scripts/track_progress.py start | Mark a lesson as in-progress | Phase 3: when starting a lesson |
scripts/track_progress.py step | Record a completed step within a lesson | Phase 3: after each step (position/concepts/code/practice) |
scripts/track_progress.py complete | Mark a lesson as completed with score | Phase 3: after student passes verification |
scripts/show_progress.py | Display visual progress overview | Phase 4: after every lesson completion |
scripts/lesson_report.py | Generate and save lesson report | Phase 4: after every lesson completion (before show_progress) |
scripts/resume.py | Load resume state and suggest review | Phase 5: when student returns after a break |
State lives in progress/state.json (single source of truth). tracking.md is auto-rebuilt by scripts. Never manually write or edit tracking.md or state.json.
Prep is a research-heavy phase. It may span multiple sessions.
Step 1: Collect materials
```
├── sources.md ← All reference links + one-line evaluation
├── repos/ ← Cloned repositories
├── articles/ ← Saved articles/PDFs
└── notes.md ← Research notes per source
```
Step 2: Study materials
Step 3: Synthesize
When prep is complete, tell the student: "Prep done. Studied X sources. Ready to outline."
Check USER.md / MEMORY.md first. Only ask what is missing:
scripts/init_course.py --title "..." --lessons '[...]' Run this immediately after Phase 2 outline is confirmed. This phase generates all lesson content (sections, media, practice) before any teaching begins. Do NOT proceed to Phase 3 until all lessons are fully authored.
This is where most of the actual content work happens. It is a content-heavy long task that may span multiple sessions. Do NOT skip or rush.
Resume: If Phase 2.5 spans multiple sessions, before starting:
lessons/ directory — what lesson directories already existoverview.md to get the planned structure (sections and topics)sections/, media/, practice.mdImportant: Save as you go. Every topic you generate, write it to the appropriate file immediately. Do NOT hold content in memory and save at the end — if interrupted, you lose it all.
Goal: 教材级深度——参考正式教材的详尽程度,每课内容应充分展开,不能停留在摘要层面。
目录结构:
<course>/lessons/
└── lesson-NN-<name>/
├── overview.md ← 本章概要 + 学习目标
├── sections/ ← 小节,数量按需确定
│ ├── section-1.md ← 小节 1(可拆分为多个主题)
│ ├── section-2.md ← 小节 2
│ └── ... ← 数量由内容复杂度决定
├── media/ ← 预生成的多媒体素材
│ ├── diagrams/ ← 可视化素材
│ ├── audio/ ← 章节语音总结
│ └── video/ ← 复杂动态流程演示
└── practice.md ← 练习题 + 实践任务
Step 1: 分解章节结构(按需拆分)
① 避免单次生成内容过长导致截断
② 每个主题应是一个可独立理解的知识点
③ 复杂概念多拆,简单概念少拆——由内容本身决定
Step 2: 逐主题生成内容
对每个主题充分展开,不要停留在概述层面。以下是可用的内容维度,按需选择组合:
不是每个主题都需要所有维度——有的主题重代码,有的重概念,有的重对比。由内容本身决定。
Step 3: 预生成多媒体素材
> 原则:提前生成 + 上课时按需展示。该画图就画图,该录音频就录音频,该做视频就做视频——以"最能帮助学生理解"为唯一标准。
以下情况应该生成图片(不是硬性要求,如果文字已经足够清晰也可以不画):
媒体类型选择原则:
多媒体生成规则:
lessons/lesson-NN-*/media/ 目录Step 4: 编写练习题
Before starting Phase 3, verify Phase 2.5 output:
lessons/ directory exists and contains content for the lesson you're about to teachOn lesson start, run: scripts/track_progress.py start
> Phase 3 is now delivery mode. All content was authored in Phase 2.5.
> The teacher presents pre-written content in digestible chunks, one topic at a time.
Delivery order per lesson:
① Position — Read from overview.md: where this lesson sits in the course, learning objectives
→ Run: scripts/track_progress.py step
② Present topics sequentially — Read from lessons/lesson-NN-*/sections/, present one topic at a time
→ Run: scripts/track_progress.py step (after presenting core concepts)
→ Run: scripts/track_progress.py step (when the topic includes code/examples)
→ Run: scripts/track_progress.py step (when the topic includes practice content)
> Only call step scripts when the corresponding content actually exists for this topic.
③ Audio recap — 课末提供语音总结(如果已预生成)
④ Verify — Use pre-written verification questions from practice.md
On pass, run: scripts/track_progress.py complete
Delivery rules:
After each lesson completion, in this order:
scripts/lesson_report.py --strengths "..." --takeaway "..." [--weak "..."] scripts/show_progress.py When the student returns after any break:
scripts/resume.py — read output to determine stateSTATUS: mid_lesson → ask a recall question on what was covered, then continue from the indicated next stepSTATUS: between_lessons → ask a recall question on the last completed lesson, then start the nextSPACED_REVIEW_DUE → do a quick review of indicated lessons before continuingresume.py (triggers at lessons 3, 6, midpoint)Pre-delivery checklist (must pass all before teaching):
lessons/ 目录结构正确(每课有 overview.md、sections/、media/、practice.md)| Situation | Action |
|---|---|
| ----------- | -------- |
| "too easy" | Skip verification, advance |
| "don't understand" | Re-explain from different angle |
| Goes off-topic | Acknowledge briefly, redirect |
| Returns after break | Run scripts/resume.py, follow Phase 5 |
| Teacher lacks depth | Pause, research, then resume |
共 1 个版本