Readme File.Explain Code
БесплатноБез исполняемых скриптовНе проверенDocument a Python file's classes, functions, and relationships in markdown
от gpsaggese★ 158 звёзд на GitHubОб этом скилле
Goal
- Read the Python files passed by the user and write
readme_file.explain_code.<INPUT_REF>.md, documenting their classes, functions, interfaces, and relationships
Workflow
Read the Files
- Read every Python file
<FILE>passed by the user or referenced in the request
Generate the Document
- Write the file in the current directory as
readme_file.explain_code.<INPUT_REF>.md<INPUT_REF>is the name of the source file without extension (e.g.,batch_call_auctionforbatch_call_auction.py)- For several files, use the first one plus
_and_<N>_more
- Say in the output file how it was generated, with this line right after the title:
- Generated by `.claude/skills/readme_file.explain_code/SKILL.md` - Include the five sections below, in this exact order
- Under each section, print one level-2 header (
##) per file read, using the same path used to read it (this disambiguates files with the same basename) - Omit a section, or a file's subsection within it, entirely if there is nothing
to report; never print an empty header or a placeholder bullet like
- - Print the result only to the file, not to the screen
Verify
- Follow the
# Verificationchecklist below before returning the result
File Description
Print a nested bullet list per file: its abstractions and functionalities
Order files by use relationship
- E.g., if file X is imported by Y, then X comes before Y in the list
E.g.,
- `batch_call_auction.py` - In-memory order book for a batch call auction - Queues buy/sell orders, buckets by capability tier - Clears each tier at a uniform price once per round - `passthrough_proxy.py` - LLM provider gateway - Routes a prompt to a registered provider - Times the call, estimates cost, and logs every request/response pair for later query
Class Description
For each file, print one bullet per class, with a description under 20 words
E.g.,
# Class Description ## `research/Noesis/batch_call_auction.py` - `Bid` - Buyer order: (tasks, min tier, max latency, min reliability, max price) - `Ask` - Seller order: (tasks, tier, typical latency/reliability, min price) - `Fill` - One matched buyer/seller trade at a tier's uniform clearing price - `TierClearResult` - Outcome of clearing one tier (price, fills, unfilled quantities) - `OrderBookStore` - Abstract pluggable storage backend for pending bids/asks ## <file.py> ...
Class Interface
For each file, print every class with the class it descends from (or
(dataclass)if it has no explicit base) and a nested bullet per method with its full signature and a description under 20 wordsIf a class defines no custom methods (e.g., a plain dataclass with only an auto-generated constructor), say so instead of listing a signature
E.g.,
# Class Interface ## `research/Noesis/batch_call_auction.py` - `Bid(dataclass)` - `__init__(self, buyer_id: str, n_tasks: int, c_level_min: str, l_max: float, r_min: float, p_max: float) -> None` - Validates and stores one buy order - `Fill(dataclass)` - Plain data holder, no custom methods - `OrderBookStore(abc.ABC)` - `add_bid(self, bid: Bid) -> None` - Queue a bid - `clear(self) -> None` - Abstract, drop every stored bid/ask ## <file.py> ...
Function Interface
For each file, list module-level functions only, i.e., those defined outside any class (methods are covered under Class Interface)
Include underscore-prefixed functions when they hold core logic; skip trivial one-line helpers
One line per function: full signature and a description under 20 words
E.g.,
# Function Interface ## `research/Noesis/batch_call_auction.py` - `_match_orders_in_tier(c_level: str, bids: List[Bid], asks: List[Ask]) -> TierClearResult` - Matches one tier's bids/asks and computes uniform clearing price ## <file.py> ...
Function Relationship
For each function in
# Function Interface, list its callers and callees, scoped to the files readSkip trivial delegations already implied by
# Class Relationships(e.g., a method that only forwards to a stored collaborator)E.g.,
# Function Relationship ## `research/Noesis/batch_call_auction.py` - `_match_orders_in_tier()` - **Called by**: `OrderBook.clear_round()`, once per capability tier - **Calls**: no other functions in this file ## <file.py> ...
Class Relationships
Print relationships among all classes read, grouped under level-2 headers
Typical groups:
## Inheritance,## Composition,## Uses, and## Mirrors(schema correspondence with no code dependency). Include a group only if it applies, and list only classes where the relationship holdsE.g.,
# Class Relationships ## Inheritance
Установить Readme File.Explain Code в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Readme File.Explain Code?
Document a Python file's classes, functions, and relationships in markdown
Как установить скилл Readme File.Explain Code?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Readme File.Explain Code запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic