| name | documentation |
| description | Human-facing documentation (README.md) conventions. Use when writing docs for human readers. For agent-facing docs, use /agent-docs instead. |
| user-invocable | false |
Documentation Conventions
Apply these conventions when writing documentation.
Writing Style by Audience
| Aspect | Human-Facing (README, guides) | Agent-Facing (CLAUDE.md) |
|---|
| Length | Clear over brief | Extremely terse |
| Grammar | Complete sentences | Optional; sacrifice for brevity |
| Tone | Friendly, approachable | Direct, operational |
| Context | Explain "why" not just "what" | No explanations needed |
| Examples | Help understanding | Only if essential for correct usage |
Example Translations
| Human-facing (README) | Agent-facing (CLAUDE.md) |
|---|
| "Run the test suite before submitting a pull request." | pnpm test before PR |
| "This package uses Effect for error handling and concurrency." | Effect for errors, concurrency |
README.md
README is the entry point for humans. Template:
# Directory Name
One-line description of what this contains.
## Overview
2-3 sentences expanding on purpose and scope.
## Structure
Brief explanation of how contents are organized.
README.md Checklist
CLAUDE.md
CLAUDE.md tells agents how to work here—commands, patterns, constraints.
Template:
# [Directory Name]
> See README.md for context.
## Agent Instructions
[Operational details for working in this directory]
Content Examples
| Content type | Example |
|---|
| Operational constraints | pnpm typecheck after .ts edits |
| Pattern preferences | Composition over inheritance |
| Tool-specific commands | nx affected not nx run-many |
| Warnings | Don't modify dist/ |
CLAUDE.md Checklist
Document Frontmatter
Required for guides and specs:
---
status: active
description: When to consult this document and what guidance it provides.
---
Status Values
| Status | Reliability | Usage |
|---|
placeholder | Low | Do not rely on |
draft | Medium | Use directionally; subject to change |
active | High | Use as authoritative source |
deprecated | N/A | Seek superseding documents |
Frontmatter Checklist
Document Flow
| Principle | Description |
|---|
| Show before tell | Example early grounds abstract rules |
| Concept before exception | Define X before "when not to use X" |
| Progressive disclosure | Simple core first, nuanced details later |
| Inverted pyramid | Key takeaway first, details follow |
Anti-Patterns
Cross-References
When linking to other documents: