From spec-driven
Phase 10 — Create technical documentation, user guides, API references, and maintenance procedures for a deployed application.
How this command is triggered — by the user, by Claude, or both
Slash command
/spec-driven:document Optional document type — "architecture" for technical spec, "guide" for user guide, "api" for API reference, "maintenance" for ops proceduresThe summary Claude sees in its command listing — used to decide when to auto-load this command
# Documentation Phase Invoke the `tech-doc-writer` agent to produce documentation. ## Input - `specs/design-spec.md` — for technical documentation - `specs/prd.md` — for user-facing documentation - `specs/app-sitemap.md` — for user guide structure - Deployed application — for accuracy verification - $ARGUMENTS — optional document type ## Documentation Types | Type | Best for | Primary input | |------|----------|--------------| | Architecture Summary | Engineers, technical stakeholders | `specs/design-spec.md` | | User Guide | End users | `specs/prd.md`, `specs/app-sitemap.md` | | API Re...
Invoke the tech-doc-writer agent to produce documentation.
specs/design-spec.md — for technical documentationspecs/prd.md — for user-facing documentationspecs/app-sitemap.md — for user guide structure| Type | Best for | Primary input |
|---|---|---|
| Architecture Summary | Engineers, technical stakeholders | specs/design-spec.md |
| User Guide | End users | specs/prd.md, specs/app-sitemap.md |
| API Reference | Developers building on your product | Source code |
| Maintenance Procedures | Operators, on-call engineers | specs/implementation-steps.md |
| Onboarding Guide | New team members | All of the above |
"architecture" or no argument with specs/design-spec.md: Technical Architecture Summary"guide": User Guide"api": API Reference"maintenance": Maintenance Procedures"all": Generate all document typesdocs/architecture.md — technical architecture summarydocs/user-guide.md — user guidedocs/api-reference.md — API referencedocs/maintenance.md — maintenance proceduresAfter writing, the tech-doc-writer will verify:
After completing this phase:
/spec-driven:maintain to collect user feedback and plan the next sprint/spec-driven to return to the orchestratornpx claudepluginhub shlomoc/spec-driven --plugin spec-driven/documentGenerates focused documentation for components, functions, APIs, and features. Accepts [target] path with optional --type (inline|external|api|guide) and --style (brief|detailed).
/documentCreates evidence-based DIVIO-compliant documentation (tutorials, how-tos, references, explanations) via orchestrated research, review, and writing. Outputs reviewed Markdown file.
/documentAudits accessibility of Word, Excel, PowerPoint, and PDF documents using the document-accessibility-wizard agent.
/documentGenerates technical documentation from ADVPL/TLPP source code including Protheus.doc headers, full routine docs, and API docs. Supports --type header|full|api and --output options.
/documentGenerates on-demand documentation including API docs, architecture updates, and user guides for uncommitted changes, git diff ranges, directories, or changed files vs main.
/documentGenerates focused documentation for a specified target component, function, or feature. Supports inline/external/API/guide types and brief/detailed styles.