From code-tour
Use when asked to create a .tour walkthrough — onboarding, PR review, RCA, architecture, or any persona-targeted step-by-step code narrative. Not for codebase exploration without a .tour file output.
How this skill is triggered — by the user, by Claude, or both
Slash command
/code-tour:code-tourThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when the goal is to produce a `.tour` JSON file — a persona-targeted, step-by-step walkthrough that links directly to real files and line numbers and works with the VS Code CodeTour extension.
Use this skill when the goal is to produce a .tour JSON file — a persona-targeted, step-by-step walkthrough that links directly to real files and line numbers and works with the VS Code CodeTour extension.
.tour file artifact — route to acquire-codebase-knowledge instead.context-map instead.| Situation | Use this skill? | Route instead |
|---|---|---|
| "Create a tour so new joiners can ramp up on the API" | Yes | — |
| "Explain how auth works" (chat answer is sufficient) | No | answer directly |
| "Map the files involved in this refactor before I touch anything" | No | context-map |
| "Document the architecture and create ARCHITECTURE.md" | No | acquire-codebase-knowledge |
| "Create an onboarding tour and also write the CONVENTIONS.md" | Split | code-tour for the .tour file; acquire-codebase-knowledge for the docs |
Required before starting
Helpful if present
ref.isPrimary or chain to a nextTour.Only investigate if encountered
.tours/ directory content (check for title conflicts and nextTour cross-references).stepMarker requirements (only when the user asks for source-embedded anchors).references/examples.md to select persona, depth, and step count. Infer ref, isPrimary, and nextTour silently from the request; ask only when you genuinely cannot infer..tours/<persona>-<focus>.tour. Follow the schema in references/codetour-schema.json. Structure: orientation step (must have file or directory anchor) → high-level map → core path → closing content step. Use step types that fit the situation; the references/examples.md file shows each type in practice.python skills/code-tour/scripts/validate_tour.py .tours/<name>.tour --repo-root .. Fix every error before continuing. Re-run until the validator reports only warnings or passes clean.vscode.dev share URL for public repos, and any requested files that did not exist..tours/<persona>-<focus>.tour — the validated CodeTour JSON file..tour JSON files. Do not create, modify, or scaffold any other file during this skill.file and directory path in the tour must be relative to the repo root — no leading / or ./, no absolute paths.line number must be verified by reading the file. Never guess or estimate.pattern regex must compile and match at least one real line in the target file before you include it.file or directory anchor. A content-only first step renders as a blank page in VS Code CodeTour.stepMarker unless the user asks — it requires editing source files, which this skill does not do.commands only executes VS Code commands, not shell commands. Do not suggest shell execution through a commands step.Mechanical:
python skills/code-tour/scripts/validate_tour.py .tours/<name>.tour --repo-root .
Checks JSON validity, file/directory existence, line-number bounds, pattern regex matches, URI format, nextTour cross-references, content-step count, and narrative arc. Fix every error; re-run until clean.
Manual fallback (if Python is unavailable): confirm step 1 has a file or directory anchor, all paths exist and are relative, all line numbers are in bounds, and nextTour matches an existing tour title exactly.
Smoke test:
feature/auth-refactor — highlight the changed files and flag anything risky for the reviewer."references/codetour-schema.json — authoritative JSON schema for .tour files; check this for valid field names, types, and step structurereferences/examples.md — real-world .tour files from production repos, annotated by step type and technique; also includes the persona→depth→step-count calibration table and step-type decision guidescripts/validate_tour.py — run after writing any tour to check paths, line numbers, patterns, and narrative arc; generic and self-contained, requires Python 3.8+Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub matt-riley/lucky-hat --plugin code-tour