Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

Review.Create Code Tour

БесплатноБез исполняемых скриптовНе проверен

Write code_tour.md, a leveled checklist to understand the code, docs, and tests of a dir

gpsaggeseот gpsaggese★ 158 звёзд на GitHub

Об этом скилле

Goal

  • Given a dir, write code_tour.md: a markdown checklist that guides a human through the code, docs, and tests of that dir
  • Split it into exactly three levels:
    • Level 1: "Understand in 15 mins"
    • Level 2: "Understand in 1 hour"
    • Level 3: "Understand in full"
    • Do not add or rename a level. Each level adds items to the levels before it
    • A reader can stop after any level and still know the dir at that depth
  • Give the time of every item, so the reader can plan the work
  • Include examples and tests to run, so the reader sees how the code behaves
  • Include the end-to-end demo in Level 3, from code_demo.md of the dir
    • The skill .claude/skills/review.create_demo/SKILL.md writes this file
    • The tour does not explain the output: it points to the file
  • Take files, kinds, reading times, and code order from the # Review roadmap section of the dir README.md
    • The skill .claude/skills/readme_dir.create/SKILL.md writes this section
    • The checklist does not repeat the map or the file table

Conventions

  • Follow the template .claude/templates/review_create_code_tour.template.md
    • It has no # Map of the Dir: the map is in the README
  • Write the text following .claude/skills/text.rules.md and .claude/skills/markdown.rules.md
    • Use - [ ] for every checkbox, never a bare [ ]
  • In Level 3 items, refer to .claude/skills/coding.rules.md (Python) and .claude/skills/testing.rules.md (tests)
  • Take how to run the tests from the ## Testing subsection of the roadmap

Workflow

Get the Input

  • Take the dir from the arguments, or the current dir if none is given
    • If the dir does not exist, report the error and stop
  • Compute the dir path from the repo root:
    > git rev-parse --show-toplevel
    
  • Write the output as code_tour.md in the dir. The name is fixed: it does not follow ## Generated File Naming of .claude/skills/skill.rules.md
    • If the file exists, read it, then overwrite it. Keep the ticked items that are still in the new checklist
  • Take the dir README.md
    • If it is missing or has no # Review roadmap section, report the error and stop. Tell the user to run .claude/skills/readme_dir.create/SKILL.md on the dir first
  • Take the dir code_demo.md
    • If it is missing, report the error and stop. Tell the user to run .claude/skills/review.create_demo/SKILL.md on the dir first

Read the Roadmap

  • From the # Review roadmap section of <DIR>/README.md, take:
    • The entry points, in run order
    • The layers, bottom first, and the import-graph cycles
    • The test command, for the dev env and for Docker
    • The reading speeds, in lines per min
    • The "Skipped" line and the other notes on the table
  • From the table, take each file's kind, lines, Mins, Changed flag, doc, and test
    • The code rows are in bottom-up import order
    • A raw export has no time, so give it no read item
    • A Level 3 item may list the header of a raw export
  • Check that the roadmap is current:
    > git ls-files --cached --others --exclude-standard <DIR>
    > wc -l <FILES>
    
    • If a file is missing from the table, or a Lines value differs, report it and stop. Tell the user to run .claude/skills/readme_dir.create/SKILL.md on the dir again
  • Mark files with uncommitted changes, since the Changed flag goes stale first:
    > git status --short <DIR>
    

Set the Reading Time

  • Use the skim speed for Skim items, and the speed of the file's kind for Read items
  • Compute an item's minutes as ceil(lines / speed), with 1 as the minimum
  • Estimate the other items by hand, in whole mins:
    • Run --help or a dry run: 2
    • Run pytest on one test file: 1
    • Run pytest on the whole dir: 2, or the measured time rounded up
    • Run a command that needs the internet, an LLM, or a browser: 5 to 30, and say what it needs
    • Check a claim of the docs against the code: 5
    • Run the coverage: 5
    • Check a file against a rules file: 2 per file
  • Show each item's time at its start: (<N> mins), or (1 min) for one min
  • Sum each level's item times, and print the sum in the level's Time line
    • For Level 2 and Level 3, also print the sum up to that level
    • Use these fixed titles, and never compute a title from the sums:
      • # Level 1: Understand in 15 Mins
      • # Level 2: Understand in 1 Hour
      • # Level 3: Understand in Full
    • The Time line holds the real sum, so the reader sees any gap with the title

Understand Enough to Write Items

  • For each file, read the docstring or first lines, and its paired doc
  • Write each file's purpose in one short line
    • Take the purpose of entry points and layers from the roadmap
    • If the purpose is unclear, write only the file name and purpose unknown. Do not guess
  • Find the docs with a diagram, e.g., mermaid, PlantUML, C4, Graphviz, or TikZ:
    > grep -rlE '```(mermaid|plantuml|dot|graphv
    
Полный SKILL.md на GitHub

Установить Review.Create Code Tour в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Review.Create Code Tour?

Write code_tour.md, a leveled checklist to understand the code, docs, and tests of a dir

Как установить скилл Review.Create Code Tour?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Review.Create Code Tour запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Review.Create Code Tour с