Documentation Plan
Purpose
Design a comprehensive documentation architecture that maps content types to audiences, defines onboarding paths, and establishes maintenance schedules. Produces a documentation strategy that scales with the team and codebase.
Inputs
- Project type and scope (library, application, platform, API)
- Target audiences (developers, API consumers, end users, operators)
- Current documentation state (what exists, what's missing, what's stale)
- Team size and growth expectations
Process
Step 1: Identify Documentation Audiences
Map each audience and their needs:
- New developers: Getting started, local setup, architecture overview, "where is X?" answers
- Experienced team members: API reference, design decisions, runbooks, troubleshooting guides
- API consumers: Authentication, endpoint reference, rate limits, SDKs, changelog
- End users: Feature guides, FAQs, tutorials, release notes
- Operators/SREs: Deployment procedures, monitoring runbooks, incident response, infrastructure docs
- For each audience, define their entry point, primary tasks, and information needs
Step 2: Map Documentation Types Needed
Catalog required documentation:
- Getting started: Quick start, prerequisites, installation, "hello world" in under 5 minutes
- API reference: Endpoint docs, type definitions, error codes, authentication
- Architecture overview: System diagram, component responsibilities, data flow, key decisions
- Runbooks: Operational procedures, incident response, common troubleshooting steps
- User guides: Feature walkthroughs, best practices, common patterns
- Tutorials: Step-by-step learning paths, progressive complexity, working examples
Step 3: Define Documentation Structure
Apply the Diataxis framework:
- Tutorials: Learning-oriented — guided lessons that teach through doing
- How-to guides: Task-oriented — steps to achieve a specific goal
- Explanation: Understanding-oriented — background, context, design rationale
- Reference: Information-oriented — accurate, complete technical descriptions
- Map each existing and planned document to its Diataxis category, identify gaps
Step 4: Specify Format and Location
Define where each doc type lives:
- In-repo markdown: Architecture docs, ADRs, contributing guides (versioned with code)
- Generated API docs: Auto-generated from code/types (OpenAPI, TypeDoc, Storybook)
- Wiki/knowledge base: Runbooks, onboarding guides, team processes (frequently updated)
- Inline code docs: JSDoc/TSDoc for public APIs, README per module/package
- Establish naming conventions, directory structure, and linking strategy
Step 5: Plan Developer Onboarding Flow
Design progressive onboarding:
- Day 1: Environment setup, run the app locally, make a trivial change, deploy to dev
- Week 1: Architecture overview, codebase tour, key abstractions, first real task
- Month 1: Deep-dive into owned area, understand cross-cutting concerns, contribute to docs
- Include checkpoints, mentorship touchpoints, and feedback collection
- Create an onboarding checklist that tracks progress
Step 6: Design Documentation Testing
Ensure documentation stays accurate:
- Link checking: Automated broken link detection in CI
- Code sample validation: Test that code examples compile/run (extract and execute in CI)
- Freshness reviews: Flag docs not updated in N months, assign review owners
- Screenshot/diagram validation: Process for updating visual assets when UI changes
- Feedback mechanism: Easy way for readers to report issues ("Was this helpful?" + issue link)
Step 7: Define Maintenance Schedule
Establish ongoing documentation health:
- Review cadence: Quarterly full review, monthly spot-checks on high-traffic docs
- Ownership per section: Every doc section has an owner responsible for accuracy
- Staleness detection: Automated alerts when docs haven't been updated alongside related code changes
- Deprecation process: How to mark docs as outdated, redirect to replacements, eventually remove
- Contribution guidelines: How to write docs, style guide, review process for doc PRs
Output Format
# Documentation Plan: [Project Name]
## Documentation Map
| Doc Type | Audience | Format | Location | Owner | Status |
|----------|----------|--------|----------|-------|--------|
| Getting Started | New devs | Markdown | /docs/getting-started.md | [team] | [exists/needed/stale] |
| API Reference | API consumers | Generated | /docs/api/ | [team] | ... |
| Architecture | All devs | Markdown + diagrams | /docs/architecture/ | [team] | ... |
| Runbooks | Operators | Wiki | [wiki URL] | [team] | ... |
| ... | ... | ... | ... | ... | ... |
## Diataxis Mapping
| Category | Documents | Gap Analysis |
|----------|-----------|--------------|
| Tutorials | [list] | [what's missing] |
| How-to Guides | [list] | [what's missing] |
| Explanation | [list] | [what's missing] |
| Reference | [list] | [what's missing] |
## Onboarding Path
Day 1: [Setup] → [Run app] → [Trivial change] → [Deploy to dev]
↓
Week 1: [Architecture tour] → [Codebase walkthrough] → [First task]
↓
Month 1: [Deep-dive] → [Cross-cutting concerns] → [Doc contribution]
## Maintenance Schedule
| Cadence | Activity | Owner | Automation |
|---------|----------|-------|------------|
| Per PR | Link checking | CI | Automated |
| Monthly | High-traffic doc review | Rotating | Reminder |
| Quarterly | Full doc audit | Tech lead | Staleness report |
## Ownership Matrix
| Section | Primary Owner | Backup | Last Review |
|---------|--------------|--------|-------------|
| Getting Started | [name] | [name] | [date] |
| API Reference | [name] | [name] | [date] |
| ... | ... | ... | ... |
Quality Checks
Evolution Notes
1---2name: documentation-plan3description: Documentation architecture with audience mapping, onboarding paths, and maintenance schedules4---56# Documentation Plan78## Purpose910Design a comprehensive documentation architecture that maps content types to audiences, defines onboarding paths, and establishes maintenance schedules. Produces a documentation strategy that scales with the team and codebase.1112## Inputs1314- Project type and scope (library, application, platform, API)15- Target audiences (developers, API consumers, end users, operators)16- Current documentation state (what exists, what's missing, what's stale)17- Team size and growth expectations1819## Process2021### Step 1: Identify Documentation Audiences2223Map each audience and their needs:24- **New developers**: Getting started, local setup, architecture overview, "where is X?" answers25- **Experienced team members**: API reference, design decisions, runbooks, troubleshooting guides26- **API consumers**: Authentication, endpoint reference, rate limits, SDKs, changelog27- **End users**: Feature guides, FAQs, tutorials, release notes28- **Operators/SREs**: Deployment procedures, monitoring runbooks, incident response, infrastructure docs29- For each audience, define their entry point, primary tasks, and information needs3031### Step 2: Map Documentation Types Needed3233Catalog required documentation:34- **Getting started**: Quick start, prerequisites, installation, "hello world" in under 5 minutes35- **API reference**: Endpoint docs, type definitions, error codes, authentication36- **Architecture overview**: System diagram, component responsibilities, data flow, key decisions37- **Runbooks**: Operational procedures, incident response, common troubleshooting steps38- **User guides**: Feature walkthroughs, best practices, common patterns39- **Tutorials**: Step-by-step learning paths, progressive complexity, working examples4041### Step 3: Define Documentation Structure4243Apply the Diataxis framework:44- **Tutorials**: Learning-oriented — guided lessons that teach through doing45- **How-to guides**: Task-oriented — steps to achieve a specific goal46- **Explanation**: Understanding-oriented — background, context, design rationale47- **Reference**: Information-oriented — accurate, complete technical descriptions48- Map each existing and planned document to its Diataxis category, identify gaps4950### Step 4: Specify Format and Location5152Define where each doc type lives:53- **In-repo markdown**: Architecture docs, ADRs, contributing guides (versioned with code)54- **Generated API docs**: Auto-generated from code/types (OpenAPI, TypeDoc, Storybook)55- **Wiki/knowledge base**: Runbooks, onboarding guides, team processes (frequently updated)56- **Inline code docs**: JSDoc/TSDoc for public APIs, README per module/package57- Establish naming conventions, directory structure, and linking strategy5859### Step 5: Plan Developer Onboarding Flow6061Design progressive onboarding:62- **Day 1**: Environment setup, run the app locally, make a trivial change, deploy to dev63- **Week 1**: Architecture overview, codebase tour, key abstractions, first real task64- **Month 1**: Deep-dive into owned area, understand cross-cutting concerns, contribute to docs65- Include checkpoints, mentorship touchpoints, and feedback collection66- Create an onboarding checklist that tracks progress6768### Step 6: Design Documentation Testing6970Ensure documentation stays accurate:71- **Link checking**: Automated broken link detection in CI72- **Code sample validation**: Test that code examples compile/run (extract and execute in CI)73- **Freshness reviews**: Flag docs not updated in N months, assign review owners74- **Screenshot/diagram validation**: Process for updating visual assets when UI changes75- **Feedback mechanism**: Easy way for readers to report issues ("Was this helpful?" + issue link)7677### Step 7: Define Maintenance Schedule7879Establish ongoing documentation health:80- **Review cadence**: Quarterly full review, monthly spot-checks on high-traffic docs81- **Ownership per section**: Every doc section has an owner responsible for accuracy82- **Staleness detection**: Automated alerts when docs haven't been updated alongside related code changes83- **Deprecation process**: How to mark docs as outdated, redirect to replacements, eventually remove84- **Contribution guidelines**: How to write docs, style guide, review process for doc PRs8586## Output Format8788```markdown89# Documentation Plan: [Project Name]9091## Documentation Map9293| Doc Type | Audience | Format | Location | Owner | Status |94|----------|----------|--------|----------|-------|--------|95| Getting Started | New devs | Markdown | /docs/getting-started.md | [team] | [exists/needed/stale] |96| API Reference | API consumers | Generated | /docs/api/ | [team] | ... |97| Architecture | All devs | Markdown + diagrams | /docs/architecture/ | [team] | ... |98| Runbooks | Operators | Wiki | [wiki URL] | [team] | ... |99| ... | ... | ... | ... | ... | ... |100101## Diataxis Mapping102103| Category | Documents | Gap Analysis |104|----------|-----------|--------------|105| Tutorials | [list] | [what's missing] |106| How-to Guides | [list] | [what's missing] |107| Explanation | [list] | [what's missing] |108| Reference | [list] | [what's missing] |109110## Onboarding Path111112```113Day 1: [Setup] → [Run app] → [Trivial change] → [Deploy to dev]114 ↓115Week 1: [Architecture tour] → [Codebase walkthrough] → [First task]116 ↓117Month 1: [Deep-dive] → [Cross-cutting concerns] → [Doc contribution]118```119120## Maintenance Schedule121122| Cadence | Activity | Owner | Automation |123|---------|----------|-------|------------|124| Per PR | Link checking | CI | Automated |125| Monthly | High-traffic doc review | Rotating | Reminder |126| Quarterly | Full doc audit | Tech lead | Staleness report |127128## Ownership Matrix129130| Section | Primary Owner | Backup | Last Review |131|---------|--------------|--------|-------------|132| Getting Started | [name] | [name] | [date] |133| API Reference | [name] | [name] | [date] |134| ... | ... | ... | ... |135```136137## Quality Checks138139- [ ] All target audiences are identified with their specific documentation needs140- [ ] Documentation types are mapped to the Diataxis framework with gap analysis141- [ ] Format and location are specified for each doc type (in-repo, generated, wiki)142- [ ] Developer onboarding path covers day 1, week 1, and month 1 milestones143- [ ] Documentation testing includes link checking and code sample validation144- [ ] Maintenance schedule defines review cadence and staleness detection145- [ ] Every documentation section has an assigned owner146- [ ] Contribution guidelines exist for writing and reviewing documentation147148## Evolution Notes149<!-- Observations appended after each use -->