New: Earn 20% as an AgentAlley affiliate. Share your link and earn on every sale you refer. Join now New: Earn 20% as an affiliate. Join now

Create a CodeTour .tour file

Code tour

by alirezarezvani · MIT license · ★ 26,349 on GitHub · updated Aug 30

Code tour cover

Use when the user asks to create a CodeTour .tour file — persona-targeted, step-by-step walkthroughs that link to real files and line numbers. Trigger for: create a tour, onboarding tour, architecture tour, PR review tour, explain how X…

---
name: "code-tour"
description: "Use when the user asks to create a CodeTour .tour file — persona-targeted, step-by-step walkthroughs that link to real files and line numbers. Trigger for: create a tour, onboarding tour, architecture tour, PR review tour, explain how X works, vibe check, RCA tour, contributor guide, or any structured code walkthrough request."
---

# Code Tour

Create **CodeTour** files — persona-targeted, step-by-step walkthroughs of a codebase that link directly to files and line numbers. CodeTour files live in `.tours/` and work with the [VS Code CodeTour extension](https://github.com/microsoft/codetour).

## Overview

A great tour is a **narrative** — a story told to a specific person about what matters, why it matters, and what to do next. Only create `.tour` JSON files. Never modify source code.

## When to Use This Skill

- User asks to create a code tour, onboarding tour, or architecture walkthrough
- User says "tour for this PR", "explain how X works", "vibe check", "RCA tour"
- User wants a contributor guide, security review, or bug investigation walkthrough

Overview

Create CodeTour files — persona-targeted, step-by-step walkthroughs of a codebase that link directly to files and line numbers. CodeTour files live in .tours/ and work with the VS Code CodeTour extension.

Manual install (npx, ZIP)
Claude Codenpx skills add alirezarezvani/claude-skills --skill code-tour -g -a claude-code
Claude Code (manual)mkdir -p ~/.claude/skills && curl -sL https://codeload.github.com/alirezarezvani/claude-skills/tar.gz/19392f7a0826 \ | tar -xz -C ~/.claude/skills --strip-components=4 claude-skills-19392f7a0826/engineering/code-tour/skills/code-tour
Windows (PowerShell)New-Item -ItemType Directory -Force "$HOME\.claude\skills" | Out-Null; Invoke-WebRequest "https://m.agentalley.io/zip/61747a6f04ecf14d4323/code-tour.zip" -OutFile "$env:TEMP\code-tour.zip"; Expand-Archive "$env:TEMP\code-tour.zip" -DestinationPath "$HOME\.claude\skills" -Force
Claude.ai / desktopDownload the ZIP and upload it under Settings → Capabilities → Skills.
Codex, Cursor, other agentsPoint them at SKILL.md. The other files are plain text.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • SKILL.md6.2 KB
Read the files here
alirezarezvani/19392f71 file
SKILL.md
Show the full text141 lines

Code Tour

Create CodeTour files — persona-targeted, step-by-step walkthroughs of a codebase that link directly to files and line numbers. CodeTour files live in .tours/ and work with the VS Code CodeTour extension.

Overview

A great tour is a narrative — a story told to a specific person about what matters, why it matters, and what to do next. Only create .tour JSON files. Never modify source code.

When to Use This Skill

  • User asks to create a code tour, onboarding tour, or architecture walkthrough
  • User says "tour for this PR", "explain how X works", "vibe check", "RCA tour"
  • User wants a contributor guide, security review, or bug investigation walkthrough
  • Any request for a structured walkthrough with file/line anchors

Core Workflow

1. Discover the repo

Before asking anything, explore the codebase:

In parallel: list root directory, read README, check config files. Then: identify language(s), framework(s), project purpose. Map folder structure 1-2 levels deep. Find entry points — every path in the tour must be real.

If the repo has fewer than 5 source files, create a quick-depth tour regardless of persona — there's not enough to warrant a deep one.

2. Infer the intent

One message should be enough. Infer persona, depth, and focus silently.

User says Persona Depth
"tour for this PR" pr-reviewer standard
"why did X break" / "RCA" rca-investigator standard
"onboarding" / "new joiner" new-joiner standard
"quick tour" / "vibe check" vibecoder quick
"architecture" architect deep
"security" / "auth review" security-reviewer standard
(no qualifier) new-joiner standard

When intent is ambiguous, default to new-joiner persona at standard depth — it's the most generally useful.

3. Read actual files

Every file path and line number must be verified. A tour pointing to the wrong line is worse than no tour.

4. Write the tour

Save to .tours/<persona>-<focus>.tour.

{
  "$schema": "https://aka.ms/codetour-schema",
  "title": "Descriptive Title — Persona / Goal",
  "description": "Who this is for and what they'll understand after.",
  "ref": "<current-branch-or-commit>",
  "steps": []
}
Step types
Type When to use Example
Content Intro/closing only (max 2) { "title": "Welcome", "description": "..." }
Directory Orient to a module { "directory": "src/services", "title": "..." }
File + line The workhorse { "file": "src/auth.ts", "line": 42, "title": "..." }
Selection Highlight a code block { "file": "...", "selection": {...}, "title": "..." }
Pattern Regex match (volatile files) { "file": "...", "pattern": "class App", "title": "..." }
URI Link to PR, issue, doc { "uri": "https://...", "title": "..." }
Step count
Depth Steps Use for
Quick 5-8 Vibecoder, fast exploration
Standard 9-13 Most personas
Deep 14-18 Architect, RCA
Writing descriptions — SMIG formula
  • S — Situation: What is the reader looking at?
  • M — Mechanism: How does this code work?
  • I — Implication: Why does this matter for this persona?
  • G — Gotcha: What would a smart person get wrong?
5. Validate
  • Every file path relative to repo root (no leading / or ./)
  • Every file confirmed to exist
  • Every line verified by reading the file
  • First step has file or directory anchor
  • At most 2 content-only steps
  • nextTour matches another tour's title exactly if set

Personas

Persona Goal Must cover
Vibecoder Get the vibe fast Entry point, main modules. Max 8 steps.
New joiner Structured ramp-up Directories, setup, business context
Bug fixer Root cause fast Trigger -> fault points -> tests
RCA investigator Why did it fail Causality chain, observability anchors
Feature explainer End-to-end UI -> API -> backend -> storage
PR reviewer Review correctly Change story, invariants, risky areas
Architect Shape and rationale Boundaries, tradeoffs, extension points
Security reviewer Trust boundaries Auth flow, validation, secret handling
Refactorer Safe restructuring Seams, hidden deps, extraction order
External contributor Contribute safely Safe areas, conventions, landmines

Narrative Arc

  1. Orientation — file or directory step (never content-only first step — blank in VS Code)
  2. High-level map — 1-3 directory steps showing major modules
  3. Core path — file/line steps, the heart of the tour
  4. Closing — what the reader can now do, suggested follow-ups

Anti-Patterns

Anti-pattern Fix
File listing — "this file contains the models" Tell a story. Each step depends on the previous.
Generic descriptions Name the specific pattern unique to this codebase.
Line number guessing Never write a line you didn't verify by reading.
Too many steps for quick depth Actually cut steps.
Hallucinated files If it doesn't exist, skip the step.
Recap closing — "we covered X, Y, Z" Tell the reader what they can now do.
Content-only first step Anchor step 1 to a file or directory.

Cross-References

  • Related: engineering/codebase-onboarding — for broader onboarding beyond tours
  • Related: engineering/pr-review-expert — for automated PR review workflows
  • CodeTour extension: microsoft/codetour
  • Real-world tours: coder/code-server
1---
2name: "code-tour"
3description: "Use when the user asks to create a CodeTour .tour file — persona-targeted, step-by-step walkthroughs that link to real files and line numbers. Trigger for: create a tour, onboarding tour, architecture tour, PR review tour, explain how X works, vibe check, RCA tour, contributor guide, or any structured code walkthrough request."
4---
5 
6# Code Tour
7 
8Create **CodeTour** files — persona-targeted, step-by-step walkthroughs of a codebase that link directly to files and line numbers. CodeTour files live in `.tours/` and work with the [VS Code CodeTour extension](https://github.com/microsoft/codetour).
9 
10## Overview
11 
12A great tour is a **narrative** — a story told to a specific person about what matters, why it matters, and what to do next. Only create `.tour` JSON files. Never modify source code.
13 
14## When to Use This Skill
15 
16- User asks to create a code tour, onboarding tour, or architecture walkthrough
17- User says "tour for this PR", "explain how X works", "vibe check", "RCA tour"
18- User wants a contributor guide, security review, or bug investigation walkthrough
19- Any request for a structured walkthrough with file/line anchors
20 
21## Core Workflow
22 
23### 1. Discover the repo
24 
25Before asking anything, explore the codebase:
26 
27In parallel: list root directory, read README, check config files.
28Then: identify language(s), framework(s), project purpose. Map folder structure 1-2 levels deep. Find entry points — every path in the tour must be real.
29 
30If the repo has fewer than 5 source files, create a quick-depth tour regardless of persona — there's not enough to warrant a deep one.
31 
32### 2. Infer the intent
33 
34One message should be enough. Infer persona, depth, and focus silently.
35 
36| User says | Persona | Depth |
37|-----------|---------|-------|
38| "tour for this PR" | pr-reviewer | standard |
39| "why did X break" / "RCA" | rca-investigator | standard |
40| "onboarding" / "new joiner" | new-joiner | standard |
41| "quick tour" / "vibe check" | vibecoder | quick |
42| "architecture" | architect | deep |
43| "security" / "auth review" | security-reviewer | standard |
44| (no qualifier) | new-joiner | standard |
45 
46When intent is ambiguous, default to **new-joiner** persona at **standard** depth — it's the most generally useful.
47 
48### 3. Read actual files
49 
50**Every file path and line number must be verified.** A tour pointing to the wrong line is worse than no tour.
51 
52### 4. Write the tour
53 
54Save to `.tours/<persona>-<focus>.tour`.
55 
56```json
57{
58 "$schema": "https://aka.ms/codetour-schema",
59 "title": "Descriptive Title — Persona / Goal",
60 "description": "Who this is for and what they'll understand after.",
61 "ref": "<current-branch-or-commit>",
62 "steps": []
63}
64```
65 
66### Step types
67 
68| Type | When to use | Example |
69|------|-------------|---------|
70| **Content** | Intro/closing only (max 2) | `{ "title": "Welcome", "description": "..." }` |
71| **Directory** | Orient to a module | `{ "directory": "src/services", "title": "..." }` |
72| **File + line** | The workhorse | `{ "file": "src/auth.ts", "line": 42, "title": "..." }` |
73| **Selection** | Highlight a code block | `{ "file": "...", "selection": {...}, "title": "..." }` |
74| **Pattern** | Regex match (volatile files) | `{ "file": "...", "pattern": "class App", "title": "..." }` |
75| **URI** | Link to PR, issue, doc | `{ "uri": "https://...", "title": "..." }` |
76 
77### Step count
78 
79| Depth | Steps | Use for |
80|-------|-------|---------|
81| Quick | 5-8 | Vibecoder, fast exploration |
82| Standard | 9-13 | Most personas |
83| Deep | 14-18 | Architect, RCA |
84 
85### Writing descriptions — SMIG formula
86 
87- **S — Situation**: What is the reader looking at?
88- **M — Mechanism**: How does this code work?
89- **I — Implication**: Why does this matter for this persona?
90- **G — Gotcha**: What would a smart person get wrong?
91 
92### 5. Validate
93 
94- [ ] Every `file` path relative to repo root (no leading `/` or `./`)
95- [ ] Every `file` confirmed to exist
96- [ ] Every `line` verified by reading the file
97- [ ] First step has `file` or `directory` anchor
98- [ ] At most 2 content-only steps
99- [ ] `nextTour` matches another tour's `title` exactly if set
100 
101## Personas
102 
103| Persona | Goal | Must cover |
104|---------|------|------------|
105| **Vibecoder** | Get the vibe fast | Entry point, main modules. Max 8 steps. |
106| **New joiner** | Structured ramp-up | Directories, setup, business context |
107| **Bug fixer** | Root cause fast | Trigger -> fault points -> tests |
108| **RCA investigator** | Why did it fail | Causality chain, observability anchors |
109| **Feature explainer** | End-to-end | UI -> API -> backend -> storage |
110| **PR reviewer** | Review correctly | Change story, invariants, risky areas |
111| **Architect** | Shape and rationale | Boundaries, tradeoffs, extension points |
112| **Security reviewer** | Trust boundaries | Auth flow, validation, secret handling |
113| **Refactorer** | Safe restructuring | Seams, hidden deps, extraction order |
114| **External contributor** | Contribute safely | Safe areas, conventions, landmines |
115 
116## Narrative Arc
117 
1181. **Orientation** — `file` or `directory` step (never content-only first step — blank in VS Code)
1192. **High-level map** — 1-3 directory steps showing major modules
1203. **Core path** — file/line steps, the heart of the tour
1214. **Closing** — what the reader can now do, suggested follow-ups
122 
123## Anti-Patterns
124 
125| Anti-pattern | Fix |
126|---|---|
127| **File listing** — "this file contains the models" | Tell a story. Each step depends on the previous. |
128| **Generic descriptions** | Name the specific pattern unique to this codebase. |
129| **Line number guessing** | Never write a line you didn't verify by reading. |
130| **Too many steps** for quick depth | Actually cut steps. |
131| **Hallucinated files** | If it doesn't exist, skip the step. |
132| **Recap closing** — "we covered X, Y, Z" | Tell the reader what they can now *do*. |
133| **Content-only first step** | Anchor step 1 to a file or directory. |
134 
135## Cross-References
136 
137- Related: `engineering/codebase-onboarding` — for broader onboarding beyond tours
138- Related: `engineering/pr-review-expert` — for automated PR review workflows
139- CodeTour extension: [microsoft/codetour](https://github.com/microsoft/codetour)
140- Real-world tours: [coder/code-server](https://github.com/coder/code-server/blob/main/.tours/contributing.tour)
141 
View all files on GitHub →

Details

Updated
Aug 30, 2026
License
MIT
Stars on the repo
★ 26,349
Checked
Source
alirezarezvani/claude-skills ↗
Creator
alirezarezvani · 363 listings
View creator

Similar skills

See all →
SkillCreate branded architecture, architecture deltaDiagram designcathrynlavery/diagram-design · by cathrynlaveryCreate branded architecture, architecture delta, IT current-state, flowchart, sequence, state machine, ER/data model, timeline, swimlane, quadrant, radar/spider, polar chart (polar/radial lollipop), loop/flywheel, nested, tree, org chart, layer stack, Venn, pyramid/funnel, treemap and marimekko, heatmap, bar and dumbbell, waterfall, line (slopegraph, ridgeline, streamgraph, bump), Gantt and scatter charts (bubble, beeswarm), high-level, process, medallion, data flow, DP integration, DP security matrix, Sankey, fishbone, Wardley map, kanban, user journey, deployment, dependency graph, UML class, story map, or database schema diagrams as HTML/SVG/PNG, with .drawio, Mermaid, and .excalidraw import, plus lifecycle phase maps, block decomposition trees, and onboarding guidance.★ 43.2k GitHub starsSkillReview a PR against the Pascal architectural rulesReview architecturepascalorg/editor · by pascalorgReview a PR against the Pascal architectural rules — package boundaries (core/viewer/editor/nodes), the registry-driven composition model (def.geometry / def.renderer / def.system), legacy-dispatch regressions, the slots + world-scale-UV convention for new nodes/geometry, hook hygiene (useEditor/useScene/useViewer), and selector performance. Use when the user asks to review a PR, audit a branch, or check that changes respect the codebase's architecture.★ 24.6k GitHub starsSkillCreate and edit draw.io/diagrams.net diagramsDraw.io Architecture StudioAgents365-ai/drawio-skill · by Agents365-aiCreate and edit draw.io/diagrams.net diagrams as editable `.drawio` files. Covers architecture, UML/ERD/sequence, BPMN, network, and swimlane views authored from a description or converted from code, IaC, SQL, and API schemas, plus sync, query, test, review, export, and publish of existing diagrams. Use when the user asks for draw.io/diagrams.net or an editable diagram; prefer Mermaid/PlantUML when diagrams-as-code is enough.★ 9.8k GitHub starsSkillCreate polished dark-themed architecture diagramsArchitecture Diagram SkillCocoon-AI/architecture-diagram-generator · by Cocoon-AICreate polished dark-themed architecture diagrams as self-contained HTML+SVG files. Use when the user asks for system, infrastructure, cloud, security, or network topology diagrams.★ 7.4k GitHub starsSkillThe foundational knowledge distillation pattern for buildingLLM Wiki — Knowledge Distillation PatternAr9av/obsidian-wiki · by Ar9avThe foundational knowledge distillation pattern for building and maintaining an AI-powered Obsidian wiki. Based on Andrej Karpathy's LLM Wiki architecture. Use this skill whenever the user wants to understand the wiki pattern, set up a new knowledge base, or needs guidance on the three-layer architecture (raw sources → wiki → schema). Also use when discussing knowledge management strategy, wiki structure decisions, or how to organize distilled knowledge. This is the "theory" skill — other skills handle specific operations (ingesting, querying, linting).★ 3.5k GitHub starsSkillManage software complexity through deep modulesA Philosophy of Software Design Frameworkwondelai/skills · by wondelaiManage software complexity through deep modules, information hiding, and strategic programming. Use when the user mentions "module design", "API too complex", "shallow class", "complexity budget", "strategic vs tactical", "deep module", "information leakage", "pass-through method", "this code is over-engineered", or "simplify this design". Also trigger when reviewing an interface for simplicity, evaluating whether an abstraction is pulling its weight, deciding whether a comment is worth writing, or choosing between general-purpose and special-purpose approaches. Covers deep vs shallow modules, red flags for complexity, and comments as design documentation. For code quality, see clean-code. For architecture boundaries, see clean-architecture.★ 2.2k GitHub stars

More from alirezarezvani

SkillResume a paused experiment/ar:ar-resume — Resume Experimentalirezarezvani/claude-skills · by alirezarezvaniResume a paused experiment. Checkout the experiment branch, read results history, continue iterating. Use when the user runs /ar:ar-resume or asks to pick up a previously started autoresearch experiment.★ 26.3k GitHub starsSkillShow experiment dashboard with results, active loops/ar:ar-status — Experiment Dashboardalirezarezvani/claude-skills · by alirezarezvaniShow experiment dashboard with results, active loops, and progress. Use when the user runs /ar:ar-status or asks how an autoresearch experiment is going.★ 26.3k GitHub starsSkillStart an autonomous experiment loop with user-selected/ar:loop — Autonomous Experiment Loopalirezarezvani/claude-skills · by alirezarezvaniStart an autonomous experiment loop with user-selected interval (10min, 1h, daily, weekly, monthly). Uses CronCreate for scheduling. Use when the user runs /ar:loop or asks to run an autoresearch experiment continuously on a schedule.★ 26.3k GitHub starsSkillRun a single experiment iteration/ar:run — Single Experiment Iterationalirezarezvani/claude-skills · by alirezarezvaniRun a single experiment iteration. Edit the target file, evaluate, keep or discard. Use when the user runs /ar:run or asks for one manual autoresearch iteration.★ 26.3k GitHub starsSkillSet up a new autoresearch experiment interactively/ar:setup — Create New Experimentalirezarezvani/claude-skills · by alirezarezvaniSet up a new autoresearch experiment interactively. Collects domain, target file, eval command, metric, direction, and evaluator. Use when the user runs /ar:setup or asks to start optimizing a file with the autoresearch loop.★ 26.3k GitHub starsSkill/cs:boardroom <brief/cs:boardroom — Multi-Role Boardroom Deliberationalirezarezvani/claude-skills · by alirezarezvani/cs:boardroom <brief> — 6-phase multi-role deliberation across the C-suite with Phase 2 isolation, critic pre-screen, and synthesis. Outputs a board memo. Use when a decision spans multiple executive domains — e.g. a pricing change touching finance, positioning, and product, or a raise-vs-cut runway call.★ 26.3k GitHub stars