Back to Skills

docs-write

verified

Project documentation structure and templates — READMEs, API docs, guides, and CLI references. Use when creating documentation, structuring a docs/ directory, writing READMEs, or when "documentation", "README", "API docs", "docs structure", or "guides" are mentioned. Pair with styleguide for writing craft; apply voice as a review pass.

View on GitHub

Marketplace

outfitter-internal

outfitter-dev/agents-internal

Plugin

outfitter-dev

Repository

outfitter-dev/agents-internal

outfitter-dev/skills/docs-write/SKILL.md

Last Verified

January 25, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/outfitter-dev/agents-internal/blob/main/outfitter-dev/skills/docs-write/SKILL.md -a claude-code --skill docs-write

Installation paths:

Claude
.claude/skills/docs-write/
Powered by add-skill CLI

Instructions

# Documentation Standards

Structure and templates for project documentation — the human-facing docs that help developers understand and use your project.

This skill covers *what* to include and *where* it goes. For *how* to write it:
- `styleguide` — Sentence rhythm, metaphors, structural moves
- `voice` — Philosophical foundation (apply as review pass)

For agent-specific documentation (CLAUDE.md, AGENTS.md), see `agent-docs`.

## Documentation Hierarchy

Documentation is prioritized in this order:

1. **Types** — Self-documenting code through TypeScript types
2. **Inline comments** — TSDoc/JSDoc for non-obvious decisions
3. **`docs/`** — Broader architectural and reference material

All three levels matter. Types express intent through code, comments explain why, and docs provide context.

## Project Directory Structure

Standardized directory layout for documentation across repositories.

### Root-Level Files

| File | Purpose |
|------|---------|
| `README.md` | Entry point for humans — quick start, links to docs |
| `CONTRIBUTING.md` | Contribution guidelines (if applicable) |
| `CHANGELOG.md` | Version history (auto-generated preferred) |

### Standard Directories

```
project/
└── docs/
    ├── architecture/        # System design, ADRs
    ├── api/                 # API reference (if applicable)
    ├── cli/                 # CLI command reference
    ├── guides/              # How-to guides, tutorials
    └── development/         # Dev setup, workflows
```

### Directory Purpose

| Directory | Content |
|-----------|---------|
| `architecture/` | System design docs, Architecture Decision Records (ADRs), diagrams |
| `api/` | API reference, endpoint documentation, type definitions |
| `cli/` | Command reference, flags, usage examples, exit codes |
| `guides/` | How-to tutorials, walkthroughs, use-case guides |
| `development/` | Contributing setup, local dev, testing, release process |

### Source of Truth Principle

Each type of documentation should have 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
9406 chars