Teach
Multi-session learning coach for general topics or repo-grounded concepts, with persistent per-topic state and a single-session primer.
от melodic-software★ 34 звезды на GitHub
Установить Teach в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Teach across sessions
Coach the user, not lecture, through the Knowledge-Skills-Wisdom progression, grounded in their real goals, with persistent learning state so each session builds on the last. Two modes share the pedagogy and differ in source material:
topic: general subject learning from external high-trust sources (books, courses, docs, communities).codebase: repo-grounded learning from the consuming repo's own code, docs, ADRs and conventions, discovered at teach-time (Codebase Mode).
Workspace layout
Learning state is the user's own study material. Every workspace lives at
<workspace-root>/<project-slug>/<mode>/<topic>/, with <workspace-root> from
Workspace root resolution. No root ever lands in the consuming repo
unless the project itself declares one.
<workspace-root>/<project-slug>/<mode>/<topic>/
├── MISSION.md WHY the user is learning this — goal, success criteria, constraints (workspace-global)
├── GLOSSARY.md durable terminology SSOT — add only when the user demonstrates understanding (global)
├── RESOURCES.md curated high-trust sources (knowledge + wisdom communities) (global)
├── NOTES.md teaching preferences + working notes — how the user wants to be taught (global)
├── assets/ shared lesson components — lesson.css + answer-shuffling quiz.js, spliced into HTML lessons (context/lessons.md "Assets library")
├── learning-records/ cross-cutting ZPD log — ADR-style insight records (append-only)
│ ├── 0001-<slug>.md
│ └── 0002-<slug>.md
└── concepts/ per-concept slices
└── <concept-slug>/ ONE tightly-scoped thing — things that change together, together
├── lesson.html the teaching unit — pedagogically ephemeral (rarely revisited, regenerable), yet kept in the concept slice rather than OS temp; `lesson.md` where the host can't render HTML (ONE lesson file per concept — format decision + replacement rules: context/lessons.md)
├── reference.md durable compressed cheat-sheet (revisited; the rot-relevant artifact)
└── exercise.md colocated practice (optional)
Path resolution rules every action must follow:
<project-slug>. Canonicalize the project path first, then derive both the basename-slug and the hash from that one canonical path, so a project opened via a symlink and via its real path map to one workspace. Canonical path:(cd "${CLAUDE_PROJECT_DIR}" 2>/dev/null && pwd -P) || realpath "${CLAUDE_PROJECT_DIR}" 2>/dev/null || readlink -f "${CLAUDE_PROJECT_DIR}" 2>/dev/null || printf '%s' "${CLAUDE_PROJECT_DIR}"(pwd -Pleads because it folds every alias of a directory, including macOS/private/var/…and the drive-letter and mount-alias spellings Git for Windows hands out, into one physical path). For a linked git worktree, hoist to the main repository first: ifgit rev-parse --git-common-dirnames a.gitoutside the project, the directory holding it is the canonical path, so all worktrees of one repo share one workspace. That answer is relative to the worktree or absolute, and an absolute one is drive-letter form on Git for Windows, so countC:/repo/.gitas absolute before taking its directory, then canonicalize that directory the same way.<project-slug>= the canonical path's basename slugified to lowercase alphanumerics and hyphens, then-plusprintf '%s' "<canonical-path>" | { sha256sum 2>/dev/null || shasum -a 256; } | cut -c1-8. The hash is required because basenames collide when two clones share a directory name. Both modes are scoped under<project-slug>, so topic learning is associated with the project it was launched from.scripts/list-workspaces.shimplements this derivation (including the worktree hoist, and a compat scan that lists pre-hoist per-worktree slugs labeled(legacy worktree slug)); this bullet stays normative for it.<mode>. Literallytopicorcodebase, matching the action that created the workspace, so/education:teach topic auth-flowand/education:teach codebase auth-flowresolve to separate workspaces instead of one seeding over the other'sMISSION.md/RESOURCES.md.<topic>and<concept>. Content-named kebab slugs (lowercase alphanumerics and hyphens only; strip/,\,..), never sequence-numbered. Resolve a deictic subject ("this repo") to a stable content name per the Smart default rules first; never slug the deixis."Domain-Driven Design"→domain-driven-design. **Record the exact raw name** as the source of truth for collision checks:MISSION.md's# Mission: {Topic}title for a topic; for a concept, the**Concept:**line inlesson.mdor<meta name="concept" content="…">inlesson.html. **Guard against slug colli
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash(${CLAUDE_SKILL_DIR}/scripts/build-lesson.mjs:*) - 02
Bash("${CLAUDE_SKILL_DIR}/scripts/build-lesson.mjs":*)
Вложенные файлы
- context/assessment.md
- context/exercises.md
- context/glossary.md
- context/lessons.md
- context/mission.md
- context/pedagogy.md
- context/resources.md
- reference/native-senduserfile.md
- scripts/build-lesson.mjs
- scripts/build-lesson.test.sh
- scripts/list-workspaces.sh
- scripts/list-workspaces.test.sh
- scripts/splice-assets.awk
- scripts/splice-assets.sh
- scripts/splice-assets.test.sh
- scripts/test-helpers.sh
FAQ
Что делает скилл Teach?
Multi-session learning coach for general topics or repo-grounded concepts, with persistent per-topic state and a single-session primer.
Как установить скилл Teach?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Teach запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
patterns
AnthropicFind patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
copilot-cli-quickstart
GitHubUse this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
vardoger-analyze
GitHubUse when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
policy-lookup
AnthropicFind and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…