~/ai_assets_directory_
Copilot Agent verified · tested by us 38.7k stars · whole github/awesome-copilot repo
code-tour.agent.md

Code Tour Expert

Writes VS Code CodeTour .tour files: guided, step-by-step walkthroughs of a codebase with file references, directory steps and command links, aimed at making onboarding faster for new engineers.

Overview

Code Tour Expert produces the actual .tour JSON files that the CodeTour VS Code extension reads, rather than writing a static README that goes stale the moment the code moves.

How it works

  1. It analyzes the codebase first: entry points, architecture, and the concepts a new developer needs to understand before touching any specific file.
  2. It builds tours from typed steps: content steps for pure explanation, directory steps to highlight project structure, and file/line steps tied to a specific pattern or line number, so a step still points at the right place even after the file is edited.
  3. It supports git-ref versioning per tour (none, current branch, a fixed commit, or a tag), matching how stable the tour content needs to stay against the code changing underneath it.
  4. It can chain tours together with nextTour, and mark one tour as primary, so a new hire gets routed through an ordered onboarding sequence instead of a single flat document.
  5. It recommends running CodeTour Watch or Watcher in CI to detect when a tour's file references drift out of date after a refactor, catching that at PR review instead of leaving a tour silently broken.

Examples

"Create an onboarding tour that walks a new engineer through how a
request flows from the API route to the database."

Installation

You need VS Code with the GitHub Copilot extension. Install the CodeTour extension too if you want to actually play back the generated tours.

  1. Create the agents folder and download the file into your repo:
    mkdir -p .github/agents
    curl -o .github/agents/code-tour.agent.md \
      https://raw.githubusercontent.com/github/awesome-copilot/main/agents/code-tour.agent.md
    
  2. Reload VS Code, or open a new Copilot Chat; custom agents under .github/agents/ are picked up automatically.
  3. Pick this agent from the mode picker in Copilot Chat and ask it to build an onboarding tour to confirm it generates a .tour file.

Related assets