Use when drafting, auditing, polishing, or editing human-facing prose in README.md, docs/content/, or application READMEs: clarity, factual accuracy, natural language, examples, task reference pages, search metadata, and the right level of detail. Not for site navigation, rendering, or publishing alone (docs-publishing), or internal agent instructions (skill-maintenance).
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Docs Writing?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/sneivandt-docs-writing)
---
name: docs-writing
description: >
Use when drafting, auditing, polishing, or editing human-facing prose in
README.md, docs/content/, or application READMEs: clarity, factual accuracy,
natural language, examples, task reference pages, search metadata, and the
right level of detail. Not for site navigation, rendering, or publishing alone
(docs-publishing), or internal agent instructions (skill-maintenance).
---
# Documentation Writing
[Writing documentation](../../../docs/content/development/writing-documentation.md)
owns prose, example, findability, and task-page conventions; use
[docs-publishing](../docs-publishing/SKILL.md) for site organization, visual
rendering, or publishing.
## Section audiences
Match framing, depth, and voice to the owning section:
- **Guides (`docs/content/guides/`):** Primarily a **curious external reader**
exploring how this personal setup works, borrowing ideas or configs, or
cautiously trying or forking it (the author/future-self is secondary). Open
with what the area does and why it is structured that way, link real tracked
files readers can inspect or adapt, keep safety/review/backup steps concrete
next to commands, and avoid assuming an existing install or leaving personal
historical migration notes in the main flow.
- **Reference (`docs/content/reference/`):** An **audience-neutral behavioral
contract** for anyone operating, scripting, or inspecting the CLI (author,
adopter, or coding agent). Stay lookup-first and exact: flags, selectors,
schemas, precedence, conflict/removal rules, non-goals, and source links,
without tutorial preamble or personal narration.
- **Development (`docs/content/development/`):** **Repository maintainers
(future-self and coding agents)**, written in plain human prose (never
linking `.agents/skills/`). Focus on architecture, invariants, change
checklists, isolated testing, debugging, and CI/release runbooks rather than
generic open-source onboarding.
## Polish and repo-specific criteria
- **Ownership and reading flow:** Keep one owning page per topic (link between
guides and reference rather than duplicating prose). Never link to
`.agents/skills/` from human documentation (checked by `check-doc-site.py`).
Link directly to target pages rather than naming sidebar sections, and keep
high-consequence warnings beside the command rather than behind a link.
Review edited pages both as a standalone direct link (no missing
prerequisites) and in prev/next sequence (no repeated intros).
- **Factual accuracy and transitions:** Verify claims against owning Rust code
and tests rather than stale docs or upstream tool manuals. Review procedures
as state transitions from fresh, already-managed, and partial-failure states,
covering preview side effects (persisted profile/overlay selection, executing
overlay scripts) and what `remove` leaves behind (materialized copies and
conflict limits). Keep `README.md` concise and stable: edit it only when a
fact, managed-area entry, link, or `terminal-screenshot.svg` output has
drifted. Describe the current setup directly without migration narration or
exhaustive default third-party GUI shortcut lists.
- **Task reference pages:** Keep a dedicated 1:1 page for every built-in task
even when small, organized into domain groups in the Reference sidebar. For
pages under
[Task reference](../../../docs/content/reference/task-reference.md), verify
membership and edges in [app/catalog.rs](../../../cli/src/app/catalog.rs)
(and [commands/check.rs](../../../cli/src/app/commands/check.rs) /
[app/validation](../../../cli/src/app/validation/) for check tasks). Keep
these distinctions explicit where relevant: applicability vs runtime
tools/privileges, blocking vs ordering-only/conditional edges, `--with-deps`
expansion, separate `update` vs `remove` graphs, load errors vs post-load
diagnostics, and upstream capabilities exceeding dotfiles' supported subset.
- **Examples and contract fences:** Keep examples small and single-decision;
state whether a snippet is a real tracked excerpt (linked) or a generic
sketch, name owning files and placeholders, and omit private overlay content,
credentials, or raw machine logs. Preserve code-fence languages and `title`
filenames parsed by [docs_contracts.rs](../../../cli/tests/docs_contracts.rs)
and `documented_` APM YAML tests.
- **Prose, outline, and searchability:** Lead with the common path and
observable *why*, and use uniform terminology across guides and reference
pages (always *profile*, not alternating synonyms). Keep key lookup headings
at H2/H3 so the SSR outline (`theme-startup.mts`) includes them, and convert
paragraph-heavy table rows into lists or subsections. Reserve inline code for
literal commands, keys, paths, and output (never inside link labels), and
avoid canned filler (*seamlessly*), em dashes, stacked emphasis, or
repetitive sentence formulas. Keep `title`, H1, filename, and flat URL aligned,
write a unique goal-oriented `description` pairing acronyms with expanded
forms naturally (such as *AUR* and *Arch User Repository*), and mirror real
questions and symptoms in headings for Pagefind discovery.
## Verification
Reuse or extend [cli/tests/docs_contracts.rs](../../../cli/tests/docs_contracts.rs)
(and `documented_` tests for APM YAML or selector inventory) for consequential
config examples or state transitions, and select checks from
[docs/README.md](../../../docs/README.md#checks). Apply the guide's
[acceptance scenarios](../../../docs/content/development/writing-documentation.md#acceptance-scenarios)
when changing authoring guidance.