write-docs
Author or rewrite a page under docs/ — classify its Diátaxis quadrant, plan concept order, draft it against the Vultron documentation style guide, register…
от CERTCC★ 22 звезды на GitHub
Установить write-docs в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Skill: Write Docs
Authors hand-written pages under docs/ — the published Diátaxis quadrants
plus the maintainer-facing docs/developer/ and docs/agents/ trees.
Rules live in ../shared/docs-style-guide.md
(SG-nn rule IDs). Normative anchors: specs/diataxis-requirements.yaml
DF-01 through DF-10.
Out of scope: docs/adr/ (use create-architectural-decision-record),
generated trees (docs/reference/code/, docs/reference/case_states/),
notes/, and specs/.
Interface
| Parameter | Description |
|---|---|
topic |
What the page must cover. Required. |
quadrant |
tutorial, howto, reference, or explanation. Inferred if omitted. |
target |
Existing page to rewrite. Omit to create a new page. |
mode |
pr (default when invoked conversationally) or inline (leave changes in the caller's branch) |
Returns: the list of pages written, plus the PR URL in pr mode.
Phase 1 — Load context
Read, in order:
.claude/skills/shared/docs-style-guide.md— the rules.docs/reference/glossary.md— canonical terms and banned aliases (SG-01, SG-02).docs/reference/vultron-taxonomy.md— concept names (SG-03). Skim the Quick Reference table unless the page is about a taxonomy concept.docs/_acronyms/index.md— which acronyms are already registered (SG-08).notes/site-information-architecture.md— the rules above the page: the stakeholder types (§ "Stakeholder type is not CVD role" and § "The stakeholder types"), the 100–500 level ladder (§ "Levels 100–500: a rule, not a label"), and how the nav and routing pages relate (§ "Routing: nav enumerates groups, routing pages carry leaves"). Phases 3 and 6 apply these; do not re-derive them from taste.
Load the DF requirements if not already in context:
PYTHONPATH= uv run spec-dump --topic DF --text.
Do not read exemplar pages wholesale. The style guide's section 6 carries the register; read a specific page only when this page must align closely with it.
Phase 2 — Classify the quadrant
Apply the Diátaxis compass (notes/diataxis-framework.md § "The Diátaxis compass"):
- Action + acquisition → tutorial
- Action + application → how-to
- Cognition + application → reference
- Cognition + acquisition → explanation
The classification decides voice (SG-17 through SG-19), list discipline (SG-31), and which tree the page lands in. Get it right before drafting.
Cross-quadrant requests
DF-01-003 forbids mixing content types on one page. A request like "document the embargo lifecycle" often spans quadrants: an explanation of why embargoes work the way they do, a how-to for negotiating one, and a reference table of EM states.
When the topic spans quadrants, recommend a split and ask for confirmation: name each page, its quadrant, its path, and the cross-links between them. Do not silently write one blended page, and do not ask an open "how should I structure this?".
Phase 3 — Plan concept order
Before writing prose, list the concepts the page must introduce and order them so each depends only on what precedes it (SG-10). Concepts the page will not introduce get a link to their canonical introduction instead (SG-11).
Settle the page's frontmatter here, because the concept list decides it
(SG-40). All four keys are required on every reader-facing page (DF-11-001,
DF-11-018, DF-11-025); a working-record page declares stakeholder_type: [project-contributor] and no level (DF-11-033), page_type (DF-11-036) or
subject (DF-11-026); a fragment declares none of them (DF-11-010):
stakeholder_type: who the page is addressed to — not what it is about, and not who might find it useful. A list of members fromdocs/includes/stakeholder_types.md, or the bare scalarALLwhen it is genuinely every type. This is a stakeholder type, not a CVDRole. A role (Reporter, Vendor, Coordinator, Deployer, …) is a position an actor holds in one case — assumable, inhabitable, temporal — and changes from case to case; a stakeholder type is why the reader is here and does not. No value appears in both vocabularies, so if you have writtenvendororcoordinatoryou have reached for the wrong list: a page about vendors addressed to someone building a tracker is[platform-developer](notes/site-information-architecture.md§ "Stakeholder type is not CVD role").level: the page's prerequisite level (100–500), read off the ladder in the note's § "Levels 100–500" — what the reader must already know, not how advanced the topic feels. A page's level must be at least the level of every page whose concepts it uses unlinked (DF-11-002). If the concept list forces a level higher than the intended reader can meet, the page is doing two jobs: split it, or link out (SG-11) instead of introducing.page_type: the quadrant you classified in Step 1 —tutorial,how-to,explanationor `r
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл write-docs?
Author or rewrite a page under docs/ — classify its Diátaxis quadrant, plan concept order, draft it against the Vultron documentation style guide, register new terms and acronyms, wire mkdocs.yml nav, and validate. Use when asked to write, add, or rewrite documentation, or when check-docs-sync identifies a docs change too large for an inline edit.
Как установить скилл write-docs?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл write-docs запускает скрипты?
Нет, скилл состоит только из инструкций (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…