Command Palette

Search for a command to run...

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

Readme Dir.Create

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

Write or update a directory's README.md with structure, files, and executables

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

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

Goal

  • You are an expert technical writer specializing in software documentation.
  • Given a dir <DIR>, write its README.md following .claude/skills/readme_dir.rules.md and the template .claude/templates/readme_dir.template.md
  • Say in the README how it was generated, with the line
    - Generated by `.claude/skills/readme_dir.create/SKILL.md`
    
  • End the README with the section # Review roadmap: the map of the dir, how to run the tests, the reading speeds, and the table of files with the time to read each one
    • The skill .claude/skills/review.create_code_tour/SKILL.md reads this section to write the checklist that guides the review of the dir

Workflow

Examine the Directory

  • List all subdirectories, files (Python/Markdown), and executables

Write the README

  • Put the Generated by ... bullet from the Goal right after the title, before the Summary bullets

  • Structure the README with the sections from .claude/skills/readme_dir.rules.md:

    • Summary, as bold-labeled bullets (Goal, Input, Output, Users)
    • Structure of the Dir
    • Description of Files
    • Description of Executables (if applicable)
    • Output Dir (if the executables write a tree of files in one dir), as a ## section of the executables, before the first executable
    • Description of Workflows (if applicable)
    • Description of Architecture (if applicable)
    • Review roadmap, as the last section, see "Write the Review Roadmap"
  • Follow all formatting rules from .claude/skills/readme_dir.rules.md:

    • Description limits (e.g., <20 words for subdirs, 1-line for files)
    • Command formatting with > prefix and proper code blocks
    • Example ordering (simple to complex)
    • Table format for command references
    • Bullets only, no prose paragraphs, including the intro of each section
    • Many outputs as one sub-bullet per file or per group of files

Check the Commands

  • Check each example command against the current CLI of its executable (e.g., with --help)
  • Remove the args that the tool dropped, and rename the args that the tool renamed
  • Check the commands in the workflows too

Take the Inventory

  • List the tracked and untracked files of the dir, without ignored files:
    > git ls-files --cached --others --exclude-standard <DIR>
    
  • Count the lines of every file with wc -l
  • Mark the files with uncommitted changes:
    > git status --short <DIR>
    
  • Skip these, and list them in the "Skipped" line with the reason:
    • Logs: *.log
    • Scratch files: tmp.*
    • Caches: __pycache__/, .ruff_cache/, .pytest_cache/
    • Symlinks
    • The checklist file code_tour.md
  • Keep a raw export in the table, but give it no time
    • E.g., a CSV over 1000 lines that a person downloads
  • Running the scripts of the dir can create <SCRIPT>.log files next to the scripts
    • Say it in the "Skipped" line, so that the reader ignores these files

Classify the Files

  • Put each file in exactly one kind:
    • doc: README.md, *.README.md, files under docs/, log.md, todos.md
    • test: files under test/ or named test_*.py
    • code: all the other *.py and *.sh files
    • data: prompts, YAML, CSV, JSON, and other inputs read by the code
  • Find the entry points
    • A file is an entry point if it is executable, or has _main and if __name__ == "__main__"
  • Pair each code file with:
    • Its doc, e.g., <FILE>.README.md or the design doc that names it
    • Its test, e.g., test/test_<FILE>.py
  • Find the test helpers, i.e., test files that have no test_ prefix, e.g., test/epq_test_utils.py

Set the Reading Time

  • Use these speeds, in lines per min, and print them just above the table of the files:
    • Skim: 100, for any kind of file
    • Read doc and data: 30
    • Read code: 20
    • Read test: 40
  • Compute the minutes of a file as ceil(lines / speed), with 1 as the minimum
    • The Mins column of the table uses the speed of the file's kind
  • Sum the Mins of the table, and print the total in mins and in hours, rounded to the hour

Order the Code

  • Build the import graph of the files of the dir
    • Read the import lines of each file, and keep the imports that point to another file of the dir
  • Sort the code files bottom up
    • A file with no imports from the dir comes first
    • A file comes after all the files that it imports
    • Break ties with the smaller file first
    • Entry points come last, in the order that the docs give for running them
  • If the graph has a cycle, report it in the line "Cycles in the import graph" and sort the files of the cycle by size

Find the Purpose of Each File

  • For each file, read the docstring or the first lines, and the doc paired with it
  • Write the purpose of a file in one short line
    • If the purpose is not clear from the file, write only the file name and put purpose unknown in the line
    • Do not guess

Write the Revie

Полный SKILL.md на GitHub

Установить Readme Dir.Create в Claude Code и Claude Desktop

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

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

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

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

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

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

FAQ

Что делает скилл Readme Dir.Create?

Write or update a directory's README.md with structure, files, and executables

Как установить скилл Readme Dir.Create?

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

Скилл Readme Dir.Create запускает скрипты?

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

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

Сравнить Readme Dir.Create с