| name | document-writing |
| description | How to write and review project documents: the language-agnostic writing standards, the five-document architecture and ownership boundaries, the document-structure model, cross-reference and maintenance rules, and the review checklist the doc-reviewer enforces. Load when authoring or reviewing any PRD, system-design doc, ADR, brief, or CLAUDE.md. |
| compatibility | ["claude-code","github-copilot","opencode","junie-cli"] |
| reads | ["docs/prd.md","docs/system-design.md","docs/ubiquitous-language.md"] |
| metadata | {"version":"1.0","author":"team"} |
This skill is the single home of documentation discipline, serving two consumers from one source. The standard itself — the writing rules, the five-document architecture, the ownership boundaries, and the cross-reference and maintenance rules — lives in documentation-standards.md. Every document-producing agent and skill follows it when authoring; the doc-reviewer enforces it on review, together with the stack-specific checks in review-checks.md — a stack overlay each stack ships beside this skill (the stack-agnostic core source carries none). This file carries the agent obligations and the author's validation checklist. Author and reviewer read the same rulebook.
Agent Guidelines
These rules bind any agent that reads or writes project documentation. They restate the ownership and abstraction boundaries from documentation-standards.md as direct obligations.
Agents must:
- Read PRD requirements before implementing
- Reference system-design.md for types and interfaces
- Check ADRs for design constraints before proposing alternatives
- Never duplicate type definitions across documents
- Never add code or language-specific constructs to PRD
- Never reference internal code in PRD (no class names, function names, or variable names)
- Use behavioral language in PRD ("the system retries the operation" not "
Retry() calls continue")
- When PRD needs to reference implementation details, add a link:
**Design:** See [system-design.md#section](system-design.md#section)
Validation Checklist
This is the author's self-check before merging a documentation change. The doc-reviewer enforces the same bar at review time, with stack-specific additions, from review-checks.md. Before merging, verify:
Structural Checks
Cross-Document Coherence Checks
Abstraction Level Checks (system-design.md)
Structure Within a Document Checks
Per Structure Within a Document:
Writing Standards Checks
Reviewing Documents
The doc-reviewer enforces every standard in documentation-standards.md. The stack-specific review checklist — the prohibited-pattern instantiations for this stack, project-specific coherence checks, the review process, and the autofix protocol — lives in review-checks.md, which extends these checks to the stack's concrete paths and constructs. The reviewer loads both files.