---
title: "Documentation"
description: "Technical docs - READMEs, API docs, architecture diagrams, walkthroughs, PRD updates."
canonical_url: "https://mubaidr.github.io/gem-team/agents/documentation"
---

> Index of every page on this site: [llms.txt](https://mubaidr.github.io/gem-team/llms.txt)

## 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

| Scenario                  | Delegate 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

| Type         | Format                   | Tools                        |
| ------------ | ------------------------ | ---------------------------- |
| API Docs     | OpenAPI 3.0, GraphQL SDL | Code annotations, schema gen |
| Architecture | Mermaid, ADRs            | Mermaid.js, Markdown         |
| Guides       | Markdown/MDC             | Nuxt Content, Vue            |
| READMEs      | Markdown                 | Standard format              |
| PRDs         | YAML/Markdown            | Structured requirements      |

## Input

```yaml
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

```yaml
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`](https://mubaidr.github.io/.apm/agents/gem-documentation-writer.agent.md)

## Related

- [Workflow: Execute](https://mubaidr.github.io/guide/workflow-execute)
- [Resources: Local Development](https://mubaidr.github.io/resources/local-development)

## Sitemap

See the full [sitemap](https://mubaidr.github.io/gem-team/sitemap.md) for all pages.
