Opens a local web viewer (Vite + React) for a StudyVault — rendered images, Mermaid, code highlighting, ⌘K search, dark mode. Triggers: "view my notes", "open vault in browser", "/view", "뷰어 열어줘", "노트 브라우저로 보여줘".
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.
Bootstraps a Vite + React viewer that renders the user's StudyVault/ as a polished browsable site. Runs directly from the skill's own viewer/ directory — nothing copied into the user's project. Vault is wired in via a single symlink (viewer/vault → <project>/StudyVault), refreshed on every invocation.
모든 단계를 메인 세션에서 직접 실행한다. Agent/Task 도구나 subagent_type을 절대 사용하지 않는다. npm run dev는 long-running foreground 프로세스라 서브에이전트 안에서는 dev-server URL·HMR 로그·Ctrl-C 종료가 사용자에게 보이지 않는다. 심볼릭 링크 갱신과 서버 라이프사이클도 메인 세션 트랜스크립트에 노출되어야 한다.
StudyVault/**/*.md from CWD. If empty: tell user to run /setup first and stop.node --version && npm --version. If either missing: tell user to install Node.js 18+ and stop.# 1. Locate the skill's viewer directory (Claude Code sets CLAUDE_SKILL_DIR; fallbacks for various install paths).
SKILL_DIR="${CLAUDE_SKILL_DIR:-}"
if [ -z "$SKILL_DIR" ] || [ ! -d "$SKILL_DIR/viewer" ]; then
for candidate in \
"$HOME/.claude/skills/view" \
"$HOME/.claude/plugins"/*/tutor/skills/view \
"$HOME/.claude/plugins"/*/*/skills/view; do
[ -d "$candidate/viewer" ] && SKILL_DIR="$candidate" && break
done
fi
[ -d "$SKILL_DIR/viewer" ] || { echo "Viewer not found. Reinstall the tutor plugin."; exit 1; }
VIEWER_DIR="$SKILL_DIR/viewer"
# 2. Atomic symlink to current project's vault (fixed-name contract — Vite's import.meta.glob needs a static path).
PROJECT_DIR="$(pwd)"
[ -d "$PROJECT_DIR/StudyVault" ] || { echo "StudyVault not found. Run /setup first."; exit 1; }
ln -sfn "$PROJECT_DIR/StudyVault" "$VIEWER_DIR/vault"
# 3. Install deps once per plugin version (node_modules survives plugin updates — untracked files are preserved).
cd "$VIEWER_DIR"
[ ! -d node_modules ] || [ "package.json" -nt "node_modules/.package-lock.json" ] && npm install
# 4. Start dev server (URL: http://127.0.0.1:5273, HMR; static preview uses 5274).
npm run dev
If the user's vault folder is named something other than StudyVault, have them symlink before invoking:
ln -sfn path/to/actual-vault StudyVault # in user's project root
--build or asks for deployable site)cd "$VIEWER_DIR" && npm run build
cp -R "$VIEWER_DIR/dist" "$PROJECT_DIR/view-dist" # build bakes in symlinked vault — copy out before next invocation
Serve with npx serve view-dist.
Single-tenant per machine: the viewer/vault symlink points to one vault at a time. Running /view in project B while A's dev server is live repoints the symlink (HMR switches the open tab). For two vaults at once: open the first as a static build (npm run build → npx serve dist), the second with the dev server.
gray-matter는 브라우저에서 Node Buffer를 참조합니다. vault-index.ts의 static import가 main.tsx보다 먼저 평가되므로 수동 polyfill은 항상 너무 늦습니다. 반드시 vite.config.ts에서 vite-plugin-node-polyfills로 주입하세요: nodePolyfills({ include: ['buffer'], globals: { Buffer: true } }).
Full feature list: see README.md. Design tokens (typography, color, layout): see design-system.md.
references/design-system.md (opens in a new tab)viewer/index.html (opens in a new tab)viewer/package-lock.json (opens in a new tab)viewer/package.json (opens in a new tab)viewer/postcss.config.js (opens in a new tab)viewer/src/App.tsx (opens in a new tab)viewer/src/components/CodeBlock.tsx (opens in a new tab)viewer/src/components/CommandPalette.tsx (opens in a new tab)viewer/src/components/MarkdownView.tsx (opens in a new tab)viewer/src/components/Mermaid.tsx (opens in a new tab)viewer/src/components/ProficiencyBadge.tsx (opens in a new tab)viewer/src/components/Sidebar.tsx (opens in a new tab)viewer/src/components/ThemeToggle.tsx (opens in a new tab)viewer/src/lib/search.ts (opens in a new tab)viewer/src/lib/vault-index.ts (opens in a new tab)viewer/src/main.tsx (opens in a new tab)viewer/src/routes/HomePage.tsx (opens in a new tab)viewer/src/routes/NotePage.tsx (opens in a new tab)viewer/src/styles/globals.css (opens in a new tab)viewer/src/vite-env.d.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
/tutor:viewfrom 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