Loading...
Loading...
Create CodeTour `.tour` files — persona-targeted, step-by-step walkthroughs with real file and line anchors. Use for onboarding tours, architecture walkthroughs, PR tours, RCA tours, and structured "explain how this works" requests.
npx skill4agent add affaan-m/everything-claude-code code-tour.tour.tours/.tour| Instead of code-tour | Use |
|---|---|
| A one-off explanation in chat is enough | answer directly |
The user wants prose docs, not a | |
| The task is implementation or refactoring | do the implementation work |
| The task is broad codebase onboarding without a tour artifact | |
| Request shape | Persona | Suggested depth |
|---|---|---|
| "onboarding", "new joiner" | | 9-13 steps |
| "quick tour", "vibe check" | | 5-8 steps |
| "architecture" | | 14-18 steps |
| "tour this PR" | | 7-11 steps |
| "why did this break" | | 7-11 steps |
| "security review" | | 7-11 steps |
| "explain how this feature works" | | 7-11 steps |
| "debug this path" | | 7-11 steps |
.tour.tours/<persona>-<focus>.tour{ "title": "Next Steps", "description": "You can now trace the request path end to end." }{ "directory": "src/services", "title": "Service Layer", "description": "The core orchestration logic lives here." }{ "file": "src/auth/middleware.ts", "line": 42, "title": "Auth Gate", "description": "Every protected request passes here first." }{
"file": "src/core/pipeline.ts",
"selection": {
"start": { "line": 15, "character": 0 },
"end": { "line": 34, "character": 0 }
},
"title": "Request Pipeline",
"description": "This block wires validation, auth, and downstream execution."
}{ "file": "src/app.ts", "pattern": "export default class App", "title": "Application Entry" }{ "uri": "https://github.com/org/repo/pull/456", "title": "The PR" }{
"$schema": "https://aka.ms/codetour-schema",
"title": "API Service Tour",
"description": "Walkthrough of the request path for the payments service.",
"ref": "main",
"steps": [
{
"directory": "src",
"title": "Source Root",
"description": "All runtime code for the service starts here."
},
{
"file": "src/server.ts",
"line": 12,
"title": "Entry Point",
"description": "The server boots here and wires middleware before any route is reached."
},
{
"file": "src/routes/payments.ts",
"line": 8,
"title": "Payment Routes",
"description": "Every payments request enters through this router before hitting service logic."
},
{
"title": "Next Steps",
"description": "You can now follow any payment request end to end with the main anchors in place."
}
]
}| Anti-pattern | Fix |
|---|---|
| Flat file listing | Tell a story with dependency between steps |
| Generic descriptions | Name the concrete code path or pattern |
| Guessed anchors | Verify every file and line first |
| Too many steps for a quick tour | Cut aggressively |
| First step is content-only | Anchor the first step to a real file or directory |
| Persona mismatch | Write for the actual reader, not a generic engineer |
codebase-onboardingcoding-standardscouncilmicrosoft/codetour