code-tour
Use this skill to create CodeTour .tour files — persona-targeted, step-by-step walkthroughs that link to real files and line numbers. Trigger for: "create a tour", "make a code tour", "generate a tour", "onboarding tour", "tour for this PR", "tour for this bug", "RCA tour", "architecture tour", "explain how X works", "vibe check", "PR review tour", "contributor guide", "help someone ramp up", or any request for a structured walkthrough through code. Supports 20 developer personas (new joiner, bug fixer, architect, PR reviewer, vibecoder, security reviewer, and more), all CodeTour step types (f
npx skills add github/awesome-copilot --skill code-tour --agent copilot
Same command for any agent — swap --agent for claude-code, codex, cursor.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
What it does
The skill creates CodeTour JSON tours (.tour) that link to real files and line numbers, tailored to specific developer personas and goals. It uses two bundled scripts: scripts/validate_tour.py to validate tours after writing, and scripts/generate_from_docs.py to generate skeleton tours when generating from README/docs. Tours live in .tours/ and are designed to work with the VS Code CodeTour extension. The skill notes that CodeTour files are the only allowed outputs and that tours should reference real paths, lines, and narrative structure. It also provides reference files (references/codetour-schema.json and references/examples.md) to ensure conformance and practical examples. The trigger phrases include a variety of tour types such as onboarding, PR/tour, architecture, security, and explain-how-X tours. It mentions 20 developer personas (e.g., new joiner, bug fixer, architect, PR reviewer, vibecoder, security reviewer) and supports multiple step types (file/line, selection, pattern, uri, commands, view), plus tour-level fields like ref, isPrimary, and nextTour.
How it works
- You write a tour targeting a persona and goal; the tour is saved under
.tours/as a JSON file following the CodeTour schema. - Two scripts reside in
scripts/:validate_tour.pyvalidates the tour JSON, existence of files/directories, line bounds, pattern matches, cross-referencednextTour, and narrative arc; it is run with the commandpython ~/.agents/skills/code-tour/scripts/validate_tour.py .tours/<name>.tour --repo-root .. - If generating from docs, you first run
generate_from_docs.pyto extract a skeleton:python ~/.agents/skills/code-tour/scripts/generate_from_docs.py --persona new-joiner --output .tours/skeleton.tour, then fill it in. - The skill relies on two reference files:
references/codetour-schema.json(the schema) andreferences/examples.md(production tour examples) to guide field usage and narrative structure. - It explicitly restricts output to
.tourJSON files only and advises verifying file existence and line positions for each planned step.
When to use it
Use this skill when you need a persona-targeted, narrative walkthrough of a codebase that points to real files and line numbers, such as onboarding a new joiner, reviewing a PR, conducting a security tour, architecture walkthrough, or an RCA tour. Trigger phrases include: "create a tour", "make a code tour", "generate a tour", "onboarding tour", "tour for this PR", "tour for this bug", "RCA tour", "architecture tour", "explain how X works", "vibe check", "PR review tour", "contributor guide", "help someone ramp up".
What it can touch
The skill relies on tools and scripts located under scripts/ and references the repository structure to assemble valid tour steps with fields defined in references/codetour-schema.json. It also uses .tours/ as the destination for generated tours. Steps can reference files, directories, code selections, patterns, URIs, and VS Code views, and tours may set fields like ref, isPrimary, and nextTour as part of the tour configuration.
Caveats
Tours must be JSON conforming to the codetour schema; every path/line must correspond to real files in the repository. The output is restricted to .tour JSON files. Use of stepMarker is optional and only relevant if the user asks, as it requires editing source files. The description notes that raw content and broad claims are avoided; outcomes are limited to the behavior stated (validation, skeleton generation, and generation of narrative tours).
# Code Tour Skill You are creating a **CodeTour** — a persona-targeted, step-by-step walkthrough of a codebase that links directly to files and line numbers. CodeTour files live in `.tours/` and work with the [VS Code CodeTour extension](https://github.com/microsoft/codetour). Two scripts are bundled in `scripts/`: - **`scripts/validate_tour.py`** — run after writing any tour. Checks JSON validity, file/directory existence, line numbers within bounds, pattern matches, nextTour cross-references, and narrative arc. Run it: `python ~/.agents/skills/code-tour/scripts/validate_tour.py .tours/<name>.tour --repo-root .` - **`scripts/generate_from_docs.py`** — when the user asks to generate from README/docs, run this first to extract a skeleton, then fill it in. Run it: `python ~/.agents/skills/code-tour/scripts/generate_from_docs.py --persona new-joiner --output .tours/skeleton.tour` Two reference files are bundled: - **`references/codetour-schema.json`** — the authoritative JSON schema. Read it to verify any field name or type. Every field you use must conform to it. - **`references/examples.md`** — 8 real-world CodeTour tours from production repos with annotated techniques. Read it when
- Real-world .tour files on GitHub
- Step 1: Discover the repo
- Entry points by language/framework
- Repo type variants — adjust focus accordingly
- Large repo strategy
- Step 2: Read the intent — infer everything you can, ask only what you can't
- Intent map
- PR tour recipe
- User-provided customization — always honor these
- Step 3: Read the actual files — no exceptions
- Step 4: Write the tour
- Tour root
- Step types — full reference
- When to use each step type
python skills/code-tour/scripts/generate_from_docs.py \ python ~/.agents/skills/code-tour/scripts/validate_tour.py .tours/<name>.tour --repo-root .
What does the code-tour skill do?
Use this skill to create CodeTour .tour files — persona-targeted, step-by-step walkthroughs that link to real files and line numbers. Trigger for: "create a tour", "make a code tour", "generate a tour", "onboarding tour", "tour for this PR", "tour for this bug", "RCA tour", "architecture tour", "explain how X works", "vibe check", "PR review tour", "contributor guide", "help someone ramp up", or any request for a structured walkthrough through code. Supports 20 developer personas (new joiner, bug fixer, architect, PR reviewer, vibecoder, security reviewer, and more), all CodeTour step types (f
How do I install it?
Run `npx skills add github/awesome-copilot --skill code-tour --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From github/awesome-copilot, a repository with 37,432 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.