simplify-docs
БесплатноБез исполняемых скриптовНе проверенReview code comments and markdown docs for noise, misdescriptions, and stale content, then fix them. Use when the user asks to "simplify docs", "clean up…
от tobihagemann★ 428 звёзд на GitHubОб этом скилле
Simplify Docs
Review code comments and markdown documentation for unnecessary content, then fix the issues.
Step 1: Determine the Scope
Determine what to review:
- If a specific diff command was provided (e.g.,
git diff --cached), use that. - If a file list or directory was provided, review those files directly (read the full files, not a diff).
- If neither was provided, determine the appropriate diff command (e.g.,
git diff,git diff --cached,git diff HEAD) based on the current git state. When the branch is an open pull request, resolve its base withgh pr view --json baseRefName --jq '.baseRefName', rungit fetch origin <base-branch>, and diff againstorigin/<base-branch>...HEAD: a local branch of the same name can sit behind the remote, which puts the merge base before an already-merged pull request and pulls merged work into the scope. If there are no git changes, default to a full-tree sweep of source files plus top-level markdown.
State the resolved file list before launching the agents: add --name-only to a diff command, or list the files for a file or directory scope.
Step 2: Launch Two Review Agents in Parallel
Before emitting the Agent calls, mint one tag per agent with head -c 4 /dev/urandom | xxd -p, and build from it two absolute paths in the session scratchpad directory for that agent's prompt: its findings file, named for its review followed by the tag and .md, and its checkout copy, named the same way with -checkout in place of .md. Emit both Agent tool calls below in one assistant message. Each Agent call uses model: "opus" and no name. Wait for every agent to report before continuing. Do not begin the next step on a partial set, and do not relaunch an agent that has not yet reported. Pass the scope from Step 1 to each agent. Every agent's prompt must direct it to omit name on any Agent tool call it makes itself. Every agent's prompt must also direct it to treat the shared working tree and its git index as read-only and to reach its findings by reading and reasoning; fixes happen in Step 3. Every agent's prompt must also direct it to search the repository with a tool that skips gitignored files, such as git grep --untracked or the Grep tool, and to open or search a gitignored path only when its prompt or a file its prompt directs it to read names it, or when a dependency's installed source is needed to verify a claim, never one holding local configuration or credentials. For an empirical check that verifies a finding, the agent works in a copy of the checkout created at the copy path its prompt names. Refer to that copy by absolute path in every command and join chained steps with &&, so a failed step cannot leave the rest running in the shared checkout. Give that copy its own dependency install rather than reaching the shared tree's install by any route. When its own install is not possible, the check is left unrun and reported as such. Every server the agent starts, such as a daemon, a terminal multiplexer, or a database, runs on an address picked for this check alone, such as a socket path, socket name, or port, and confirmed free before the server starts. Every command that reaches that server, its shutdown included, names that address explicitly rather than leaving it to a default or an environment variable, and the agent stops the server before deleting the copy or anything else its address depends on. Before reporting, the agent deletes that copy, its dependency install included, as a command of its own, and confirms the path no longer exists. A copy it could not delete is named by path in its report. HEAD stays where it is: read other refs with git show <ref>:<path> rather than git checkout or git switch. Direct each agent to write its full findings to the findings path its prompt names, and to return that path with its report, so a compaction before Step 3 leaves the findings recoverable.
Confine the agent's prompt to what to review, plus the conventions and factual properties that bear on it. Pass a property of the existing prose as a fact the agent weighs, such as "the file documents non-obvious third-party behavior". Leave out any statement that tells the agent what verdict to reach about that property, such as "the file is deliberately comment-dense, judge against that established bar", because it binds the agent to accept the very property the review exists to assess.
Both agent prompts must also carry the readability criteria below and the constraint that follows them, applied to the prose that survives that agent's own list:
- Clause stacking — a sentence carrying more than one idea. Split it when the clauses make independently useful points. Count ideas rather than propositions.
- Punctuation chains — a second em dash, colon, or semicolon continuing the thought. Split the sentence. A
- **Term** — descriptionlabel separator is not a chain. - Dense paragraphs — facts running together pas
Установить simplify-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл simplify-docs?
Review code comments and markdown docs for noise, misdescriptions, and stale content, then fix them. Use when the user asks to "simplify docs", "clean up comments", or "fix stale comments".
Как установить скилл simplify-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл simplify-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic