docs-review
Grade documentation pages against the docs-quality rule set on demand, in any directory and any markup format (Markdown, MDX, reStructuredText, MyST…
от ocx-sh★ 20 звёзд на GitHub
Установить docs-review в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
docs-review
The docs-quality rule loads when an agent edits a page. This skill is the
explicit trigger: grade pages nobody is editing, pages in unusual places, and
pages in a format the scripts only partly read.
Stop condition
Stop when every target page has a verdict: each finding as
path:line: DOC-XXX-nn: message, or clean. Mark any finding no script
produced unverified: reading heuristic. Report; never fix unless asked.
1. Pick the targets
- Named paths or directories: use them as given, whatever their location.
- Nothing named: the branch diff,
git diff --name-only --diff-filter=d --merge-base origin/HEAD -- '*.md' '*.mdx' '*.rst' '*.adoc' '*.asciidoc'. - Drop agent config (
CLAUDE.md,AGENTS.md,SKILL.md,.claude/,.agents/), vendored copies and build output. The rule excludes them too.
2. Load the rule
Read the installed docs-quality rule index, then only the depth files its
routing table names for the target page types. Find it with
find . -path '*docs-quality-reference*' -name 'prose.py' -not -path '*/node_modules/*'.
The hit's directory is the checks/ directory of the docs-quality-reference
skill the rule requires. No hit means the rule is not
installed: say grim add ghcr.io/ocx-sh/lore/docs-quality and stop.
3. Run the checks by format
CHECKS below is that checks/ directory. Every script takes explicit paths,
so pass the targets rather than --root.
| Format | Scripted | Read by hand |
|---|---|---|
.md, .mdx |
the whole gate, in the rule's order | rows the scripts mark heuristic |
.rst, MyST, .adoc |
doc_declaration.py |
everything else, or convert first |
Markdown and MDX:
python3 "$CHECKS/doc_declaration.py" PAGE...
python3 "$CHECKS/prose.py" PAGE...
python3 "$CHECKS/page_type.py" PAGE...
python3 "$CHECKS/landing_check.py" PAGE...
Add doc_examples.py, nav_depth.py and links_raw.py when the review covers
a whole docs tree rather than single pages. Their inputs are a tree.
reStructuredText and AsciiDoc: run doc_declaration.py on the source. The
prose and page-type scripts parse Markdown only. When pandoc is on the PATH,
convert each page into a scratch directory and run them on the copy:
pandoc -f rst -t gfm PAGE.rst -o "$SCRATCH/PAGE.md" # asciidoc: asciidoctor -b docbook | pandoc -f docbook
Line numbers from a converted copy point at the copy. Map each finding back to the source line by its quoted text before reporting it. No converter means the non-negotiables are read by hand and every such finding is marked unverified.
4. Report
One line per finding, grouped by page, ordered by the rule's non-negotiable number. End with a count per page. Undeclared pages are listed first, because every type-scoped check skipped them.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл docs-review?
Grade documentation pages against the docs-quality rule set on demand, in any directory and any markup format (Markdown, MDX, reStructuredText, MyST, AsciiDoc). Use when someone asks to review, check, grade, lint or audit a doc page, a README, a changelog, a docs directory or the docs changed on a branch, asks whether a page meets docs-quality, or wants the docs gate run by hand. Not for deciding which pages to write, which is docs-plan, and not for wiring the checks into CI, which is docs-instrument.
Как установить скилл docs-review?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл docs-review запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop 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…
internal-comms
AnthropicA 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…
skill-development
AnthropicThis 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…