by JuneYaooo
Distill your teacher into a source-backed Skill that teaches you until you can work on your own.
# Add to your Claude Code skills
git clone https://github.com/JuneYaooo/teacher-to-skillsGuides for using ai agents skills like teacher-to-skills.
teacher-to-skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by JuneYaooo. Distill your teacher into a source-backed Skill that teaches you until you can work on your own. It has 496 GitHub stars.
teacher-to-skills's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/JuneYaooo/teacher-to-skills" and add it to your Claude Code skills directory (see the Installation section above). teacher-to-skills ships a SKILL.md manifest, so compatible agents can discover and load it automatically.
teacher-to-skills is primarily written in Python. It is open-source under JuneYaooo on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh teacher-to-skills against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
Distill a teacher's source material into a mentor Skill that can cite the source, demonstrate the teacher's method, guide practice, correct mistakes, and gradually reduce the learner's dependence on help.
Use this method:
Capture → Cite → Compress → Connect → Codify → Coach → Practice → Consolidate → Transfer → Graduate
Preserve evidence before synthesis. Require observable learner work before mastery. Keep immutable teacher assets separate from private learner state.
direct_source, source_grounded_synthesis, cross_source_synthesis, mentor_inference, learner evidence, external knowledge, and unsupported content.Choose the smallest workflow that preserves the requested evidence:
Do not rerun expensive capture when stable artifacts already exist and inputs have not changed.
Separate capability from configuration. Report missing configuration and the smallest viable fallback.
AUDIO_TRANSCRIBE_API_KEY, AUDIO_TRANSCRIBE_BASE_URL, AUDIO_TRANSCRIBE_MODEL.TEACHER_TO_SKILLS_VISION_API_KEY, TEACHER_TO_SKILLS_VISION_BASE_URL, TEACHER_TO_SKILLS_VISION_MODEL.TEACHER_TO_SKILLS_TEXT_API_KEY, TEACHER_TO_SKILLS_TEXT_BASE_URL, TEACHER_TO_SKILLS_TEXT_MODEL when LLM distillation is enabled.MINERU_API_TOKEN, unless existing OCR is reused.ffmpeg and ffprobe.If raw media needs an unavailable provider, stop before that capture stage. If transcripts, OCR, notes, or packages already exist, continue from them and report excluded modalities. Never store secrets in the repository or commit .env.
For media and documents:
python scripts/run_course_pipeline.py \
--input-dir <course-media> \
--documents-input <pdf-or-directory> \
--notes-input <notes> \
--course-name <course-name> \
--skill-name <skill-name> \
--mode mentor \
--apprenticeship full \
--practice-depth deep \
--learner-state external \
--output-dir ./dist
For text or books:
python scripts/run_course_pipeline.py \
--text-input <markdown-txt-or-directory> \
--course-name <course-name> \
--mode mentor \
--apprenticeship full \
--output-dir ./dist
Use --text-no-llm for deterministic explicit-label extraction. Treat implicit teacher cognition from ordinary exposition as medium/low confidence and require review.
Build or migrate CoursePackage:
python scripts/build_course_package.py \
--course-name <course-name> \
--source-dir <course-workspace>
python scripts/migrate_course_package.py \
<legacy-course-package.json>
Compile the apprenticeship assets in dependency order:
python scripts/build_teacher_model.py --source-dir <course-workspace>
python scripts/build_capability_graph.py --source-dir <course-workspace>
python scripts/build_practice_bank.py --source-dir <course-workspace> --practice-depth deep
python scripts/build_assessment_bank.py --source-dir <course-workspace>
python scripts/build_mentor_package.py --source-dir <course-workspace> --apprenticeship full
python scripts/build_mentor_readiness_audit.py --source-dir <course-workspace>
Then generate and validate:
python scripts/build_course_skill.py \
--course-name <course-name> \
--skill-name <skill-name> \
--mode mentor \
--apprenticeship full \
--learner-state external \
--source-dir <course-workspace> \
--output-dir ./dist
The builder uses a temporary directory and installs the target only after validation.
python scripts/build_multi_course_package.py \
--course <course-a-package-or-dir> \
--course <course-b-package-or-dir> \
--combined-name <combined-name> \
--output-dir <combined-workspace>
Migrate each package to an in-memory 1.0 form, namespace colliding IDs, keep source-course identity, record semantic conflicts, and route those conflicts into comparison rather than consensus.
mentor when the user wants capability formation.expert for source lookup, course Q&A, explanation, and citations.consultant for course-grounded diagnosis, option comparison, and advice.practitioner for playbooks, checklists, templates, workflows, and artifacts.custom for a user-defined source-bounded role.Treat role, scope, evidence strategy, apprenticeship mode, and learner-state strategy as separate dimensions. Mentor requests default to full apprenticeship; downgrade to guided or none when readiness is insufficient and report every blocker.
Require the following for full apprenticeship:
Use guided mode when useful training assets exist but full teacher evidence does not. Do not hide gaps.
First route the request as source lookup, direct explanation, diagnostic learning, guided practice, artifact feedback, real-world application, retrieval review, transfer test, or graduation test.
Read the detailed protocol and policies before operating a generated Mentor Skill.
Resolve the host-provided store as:
{learner_store_root}/apprenticeships/{mentor_package_id}/
Initialize, append, rebuild, schedule, select, validate, and build candidates with the generated runtime scripts. If the host cannot write, return a complete state patch and say it was not persisted. Never generate real learner_progress.json or apprenticeship state under Skill references/.
Generate a candidate only after:
Promote only after regression tests, a new-context success, no material capability regression, copyright/privacy review, Skill validation, and explicit learner approval.
Graduate only with delayed retention, unseen-case diagnosis, independent production, changed-context transfer, boundary recognition, critical comparison, personal adaptation evidence, and Personal Skill regression. After graduation, reduce Mentor behavior to source consultant, counterexample provider, advanced sparring partner, and source-update notifier.
Run:
python scripts/validate_teacher_to_skills_package.py --package <course_package.json>
python scripts/validate_mentor_package.py --package <mentor_package.json>
python scripts/validate_generated_skill.py --skill-dir <generated-skill>
python "${CODEX_HOME:-$HOME/.codex}/skills/.system/skill-creator/scripts/quick_validate.py" .
git diff --check
Report source state, workflow, generated path, visual evidence mode, source readiness, mentor readiness, runtime readiness, apprenticeship downgrade, human-review needs, validation results, and remaining risks.
Generation is not complete while the learner still does not know how to use the new Skill.
After validation:
Do not expose compiler commands, schema names, runtime object names, or validation internals in the normal user handoff unless the user explicitly asks for developer details.
Do not commit private transcripts, images, OCR, learner state, or copyrighted bodies unless the user explicitly authorizes publication.
蒸馏你的老师,变成一个随时能问、会带你练的 Skill
中文 · English · 三步上手 · 能蒸馏哪些材料 · 工作原理 · 安装说明 · 更新记录
把老师的课程、书、录音、讲义和批注交给它,它会提炼老师怎么看问题、怎么判断、怎么纠错,打包成一位有出处的 AI 老师:先示范,再让你动手,按老师的标准给反馈,直到你不再需要它。
| 你交给它 | 它蒸馏出 | 你得到 |
|---|---|---|
| 老师的课程视频、书与讲义、录音访谈、文章笔记、批注反馈 | 出处、观察点、判断规则、示范、常见错误与纠偏、适用边界 | 一位随时能问、会出题、按老师标准点评、最终放手的 AI 老师 |
一位好老师最值钱的,往往不是讲义上的结论,而是没写下来的那部分:先看哪里、凭什么下判断、学生最常错在哪、什么情况下这套方法不能用。
普通摘要只留下“老师讲了什么”。Teacher-to-Skills 想留下的是“老师会怎么做”,并且把它变成你自己也能做到的能力。
| 课程摘要 | 蒸馏出来的老师 Skill | |
|---|---|---|
| 留下什么 | 知识点和结论 | 老师的观察点、判断规则、示范和纠错方式 |
| 怎么用 | 你自己去读 | 它出题、你先做,它按老师的标准点评 |
| 可信度 | 难以分辨是原话还是改写 | 重要结论都能回查原文、原话或关键画面 |
| 最终结果 | 读完就结束 | 隔一段时间、换个场景你也能独立做出来 |
它不会声称复制老师的人格、意识或全部经验。材料里没有的东西,它会标成“证据不足”,不会编造“老师大概会这么说”。
目标不是让你一直依赖这位 AI 老师,而是让你学到老师的方法,最后形成自己的方法。
你不需要运行脚本,也不需要理解内部文件结构,全程用自然语言和你的 AI 助手说话即可。
① 安装
把安装说明发给你的 AI 助手(Claude Code、Codex、OpenClaw 等),让它代你安装,装好后按提示重启。
② 交给它老师的材料,开始蒸馏
上传文件或告诉它材料所在的文件夹,然后直接说:
请使用 Teacher-to-Skills 蒸馏这位老师的材料,做成一个能带我真正学会的老师 Skill。我的目标是把老师的方法用到真实工作中。重要结论要能回查出处,原始材料和个人学习记录保持私有。请先告诉我识别到了哪些材料、还缺什么;如果没有需要我决定的风险,就继续完成蒸馏、检查并启用新 Skill,最后告诉我怎样开始第一课。
它会盘点材料,完成转录、识别、出处整理、老师方法提炼、练习设计和质量检查,中途中断了也能接着做。交付时它应该清楚告诉你:
如果这些没有交代清楚,直接让它补做交付检查。
③ 跟着老师学
用刚刚生成的老师 Skill 开始带我学习。先问清楚我的目标、基础、每周可投入时间和一个真实应用场景;做一次简短摸底后,从一个知识点开始深入浅出地讲。讲完一起给我两道题,等我回答后分别点评。
之后每次回来,一句话就够:
| 你想做什么 | 可以直接说 |
|---|---|
| 继续学习 | “继续上次进度,给我今天最应该做的一项练习。” |
| 问老师会怎么看 | “按老师的方法,这个问题应该先看什么?给出原话出处,这次不用练习。” |
| 提交真实作品 | “这是我按老师方法完成的作品,先按老师的标准评价,再指出最关键的一个问题。” |
| 复习巩固 | “根据我以前的错误安排一次复习,不要重复原题。” |
| 检查迁移 | “换一个我没见过的场景,检查我能不能独立用这个方法。” |
| 解决现实问题 | “先让我说明自己的判断和方案,再用老师的方法帮我纠偏。” |
| 追加新材料 | “这是老师的新课,更新进老师 Skill,保留我原来的学习进度。” |
| 申请出师 | “不要给提示,用新场景检验我是否真的掌握,并说明还缺什么证据。” |
| 你手上的材料 | 它会怎么处理 |
|---|---|
| 🎬 课程视频、讲座录像 | 结合讲解声音、画面、幻灯片、板书和演示进行整理 |
| 🎙️ 录音、播客、访谈 | 转成可检索的文字,并按章节和主题组织 |
| 📚 书籍、PDF、扫描讲义 | 识别正文、结构、表格和重要页面 |
| 📝 文章、笔记、批注、文字稿 | 保留原文位置,提炼方法、案例和练习 |
| ♻️ 已有的转录或课程整理 | 跳过重复处理,在已有成果上继续 |
| 👥 多位老师的材料 | 分别保留每位老师的观点、适用条件和分歧,不强行拼成一个答案 |
材料不完整也可以开始。它会标出缺失的证据和需要人工确认的地方。材料只够解释概念时,它会如实退回到资料查询或引导学习,不会假装已经具备完整的带教能力。
老师的材料和你的学习记录分开保存:老师那部分生成后不再改动,你的进度保存在 Skill 之外的私有目录,重新蒸馏或更新材料都不会丢失学习记录。
| 层次 | 做什么 |
|---|---|
| 证据层 | 保存原文、原话、讲义和关键画面,每条结论都能回查 |
| 老师层 | 提炼老师的观察点、判断规则、示范、纠错方式和边界 |
| 练习层 | 按学习顺序设计练习、评分标准、复习和迁移检验 |
| 个人层 | 保存你的尝试和真实结果,经你同意后沉淀成你自己的方法 |
本项目采用 Apache License 2.0。