prune-docs
БесплатноБез исполняемых скриптовНе проверенUse only when the user explicitly invokes prune-docs to compare documentation with repository code and directly remove or simplify redundant, conflicting…
от narumiruna★ 19 звёзд на GitHubОб этом скилле
Prune Docs
Reduce documentation maintenance for AI coding agents by keeping information that cannot be reliably reconstructed from code. Run only on explicit invocation, which authorizes in-scope documentation edits without further confirmation. Review the entire repository unless the user narrows the documentation scope. Search the repository for relevant implementation evidence even when the documentation scope is narrower. Edit documentation files only. Do not create commits unless explicitly requested.
Workflow
- Discover documentation files in scope and inspect the working tree for existing user changes.
- Extract independently verifiable claims with their document paths and line numbers. Preserve qualifiers that determine when each claim applies.
- Trace each claim to specific paths and lines in source code, configuration, schemas, or tests.
- Verify actual behavior on the applicable code paths and under the relevant defaults and conditions. Treat code as authoritative for implementation behavior. Require concrete evidence of a semantic match or contradiction rather than relying on similar wording, names, comments, or isolated declarations. Check implementation history when needed to verify that behavior was removed or superseded. Treat an unsuccessful search as insufficient evidence, not proof that a feature is absent.
- Classify each claim using the table below.
- Modify documentation according to the classification. Capture each file's working-tree contents before editing so you can verify and summarize only this run's edits. Preserve existing user edits and report any finding you cannot apply without disturbing them. Prefer deletion to restatement, but preserve the meaning of any unique intent, rationale, trade-offs, and external constraints. Delete a section or file if no meaningful content would remain after pruning. Keep remaining headings, links, and surrounding prose usable without unrelated reformatting.
- Report after checking that the diff contains only intended documentation edits and that each edit has supporting code evidence.
Classifications
| Classification | Criteria | Action |
|---|---|---|
DUPLICATE |
Fully and reliably derivable from code with no unique information | Remove the claim. |
REDUCIBLE |
Contains both reliably derivable details and unique information | Remove only the redundant details. |
IRREDUCIBLE |
Contains necessary information that cannot be reliably derived from code | Keep it. |
OUTDATED |
Verified evidence shows that the claim once applied but no longer applies to the documented version or scope | Delete a wholly outdated document; otherwise delete only the outdated claims. |
CONFLICT |
Contradicts verified implementation behavior and does not meet OUTDATED criteria |
Remove the contradicted claim instead of rewriting it to match code. |
NO_CODE_MATCH |
Insufficient evidence to establish a relationship to code | Keep it and report it as unresolved. |
Distinguish expensive reconstruction from uncertain reconstruction. Do not keep reliably derivable details solely to save exploration time, tokens, or effort.
Output
- Summary: List changed files and counts for every classification in the table, using the labels exactly as written.
- Changes: Show a high-level Git-style diff of this run's edits only.
Label it as a summary, not a patch, and use one fenced
diffblock withdiff --githeaders for repository-relative paths. Group related edits under@@ <scope> @@ <key difference>and use-and+lines to summarize what was removed or simplified and what remains, if anything. Do not show raw patch hunks, hunk line numbers, or unchanged context. Cite the supporting code paths and lines outside the block, including commit IDs when relying on implementation history. If nothing changed, say so instead of showing an empty diff. - Unresolved: List unverified claims and evidence gaps, plus any edits skipped to preserve user changes.
Omit other unchanged claims from the detailed report unless they affect the outcome.
Установить prune-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл prune-docs?
Use only when the user explicitly invokes prune-docs to compare documentation with repository code and directly remove or simplify redundant, conflicting, outdated, or overly detailed implementation claims without changing code.
Как установить скилл prune-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл prune-docs запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic