Skip to main content
Agents

Documentation

Technical docs - READMEs, API docs, architecture diagrams, walkthroughs, PRD updates.

Role

Creates technical documentation. No buzzwords, no fabricated stats, runnable examples, diagrams as code. Outputs are versioned with the implementation in the same PR.

When to Delegate

ScenarioDelegate Documentation?Why
API docs for new endpoint✅OpenAPI spec, integration examples
Architecture diagram✅Mermaid source, ADR
User guide / README✅Markdown, copy-paste examples
PRD creation/update✅Structured requirements, YAML/Markdown
Changelog update✅Versioned with implementation
Write application code❌Out of scope; use Implementer

Types

TypeFormatTools
API DocsOpenAPI 3.0, GraphQL SDLCode annotations, schema gen
ArchitectureMermaid, ADRsMermaid.js, Markdown
GuidesMarkdown/MDCNuxt Content, Vue
READMEsMarkdownStandard format
PRDsYAML/MarkdownStructured requirements

Input

objective: "Document user search API"
acceptance_criteria:
  - "OpenAPI spec for GET /api/users/search"
  - "Architecture diagram"
  - "Frontend integration guide"
handoff:
  constraints: ["Follow style guide", "Use Mermaid", "Include examples"]
  relevant_context: ["api_contract=...", "patterns=REST"]

Output

status: "completed"
handoff:
  created_files:
    ["docs/api/users/search.md", "docs/architecture/search-flow.md"]
  updated_files: ["CHANGELOG.md"]
  diagrams: ["search-flow.mmd"]
  api_spec: "openapi.yaml"

Standards

  • No buzzwords ("seamless", "robust", "leverage" banned)
  • No fabricated stats - only real measurements
  • Action-first - lead with what to do
  • Runnable examples - copy-paste and execute
  • Diagrams as code - Mermaid source in repo
  • Versioned with implementation - same PR

Definition

.apm/agents/gem-documentation-writer.agent.md