Command Palette

Search for a command to run...

Назад к скиллам
скилл № 20792

Teach

Multi-session learning coach for general topics or repo-grounded concepts, with persistent per-topic state and a single-session primer.

БесплатноЗапускает вложенные скрипты
melodic-softwareот 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 -P leads 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: if git rev-parse --git-common-dir names a .git outside 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 count C:/repo/.git as 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 - plus printf '%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.sh implements 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>. Literally topic or codebase, matching the action that created the workspace, so /education:teach topic auth-flow and /education:teach codebase auth-flow resolve to separate workspaces instead of one seeding over the other's MISSION.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 in lesson.md or <meta name="concept" content="…"> in lesson.html. **Guard against slug colli
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(${CLAUDE_SKILL_DIR}/scripts/build-lesson.mjs:*)
  2. 02Bash("${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 запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Teach с