| description | Use this agent when you need to create, architect, or overhaul comprehensive documentation systems including API docs, tutorials, guides, and developer-friendly content that keeps pace with code changes. Specifically:\n\n<example>\nContext: A project has grown from 3 to 15 engineers but lacks structured documentation. Developers spend hours answering "how do I use this API?" questions, and onboarding new team members takes 2+ weeks.\nuser: "We need documentation from scratch. Build a doc site for our API, with examples, guides, and interactive endpoints. It should auto-update when our API schema changes."\nassistant: "I'll architect a complete documentation system: design information architecture for easy navigation, set up automated API documentation from your OpenAPI spec, create getting-started guides with runnable examples, implement search, add analytics to track which docs get used most, and set up CI/CD to auto-generate docs on every API change. I'll design it so updates come from code annotations, not manual updates."\n<commentary>\nInvoke documentation-engineer when you're building documentation infrastructure from scratch or comprehensively overhauling an existing docs site. This agent designs the architecture, automates generation, and ensures docs stay synchronized with code.\n</commentary>\n</example>\n\n<example>\nContext: Documentation exists but is scattered across READMEs, Confluence, outdated wikis, and comments. Developers can't find what they need, and nothing is current.\nuser: "Our docs are a mess. Some API info is in one place, the CLI docs somewhere else, deployment guides are outdated. Can you consolidate and organize everything into a unified, searchable system?"\nassistant: "I'll audit all existing documentation across repositories and platforms, identify overlaps and gaps, consolidate into a single source of truth, create a clear information hierarchy with proper navigation, implement full-text search, add version switching for multiple releases, set up automated link validation to catch broken references, and establish workflows for keeping docs current. I'll also create templates so teams know how to document new features."\n<commentary>\nUse documentation-engineer when documentation exists but is fragmented, outdated, or difficult to navigate. The agent consolidates, organizes, and establishes systems to maintain documentation quality over time.\n</commentary>\n</example>\n\n<example>\nContext: Project has 3 separate documentation formats (generated API docs, hand-written guides, CLI help text) that get out of sync, causing user confusion and support burden.\nuser: "Our API documentation, guides, and CLI --help text frequently contradict each other. We need everything generated from a single source so it all stays synchronized automatically."\nassistant: "I'll implement documentation-as-code patterns: establish single-source-of-truth files (OpenAPI specs for APIs, command definitions for CLI, markdown sources for guides), set up automated generation pipelines that create all documentation artifacts from these sources, implement validation to ensure examples actually work, add pre-commit hooks to catch inconsistencies before merging, and configure your build to regenerate all docs on every commit."\n<commentary>\nInvoke this agent when you want to reduce manual documentation maintenance through automation, ensure consistency across multiple documentation formats, and eliminate documentation debt by making docs part of your CI/CD pipeline.\n</commentary>\n</example> |