# Code tour

> Code tour is an open-source agent skill for developer tools. Builds CodeTour .tour files that walk a reader through a codebase with anchored steps. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/smartworldarafath/REA_Skill/tree/main/.agents/skills/code-tour
- **Repository:** https://github.com/smartworldarafath/rea_skill
- **GitHub stars:** 66
- **License:** MIT
- **Skill name:** code-tour
- **Collection:** https://github.com/smartworldarafath/REA_Skill
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

This skill guides an agent to produce CodeTour .tour JSON files, which are step-by-step codebase walkthroughs that open directly at real files and line ranges. The tours are written as a narrative for a specific reader, such as a new engineer, a PR reviewer, or someone investigating a failure, and the persona sets how many steps the tour gets and how deep it goes.

Before writing, the agent is told to explore the repository through its README, entry points, folder layout and relevant config, then confirm every referenced path and line exists. Output goes into a .tours folder and the skill forbids changing source code. It also explains how the ref field decides which git revision CodeTour reads files from, so PR tours point at the PR branch rather than the base branch.

Users need a repository the agent can read and the CodeTour format for the resulting artifact. The skill itself has no scripts; it relies on the agent's file access and git context.

## When your agent uses it

> 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. Use when the user asks for a code tour, onboarding walkthrough, PR tour, or an explanation of how a subsystem works.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/code-tour)
- [License: MIT](https://github.com/smartworldarafath/REA_Skill/tree/HEAD/.agents/skills/code-tour)

## Features

- **Persona-based tour depth:** Maps requests like onboarding, PR review or RCA to a reader type and a suggested step count.
- **Verified file anchors:** Checks that each referenced file, line range and selection exists before the tour is saved.
- **Ref field guidance:** Explains which branch or commit to set so steps on new files still open for the reader.
- **Step type templates:** Provides examples of directory, file, selection, pattern, URI and content steps.
- **Narrative structure:** Organizes tours as a path from orientation through the core execution flow to next steps.

## Good for

- Create an onboarding tour for a new engineer joining a service
- Walk a reviewer through the files changed in a pull request
- Build an architecture tour of one package in a monorepo
- Trace the failure path for a root cause analysis tour
- Explain how a subsystem works as a reusable guided artifact

## Install

### Claude Code

This skill ships in the `rea-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafath
```

Or copy only this skill to `~/.claude/skills/code-tour`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/code-tour &&
cp -R "$tmp/.agents/skills/code-tour" ~/.claude/skills/code-tour &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/code-tour` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/code-tour` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/code-tour &&
cp -R "$tmp/.agents/skills/code-tour" ~/.agents/skills/code-tour &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/code-tour` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/code-tour` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/code-tour &&
cp -R "$tmp/.agents/skills/code-tour" ~/.cursor/skills/code-tour &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/code-tour` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/code-tour
```

Or copy the folder to `~/.gemini/skills/code-tour` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/code-tour`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/code-tour &&
cp -R "$tmp/.agents/skills/code-tour" ~/.copilot/skills/code-tour &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/code-tour` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git
```

Then copy `REA_Skill/.agents/skills/code-tour` into your agent's skills folder as `code-tour`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill produce?

It produces CodeTour .tour JSON files stored in a .tours folder, and it is instructed not to modify source code.

### How does Code tour decide how long a tour should be?

It infers a persona from the request, such as new-joiner or pr-reviewer, and each persona has a suggested step range.

### Why would a step fail to open in a PR tour?

If the ref points at the base branch, files added by the PR do not exist there, so the ref should be the PR branch.

### Does the skill need any scripts or extra tools?

The skill lists no scripts and does not set allowed tools; it works through the agent's repository access.

### How do I install Code tour in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/code-tour to use it in all your projects, or to .claude/skills/code-tour in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.

### Does Code tour run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Code tour?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Code tour?

The closest alternatives to Code tour are Code tour, How, Codebase onboarding, Comment code generate a tutorial and Trace architecture.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Code tour](https://ai-powered.com/skills/code-tour): Code tour is an open-source agent skill for developer tools.
- [How](https://ai-powered.com/skills/how): How is an open-source agent skill for developer tools.
- [Codebase onboarding](https://ai-powered.com/skills/codebase-onboarding): Codebase onboarding is an open-source agent skill for developer tools.
- [Comment code generate a tutorial](https://ai-powered.com/skills/comment-code-generate-a-tutorial): Comment code generate a tutorial is an open-source agent skill for developer tools.
- [Trace architecture](https://ai-powered.com/skills/trace-architecture): Trace architecture is an open-source agent skill for developer tools.
- [Wiki onboarding](https://ai-powered.com/skills/wiki-onboarding): Wiki onboarding is an open-source agent skill for knowledge and memory.
- [TDD](https://ai-powered.com/skills/tdd): TDD is an open-source agent skill for developer tools.
- [Acquire codebase knowledge](https://ai-powered.com/skills/acquire-codebase-knowledge): Acquire codebase knowledge is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/code-tour-smartworldarafath
