Skip to content
Skillpedia
Documentation29k Β· #9548

code-tour

What it does

This skill writes CodeTour files that guide a reader through how a codebase works, with stops at real code locations. It is for developers who onboard new team members, review pull requests or learn an unfamiliar project.

When to use it

  • βœ“When a new team member needs a guided walkthrough of your codebase.
  • βœ“When you want a walkthrough of a pull request or of how a feature works.
  • βœ“When you need to explain an architecture with links to specific files.

Skill link

https://github.com/alirezarezvani/claude-skills/blob/main/engineering/code-tour/skills/code-tour/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/alirezarezvani/claude-skills/blob/main/engineering/code-tour/skills/code-tour/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œMake a code tour for a new backend developer that explains how our checkout flow works.”

5 new skills a week. 1 minute to read.

How it works

The agent explores the repository, works out the audience and depth, and writes steps that point to real files and line numbers. It checks that each location exists and saves the tour as a file the VS Code CodeTour extension can read.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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
FAQ

What tool is needed to view the tour?

The VS Code CodeTour extension opens the tour files.

Will it change my source code?

No. It only creates tour files and does not modify code.

Where are the tour files saved?

They are saved in a tours folder inside the repository.

Details

Original description by the author

Use when asked for a CodeTour .tour file or a step-by-step code walkthrough (onboarding, architecture, PR review, how X works). Writes persona-targeted steps that link to real files and line numbers, checked to exist.

repo: alirezarezvani/claude-skills

Popularity

GitHub stars
29k
Ranking position
#9548
License
MIT
Updated
11/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills