code-tour
БесплатноЗапускает вложенные скриптыНе проверенBuild ordered, annotated tours of an unfamiliar codebase and keep the anchors from rotting. Use when onboarding an engineer, handing off a service, or…
от borghei★ 1 250 звёзд на GitHubОб этом скилле
Code Tour
A guided path through a codebase, ordered so each stop makes the next one legible, and annotated with why the code is the way it is rather than what it does. The what is already on screen; the why is what takes a new engineer three weeks to reconstruct and what the person who knows it will lose in six months. Tours rot faster than any other documentation because they point at line numbers, so anchoring and validation are half this skill.
When to use this skill
- Onboarding an engineer onto a service where reading order determines whether week one is productive or archaeological
- Handing off ownership of a system before its author changes team or leaves
- Explaining a subsystem ahead of a design review, so reviewers arrive with shared context
- Documenting a surprising design whose rationale lives only in a closed pull request
- Auditing an existing tour that has silently rotted as files moved and functions were renamed
- Re-entering your own code after six months away, which is functionally the same problem as onboarding
Inputs the skill expects
- The repository root, and which directories are vendored or generated
- The audience and their starting knowledge — a backend engineer and a frontend engineer need different first stops
- The one question the tour must leave answered ("how does a request become a row?")
- Time budget, which sets the stop count more than anything else
- The design decisions worth explaining, especially the ones that look wrong at first glance
- An existing tour definition, when validating or updating rather than authoring
Clarify First
Before building the tour, settle the inputs below. When one is missing or vague and would change the result, ask about it; when it wouldn't, use a sensible default and say which one you used.
- The question the tour answers: a tour of "the codebase" has no ordering principle; a tour of "how a request becomes a row" orders itself.
- Audience and their existing knowledge: decides which stops can be skipped and which concepts need a stop of their own.
- Time budget: 30 minutes is 5-7 stops; anything longer gets abandoned midway and never resumed.
- Which decisions are worth explaining: the why-notes are the entire value; without them the tour is a file listing.
Ask about the two or three inputs that matter most for this request, not the whole list. If the user wants a result straight away, produce it and state your assumptions at the top.
Workflows
Workflow 1 — Propose candidate stops from the repository
- Run the analyzer against the repo root, excluding vendored and generated directories.
- Read the ranked candidates. Entry points come first, then config and boundaries, then high-fan-in internals — that ordering is the analyzer's opinion about reading order.
- Cut ruthlessly. Any candidate you cannot write a "why it is this way" note for is a file, not a stop.
- Add stops the analyzer cannot see: the surprising workaround, the module that looks redundant and is not, the abstraction whose absence would be worse.
python3 engineering/code-tour/scripts/tour_propose.py \
--repo . --max-stops 7 --exclude vendor --exclude generated --format text
Fan-in for Python comes from the AST import graph and is reliable. For other languages it is a filename-reference heuristic and will over-count common names — treat those scores as a ranked shortlist to review, not a verdict.
Workflow 2 — Write the tour and audit the notes
- Fill in each stop's
note,question, andgotchain the tour JSON. The note explains why; the question forces the reader to look at the code before moving on. - Anchor every stop to a symbol name, not a line number. Line numbers are recorded for convenience but resolved from the symbol on every validation.
- Run the renderer's audit. It flags notes that only restate what the code does, notes under 20 words, and notes with no causal language.
- Render the document once the why-ratio clears 0.8.
python3 engineering/code-tour/scripts/tour_render.py \
--input engineering/code-tour/assets/sample_tour.json \
--audit-only --min-why-ratio 0.8 --format text
The shipped sample scores 83% — stop 5 fails deliberately, so you can see what a what-only note looks like next to four that explain why.
Workflow 3 — Validate the tour against the current tree
- Run validation before every use of the tour, and in CI on the branch that owns the code.
- Read the statuses:
deletedandmovedare broken,driftedmeans the anchor's body changed and the note may now be wrong,shiftedis cosmetic line movement. - For moved anchors, take the suggested relocations — they come from searching the tree for the anchor name.
- Re-freeze line numbers and fingerprints with
--updateonce you have re-read the drifted notes.
python3 engineering/code-tour/scripts/tour_validate.py \
--tour engineeri
Установить code-tour в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл code-tour?
Build ordered, annotated tours of an unfamiliar codebase and keep the anchors from rotting. Use when onboarding an engineer, handing off a service, or explaining a subsystem before a review.
Как установить скилл code-tour?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл code-tour запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic