code-tour
Skill1 starsChanged 7 months agoMITView on GitHub
Generate VS Code CodeTour .tour JSON files with persona-targeted, step-by-step walkthroughs anchored to real file:line locations. Use when the user asks for a code tour, onboarding walkthrough, PR tour, architecture walkthrough, RCA tour, or a reusable guided explanation of how a subsystem works.
27 other projects use a version of this, 8 of them edited.
Adopted by
Most recently taken up by
- Rojios/everything-claude-codeedited, first seen Nov 8, 2026
- pankaj-mahaur/Agent-Daemonedited, first seen Nov 6, 2026
- AgnesAI-Labs/agnet-skills-cntheir own version, first seen Nov 1, 2026
- drvoss/everything-copilot-cliedited, first seen Oct 26, 2026
- github/awesome-copilottheir own version, first seen Oct 25, 2026
- renepf/claude-skillsedited, first seen Oct 25, 2026
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 8
- Fmarzochi/EGC★ 6110% same
- drvoss/everything-copilot-cli★ 4812% same
- woxiangyangzhimao/skills★ 1410% same
- Rojios/everything-claude-code★ 110% same
- SamuelNDCE/claude-super-skill-library★ 110% same
- davidanthonyn/claude-skills★ 010% same
- pankaj-mahaur/Agent-Daemon★ 010% same
- renepf/claude-skills★ 010% same
Wrote their own version · 19
- github/awesome-copilot★ 41ksame name
- Hassaan146/claude-skills★ 18same name
- z-Zihan/Evir★ 11same name
- gongyijie85/dsh-ecc★ 8same name
- zcaceres/skills★ 7same name
- Cogni-AI-OU/cogni-ai-agent-skills★ 4same name
- csiddhant796-blip/claude-skills-collection★ 2same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- AgnesAI-Labs/agnet-skills-cn★ 1same name
- jangabrielsson/flua★ 1same name
9 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository206 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- project-healthSkill
- skill-validatorSkill
- accessibilitySkill
- agent-debugSkill
- agent-evaluateSkill
- ai-governanceSkill
- ai-system-reviewSkill
- api-docs-generateSkill
- api-examplesSkill
- api-mockSkill
- api-test-generateSkill
- api-validateSkill
- architecture-diagramSkill
- ask-mattSkill
- assumption-mapSkill
- boilerplateSkill
- brainstormSkill
- branch-finishSkill
- briefingSkill
- browser-testing-with-devtoolsSkill
- bundle-analyzeSkill
- cache-strategySkill
- canarySkill
- carefulSkill
- cavemanSkill
- changelog-autoSkill
- chaos-testSkill
- ci-setupSkill
- ci-sweepSkill
- cleanprojectSkill
- click-path-auditSkill
- codebase-designSkill
- code-review-checklistSkill
- commitSkill
- completion-verifySkill
- complexity-reduceSkill
- component-librarySkill
- config-cleanupSkill
- config-generateSkill
- conflict-resolveSkill
- container-optimizeSkill
- context-budgetSkill
- context-engineeringSkill
- context-restoreSkill
- context-saveSkill
- continuous-learningSkill
- contributingSkill
- cost-trackSkill
- councilSkill
- create-todosSkill
- cross-modal-reviewSkill
- database-connectSkill
- db-diagramSkill
- ddd-modelSkill
- debug-root-causeSkill
- debug-sessionSkill
- debug-systematicSkill
- decision-logSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 0 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 27 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 44
Every anchor must be real.
- Very specific: line 51
If the file is likely to churn, use a pattern step instead of a fixed line.
- Very specific: line 65
Write to .tours/<persona>-<focus>.tour.
- Very specific: line 69
Before finishing, confirm: every path exists, every line/selection is in range, the first step anchors to a real file or directory (never …
- Very specific: line 109
Early exit: If a .tour file already exists at the target path with the same persona and focus, report its location instead of regenerating.
- Very specific: line 116
Volatile file under active refactor: use a pattern step instead of a line anchor.
- Very specific: line 117
Requested focus has no
.tours/directory yet: create it as part of the write. - Very specific: line 123
Only writes .tour JSON files under .tours/.
“Common” is measured: kept by at least 6 in 10 of the 27 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Tour
Generate CodeTour .tour JSON files: guided, persona-targeted walkthroughs that open directly to real files and line ranges in any editor with the CodeTour extension. Tours live in .tours/ at the repo root.
Usage
/code-tour onboarding for the payments service
/code-tour architecture tour of src/services
/code-tour PR tour for the current branch
/code-tour explain the auth middleware for a new joinerBehavior
Phase 1: Discover
Explore before writing: README, entry points, folder structure, relevant config, and (for PR tours) the changed files via git diff --name-only. Do not draft steps before understanding the shape of the code.
Phase 2: Infer persona and depth
Pick a persona and step count from the request shape:
| Request shape | Persona | Steps |
| onboarding, new joiner | new-joiner | 9-13 |
| quick tour, overview | quick-look | 5-8 |
| architecture | architect | 14-18 |
| tour this PR | pr-reviewer | 7-11 |
| why did this break | rca-investigator | 7-11 |
| security review | security-reviewer | 7-11 |
| explain this feature | feature-explainer | 7-11 |
| debug this path | bug-fixer | 7-11 |
Phase 3: Verify anchors
Every anchor must be real. For each candidate file:line:
[[ -f "path/to/file" ]] && echo exists
wc -l < "path/to/file" # confirm the line number is in rangeIf the file is likely to churn, use a pattern step instead of a fixed line. Never guess a line number.
Phase 4: Choose ref
ref pins the tour to a git branch or commit. When it points anywhere other than what the reader has checked out, CodeTour reads each file from that revision, not from disk — a step on a file that revision lacks fails silently ("could not be opened") while the rest of the tour still renders.
| Tour type | ref |
| PR tour | the PR branch — never the base branch |
| Onboarding / architecture | the reader's branch (often main), or omit |
| Unsure | omit — CodeTour then reads from disk |
Phase 5: Write the tour
Write to .tours/<persona>-<focus>.tour. Structure the narrative as: orientation, module map, core execution path, edge case or gotcha, closing. Each step description should cover situation, mechanism, implication, and the gotcha a careful reader would miss — compact and specific, never generic.
Phase 6: Validate
Before finishing, confirm: every path exists, every line/selection is in range, the first step anchors to a real file or directory (never content-only), and every referenced file exists at the chosen ref.
Examples
Step types:
{ "directory": "src/services", "title": "Service Layer", "description": "Core orchestration logic lives here." }{ "file": "src/auth/middleware.ts", "line": 42, "title": "Auth Gate", "description": "Every protected request passes here first." }{ "file": "src/app.ts", "pattern": "export default class App", "title": "Application Entry" }Full tour:
{
"$schema": "https://aka.ms/codetour-schema",
"title": "Payments Service Tour",
"description": "Request path through the payments service.",
"ref": "main",
"steps": [
{ "directory": "src", "title": "Source Root", "description": "All runtime code starts here." },
{ "file": "src/server.ts", "line": 12, "title": "Entry Point", "description": "The server boots and wires middleware before any route is reached." },
{ "title": "Next Steps", "description": "You can now trace a payment request end to end." }
]
}Token Optimization
Expected range: 800-3,200 tokens (initial), 150-350 tokens (cache hit)
Caching: Caches the repo's entry-point and folder-structure discovery from Phase 1 in .claude/cache/code-tour/<repo-hash>.json for 7 days. Invalidated when package.json (or equivalent manifest) changes, or when the requested focus path falls outside the cached scan.
Early exit: If a .tour file already exists at the target path with the same persona and focus, report its location instead of regenerating.
Patterns used: Grep-before-Read for discovery, git diff scope default for PR tours, caching, early exit.
Edge Cases
- No git repo / no
refcontext: omitrefand note that the tour reads from disk. - Volatile file under active refactor: use a
patternstep instead of a line anchor. - Requested focus has no
.tours/directory yet: create it as part of the write. - PR tour where new files aren't on the base branch: set
refto the PR branch, not the base, or the new-file steps will fail to open. - Repo too large for the requested step count: cut steps rather than pad; scope to the relevant package or module instead of touring everything.
Safety
Only writes .tour JSON files under .tours/; never modifies source code. All anchors are verified against the actual working tree (or the chosen ref) before the file is written — no fabricated line numbers or file paths.
Related
Cross-reference understand for broader architecture analysis before scoping a tour, and explain-like-senior for a one-off explanation when a reusable .tour artifact isn't needed.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
Reviews can't be read right now.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

