| name | amaa-documentation-writing |
| description | Use when writing module specs, API contracts, ADRs, or feature docs. Trigger with documentation writing or spec creation request. Loaded by ai-maestro-architect-agent-main-agent |
| context | fork |
| agent | ai-maestro-architect-agent-main-agent |
| user-invocable | false |
Documentation Writer Skill
Overview
Technical documentation creation for module specs, API contracts, ADRs, and feature specs. DOCUMENTATION ONLY -- never write source code.
Checklist
Copy this checklist and track your progress:
Prerequisites
- Access to output directories (
/docs/module-specs/, /docs/api-contracts/, /docs/adrs/)
- Read access to source code for reference
Instructions
- Receive and parse documentation assignment
- Gather context from existing code and specifications
- Create document structure using appropriate template from templates-reference.md
- Write core content following quality-standards.md
- Add cross-references to related documents
- Perform quality check against 6 C's (Complete, Correct, Clear, Consistent, Current, Connected)
- Commit document and report completion
Reference Documents
| Document | Content |
|---|
| templates-reference.md | Module Specification Template, Purpose, Responsibilities, Public Interface, Error Handling, Examples, Input Format Examples |
| quality-standards.md | Documentation Quality Criteria, Feature Specification Example, Executive Summary, User Stories, Functional Requirements, Non-Functional Requirements, Data Model |
| writing-workflow.md | Step 1: Receive and Parse Assignment, Step 2: Gather Context, Step 3: Create Document Structure, Step 4: Write Core Content, Step 5: Add Cross-References, Step 6: Quality Check, Step 7: Commit and Report |
| operational-guidelines.md | When to Create New Documents, When to Update Existing Documents, Document Organization, Version Control, Troubleshooting |
| agent-interactions.md | Upstream Agents (Receive Input From), Downstream Agents (Provide Output To), Peer Agents (Bidirectional), Handoff Protocol |
| op-write-module-spec.md | Purpose, When to Use, Inputs, Procedure, Usage Examples, Error Handling |
Examples
input: "Document the auth-service module"
output: /docs/module-specs/auth-service.md (purpose, interfaces, dependencies, 6 C's verified)
input: "Write an ADR for switching from REST to GraphQL"
output: /docs/adrs/ADR-042-graphql-migration.md (context, decision, consequences)
input: "Create API contract for /api/users endpoint"
output: /docs/api-contracts/users-api.md (endpoints, request/response schemas, error codes)
Error Handling
| Error | Solution |
|---|
| Missing context | Request source access from orchestrator |
| Template not found | Use templates-reference.md |
| Quality check failed | Revise content, recheck each 6 C's criterion |
| Cross-reference broken | Update link or remove reference |
Output
| Artifact | Location |
|---|
| Module Specification | /docs/module-specs/<module-name>.md |
| API Contract | /docs/api-contracts/<api-name>.md |
| ADR | /docs/adrs/ADR-<NNN>-<title>.md |
| Feature Specification | /docs_dev/requirements/<feature-name>.md |
Resources
See Reference Documents table above for all reference files and their contents.
- amaa-documentation-writing-ops - operations and troubleshooting quick-reference companion to this skill (loaded on demand for runtime ops/debugging).