name: eaa-documentation-writer description: Use when writing module specs, API contracts, ADRs, or feature specs. Follows 6 C's quality framework. Trigger with technical documentation requests for modules or architecture. version: 1.0.0 license: Apache-2.0 compatibility: Works with any codebase. Outputs to standardized documentation directories (/docs/module-specs/, /docs/api-contracts/, /docs/adrs/). Requires AI Maestro installed. metadata: author: Emasoft triggers: "Create technical documentation for a module, Write API contract documentation, Document architecture decisions (ADR), Create feature specifications" context: fork user-invocable: false workflow-instruction: "Step 7" procedure: "proc-create-design"
Documentation Writer Skill
Overview
Technical documentation creation skill for the Documentation Writer Agent. This skill provides templates, quality standards, and workflows for producing module specifications, API contracts, architecture decision records (ADRs), and feature specifications.
Prerequisites
- Access to documentation output directories (
/docs/module-specs/,/docs/api-contracts/,/docs/adrs/) - Understanding of the 6 C's quality framework
- 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
- Write core content following quality standards
- Add cross-references to related documents
- Perform quality check against 6 C's
- Commit and report completion
Output
| Artifact | Location | Format | Contains |
|---|---|---|---|
| Module Specification | /docs/module-specs/<module-name>.md |
Markdown | Purpose, interfaces, dependencies, configuration |
| API Contract | /docs/api-contracts/<api-name>.md |
Markdown | Endpoints, request/response schemas, authentication |
| Architecture Decision Record | /docs/adrs/ADR-<NNN>-<title>.md |
Markdown | Context, decision, consequences, alternatives |
| Feature Specification | /docs_dev/requirements/<feature-name>.md |
Markdown | User stories, requirements, acceptance criteria |
| Process Documentation | /docs/workflows/<process-name>.md |
Markdown | Workflow steps, responsibilities, tooling |
Table of Contents
- Document Templates
- Quality Standards
- Writing Workflow
- Operational Guidelines
- Agent Interactions
Quick Reference
Document Types
| Type | Template | Purpose |
|---|---|---|
| Module Specification | templates-reference.md | Technical spec for implementation |
| API Contract | templates-reference.md | Endpoint documentation |
| ADR | templates-reference.md | Architecture decisions |
| Feature Specification | templates-reference.md | User stories and requirements |
Output Locations
| Document Type | Directory |
|---|---|
| Module Specs | /docs/module-specs/ |
| API Contracts | /docs/api-contracts/ |
| ADRs | /docs/adrs/ |
| User Requirements | /docs_dev/requirements/ |
| Process Docs | /docs/workflows/ |
Quality Checklist
Copy this checklist and track your progress:
- Receive and parse documentation assignment
- Gather context from existing code and specifications
- Create document structure using appropriate template
- Write core content following quality standards
- Add cross-references to related documents
- Perform quality check against 6 C's:
- Complete - all aspects covered
- Correct - technically accurate
- Clear - unambiguous language
- Consistent - same terminology throughout
- Current - reflects latest decisions
- Connected - cross-references to related docs
- Commit document to appropriate location
- Report completion to orchestrator
Reference Documents
Templates Reference
For all document templates, see: templates-reference.md
- Module Specification Template
- API Contract Template
- Architecture Decision Record (ADR) Template
- Input Format Examples
Quality Standards
For documentation quality criteria, see: quality-standards.md
- Documentation Quality Criteria
- 1.1 Must Be (6 C's)
- 1.2 Must Include
- 1.3 Must Avoid
- Feature Specification Example
Writing Workflow
For step-by-step procedure, see: 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
For document management, see: operational-guidelines.md
- When to Create New Documents
- When to Update Existing Documents
- Document Organization
- Version Control
- Troubleshooting
Agent Interactions
For agent coordination, see: agent-interactions.md
- Upstream Agents (Receive Input From)
- Downstream Agents (Provide Output To)
- Peer Agents (Bidirectional)
- Handoff Protocol
IRON RULE
This skill is for DOCUMENTATION ONLY. NEVER write source code.
All code examples in documentation are illustrative only.
Examples
Example 1: Write Module Specification
Assignment: Document the auth-service module
1. Read existing auth-service code
2. Use Module Specification template
3. Document:
- Purpose and responsibilities
- Public interfaces
- Dependencies
- Configuration options
4. Quality check: Complete, Correct, Clear, Consistent, Current, Connected
5. Output: /docs/module-specs/auth-service.md
Example 2: Create Architecture Decision Record
Assignment: Document decision to use PostgreSQL
1. Use ADR template
2. Document:
- Context: Database selection needed
- Decision: PostgreSQL chosen
- Consequences: Pros and cons
- Alternatives considered
3. Output: /docs/adrs/ADR-001-database-selection.md
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Missing context | Source code unavailable | Request access from orchestrator |
| Template not found | Template file missing | Use templates-reference.md |
| Quality check failed | 6 C's not met | Revise content, recheck each criterion |
| Cross-reference broken | Linked doc moved/deleted | Update link or remove reference |
| Duplicate ADR number | Numbering conflict | Check existing ADRs, use next available |
Resources
- templates-reference.md - All document templates
- quality-standards.md - Documentation quality criteria
- writing-workflow.md - Step-by-step procedure
- operational-guidelines.md - Document management
- agent-interactions.md - Agent coordination