Auto-detects changes in CWD source materials (PDF/MD/TXT/HTML/EPUB/URL) and incrementally updates the StudyVault — only affected notes regenerated. Learning progress is synced safely: Error notes are NEVER deleted, destructive changes (rename/merge/archive) require approval. Triggers: "자료 업데이트", "동기화", "변경분 반영", "/sync", "study materials changed", "resync vault", "재생성", "sync vault".
Ships in tutor. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Detects changes in source materials since last build and incrementally updates the StudyVault from setup. Preserves learning-progress data owned by quiz.
CWD Boundary: see ../_shared/cwd-boundary.md. Portability Rules: see ../_shared/portability-rules.md. All regenerated notes MUST follow these.
NEVER DELETE:
- Error notes (오답 메모) — 학습 이력 전체 보존
- `## Prestige` 섹션 + `<!-- prestige_tier: N -->` — 환생 명예 이력 보존 (progress-rules §8)
- concepts/**, dashboard.md, archive/** — 파일 삭제 금지 (archive 이동만)
ALWAYS REQUIRE APPROVAL (AskUserQuestion):
- concepts/{area}.md rename / merge / archive
- dashboard.md area 행 rename / archive 표시
- 콘텐츠 노트 archive 이동
AUTOMATIC (non-destructive):
- 새 area → dashboard.md Proficiency 표에 ⬜ 행 추가 + concepts/{area}.md 생성 (seed populate, tracker 비움)
- content-stale concept 행에 ⚠️ 플래그 추가 (삭제 아님)
- Coverage / Accuracy / Mastery / Level 재계산 (progress-rules §2, §3)
ALWAYS SKIP:
- manual_edits: true frontmatter가 있는 콘텐츠 노트
{LANG}. All user-facing output in {LANG}.**/StudyVault/. If not found → "StudyVault가 없습니다. 먼저 /setup을 실행하세요." and stop.**/StudyVault/*dashboard* and **/StudyVault/*대시보드* (vault root only). If any match exists at a non-canonical path, rename it to StudyVault/dashboard.md. If multiple found, keep the most recent and move the rest to StudyVault/archive/duplicate-dashboards/. Single-file invariant: there is exactly one learning dashboard per vault, at StudyVault/dashboard.md.StudyVault/.manifest.json.StudyVault/**/*.md (exclude concepts/, dashboard.md, archive/).source_pdf values to build source → note[] mapping..manifest.json per manifest-schema.md./sync 실행부터 동작합니다." Stop.Scan CWD **/*.{pdf,md,txt,html,epub}. Exclude node_modules/, .git/, dist/, build/, StudyVault/**, .view/**, and any path under user's .manifest.json exclude field.
Per-format normalization (full commands in manifest-schema.md):
| Extension | Normalization | Hash input |
|---|---|---|
.pdf | pdftotext "file.pdf" - (stdout) | stdout bytes |
.md | Read as-is | file bytes |
.txt | Read as-is | file bytes |
.html | pandoc -f html -t plain (fallback: strip tags) | plain text |
.epub | pandoc -f epub -t plain | plain text |
| URL | WebFetch → body | fetched text |
PDFs MUST be normalized via
pdftotext— never use Read directly (wastes 10-50× tokens). Install:brew install poppler/apt-get install poppler-utils.
Compute sha256 of each normalized output. For .md, additionally compute per-H2-section hashes (split on ^## ) for partial update.
| Category | Condition |
|---|---|
| 🆕 신규 | File present in CWD, absent in manifest |
| ✏️ 변경 | Hash differs |
| 🗑️ 삭제 | In manifest, absent from CWD |
| ✅ 동일 | Hash matches — skip |
For ✏️ modified .md files, compute section-level diff to identify which H2 sections changed.
Also scan StudyVault/ for structural area changes:
| Signal | Classification |
|---|---|
NN-<name>/ exists in vault but not in last manifest's folder list | 🆕 area added |
| Folder in manifest but missing from vault | 🗑️ area removed |
| Same number, different name | ✏️ area renamed |
Two folders collapsed (detected via source_pdf overlap) | ✏️ area merged |
Present plan table:
| 파일 / 영역 | 유형 | 영향 노트 | 작업 |
|-------------|------|-----------|------|
| `docs/chapter3.pdf` | ✏️ 변경 | `02-cpu/pipeline.md` | 재생성 |
| `notes/new-topic.md` | 🆕 신규 | (신규 폴더 `04-new-topic/`) | 생성 |
| `old.pdf` | 🗑️ 삭제 | `03-old/*` → archive | archive 이동 |
| area `02-old` → `02-new` | ✏️ 리네이밍 | `concepts/old.md` → `concepts/new.md` | rename (승인) |
AskUserQuestion options: Apply all / Apply with exclusions (specify items to skip) / Cancel.
For each 🆕 new source:
setup Phase D1 (Source Mapping) + D2 (Content Analysis) to this source only.NN-<topic>/ if keyword/topic overlap ≥ 70%; else create NN-<new-topic>/ with next available number.../setup/references/templates.md (verbatim quotes + captured visuals; no practice file).pdftoppm -r 150 -png "<source>" "StudyVault/_assets/<source-stem>/p" and pdfimages -list to inventory figures.../setup/SKILL.md Phase D3).setup Phase D7): Related Notes, MOC link, Quick Reference, Exam Traps.source_pdf, part, keywords (3-5 english kebab-case).For each ✏️ modified source:
notes for this source → affected notes list.manual_edits: true → SKIP (report)..md and manifest has sections mapping, regenerate only notes mapped to changed H2 sections.notes[] for that source.../setup/references/templates.md. Preserve existing keywords, part unless source content invalidates.dashboard.md, concepts/, archive/ here.For each 🗑️ deleted source:
Archive all / Keep but mark stale / Cancel this item.StudyVault/archive/<NN-topic>/, mv notes (preserve relative structure), remove links from 00-Dashboard/{moc,quick-reference,exam-traps}.md.Update content-side dashboards (NOT the learning-progress dashboard.md — that's S9):
00-Dashboard/moc.md: Topic Map add/remove rows; Keyword Index add new entries.00-Dashboard/quick-reference.md: add sections for new notes with → [Concept Note](path.md).00-Dashboard/exam-traps.md: append new trap points; remove archived links.Relative-path markdown only. No wiki-links.
Sync dashboard.md and concepts/ per case table. Error notes are NEVER deleted.
| Change | Action | Approval |
|---|---|---|
| 🆕 신규 area | dashboard.md에 새 행 추가 (Concepts=<seed 수>, 나머지=0, ⬜). concepts/<new>.md 생성, seed populate (section-level: area 폴더 각 concept note의 ## 섹션마다 1개 seed, boilerplate 섹션 제외, label <file-basename> · <section-title>), tracker 비움. | Auto |
| 🗑️ area 삭제 | concepts/<area>.md → archive/concepts/<area>.md. Dashboard 행에 (archived) + Details 링크 archive 경로로. | Ask |
| ✏️ area rename | concepts/<old>.md → concepts/<new>.md. 내부 H1 + dashboard 행 이름/링크 갱신. Tracker 행 (Streak 포함) · Error notes · seed block · ## Prestige/prestige_tier 전부 원본 보존. | Ask (diff 제시) |
| ✏️ area 병합 (A+B → C) | seed 병합·중복 제거. Attempts/Correct 합산. Streak은 합산하지 않고 min(A,B) (보수적). Error notes는 **source area** 부제로 모두 보존. prestige_tier는 max(A,B) 보존 (가장 높은 환생 이력 유지). | Ask (프리뷰) |
| ✏️ source 내용만 변경 | concepts 건드리지 않음. concept가 source에서 사라지면 Status 옆 ⚠️ stale (content-stale 마커). | Auto (표시만) |
| ✏️ 새 concept note 추가 | 노트 내 ## 섹션(boilerplate 제외)마다 seed 1개씩 추가, tracker는 그대로. dashboard Concepts +<섹션 수>, Covered/Mastery 재계산. | Auto |
✏️ concept note 내 ## 섹션 추가/삭제 | 추가된 섹션 → seed 추가 (Concepts +N). 삭제된 섹션 → seed에서 제거; 해당 tracker 행은 유지 + Status 옆 ⚠️ stale (Concepts −N). | Auto (표시만) |
| ✏️ concept note 삭제 | 해당 노트에서 파생된 모든 seed 제거. Tracker에 이미 있는 행 유지 + Status 옆 ⚠️ stale. Concepts −<제거된 seed 수>. | Auto (표시만) |
📥 ### Pending Concepts 후보 | quiz Phase 6의 append-only 후보들. 각 후보: (a) 승격 seed 추가 / (b) 기존 seed로 귀속 / (c) 폐기. 승격 시 Concepts +1. | Ask (a/b/c per 후보) |
manual_edits: true 노트 | 무관 (S6에서 skip). | — |
Ask payload for destructive cases: header "Sync {area}", show before/after diff (concept file path + dashboard row), options Apply / Skip this area / Cancel entire sync.
Content-stale 감지: 변경 후 source에서 사라진 concept 행:
| pipeline-hazard | 3 | 2 | 2 | 2026-03-14 | 🟢 ⚠️ stale |
통계 재계산 (area 추가/이동/리네이밍 후 MANDATORY). Spec: ../_shared/progress-rules.md §2, §3:
Concepts = seed bullet countCovered = tracker rows / ConceptsAccuracy = 🟢 count / tracker rows (denom 0 → -)Mastery = 🟢 count / ConceptsLevel = §3 임계값 (Coverage gate + Mastery tier); prestige_tier ≥ 1이면 Level 셀에 ⭐×N suffix 보존 (§8)Archive 구조:
StudyVault/
├── archive/
│ ├── <NN-old-topic>/ # 콘텐츠 노트
│ └── concepts/<area>.md # 학습 진행 (Error notes 보존)
Verify against sync-checklist.md. Error notes integrity is highest priority. Fix and re-verify until all pass.
version: 1, last_build: <ISO8601>, updated sources (hash/mtime/notes/sections per manifest-schema.md). Include deleted sources under archived_sources (optional)..manifest.json.tmp → mv to .manifest.json.✅ Sync complete.
- New: N files (M notes)
- Modified: N files (M notes, K skipped for manual_edits)
- Deleted: N files (M notes archived)
- Area changes: X renamed, Y merged, Z archived (with approval)
- Error notes: fully preserved (no deletions)
Match source language (Korean source → Korean notes). Keywords: ALWAYS English (kebab-case). User-facing UI in {LANG}.
What SKILL.md sets; muted values are Claude Code's defaults
/tutor:syncfrom tutor
npx claudepluginhub lluke0/custom-plugin --plugin tutor6 skills in this plugin
/lessonStep-by-step concept tutor for a single StudyVault concept note. Walks the user through each `##` section in order, advances on user confirmation, answers questions by appending new sections to the same note, and updates the area tracker + Learning Dashboard. Args: `<path-to-concept-note.md>`. Triggers: "/lesson", "lesson <file>", "step-by-step", "설명해줘", "차근차근".
/quizInteractive quiz tutor for markdown StudyVault learning. Args: `diagnostic` (진단평가), `drill-weak` (약점 드릴), `section <area>` (섹션 지정), `hard` (하드 복습). Without args: shows session picker. Triggers: "quiz me", "test me", "let's study", "/quiz", "학습", "퀴즈", "평가".
/rebirthRebirth (환생) an already-mastered area to re-conquer it at higher difficulty. Resets the area's challenge track (tracker emptied, re-quizzed from scratch) while preserving a permanent honor badge (⭐×N), and scales question difficulty up every rebirth. Args: `<area>` (환생할 영역) or `help`. Without args: shows eligible 🟦 Mastered areas. Triggers: "환생", "rebirth", "prestige", "/rebirth", "다시 도전", "마스터한 거 더 어렵게", "환생해줘".
Other plugins' skills for the same job