Skip to content
Back to skills

Code Tour

ASecurity

Use when 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. Triggers on \"code-tour\", \"code tour\", \"tour\".

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 19, 2026
ai-agentsgo

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add majinmagros/magros.ai-skills --skill code-tour --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Code Tour?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Code Tour
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majinmagros-code-tour/badge)](https://www.skillsdirectory.com/skills/majinmagros-code-tour)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: code-tour
description: "Use when 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. Triggers on \"code-tour\", \"code tour\", \"tour\"."
metadata:
  origin: ECC
---

# Code Tour

CodeTour `.tour` walkthroughs anchored to real files and lines, living in `.tours/`. Detalhes em `references/`.

## When to Activate

- User asks for a code, onboarding, architecture, PR, or RCA tour
- User says "explain how X works" and wants a reusable artifact
- Ramp-up path for a new engineer or reviewer
- Guided sequence beats a flat summary
- Skip: one-off chat answer, prose docs, implementation, broad onboarding

## Core Principles

1. **Real anchors only** — verify every file, line, selection; never guess
2. **One persona, one story** — orientation → path → gotcha → next move
3. **`ref` must contain the files** — PR tours point at the PR branch, else omit
4. **SMIG descriptions** — Situation, Mechanism, Implication, Gotcha
5. **Only `.tour` JSON** — never modify source code

## Example

```json
{ "file": "src/auth/middleware.ts", "line": 42, "title": "Auth Gate",
  "description": "Every protected request passes here first." }
```

## References

- `references/workflow.md` — discover, personas, anchors, write, validate, `ref`
- `references/step-types.md` — content, directory, file+line, selection, pattern, URI
- `references/writing.md` — SMIG, narrative arc, full example, anti-patterns, practices

## Checklist

- [ ] Persona + depth picked from request shape
- [ ] Every path exists, every line/selection valid at chosen `ref`
- [ ] First step anchored (never content-only)
- [ ] Story arc holds, descriptions name concrete code
- [ ] Written to `.tours/<persona>-<focus>.tour`

Files in this skill

  • SKILL.md1.9 KB
  • references/step-types.md1.2 KB
  • references/workflow.md3 KB
  • references/writing.md2.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…