Documentation Specialist Skill
Quick Start
Software documentation creation, extraction, conversion, and diagramming capabilities.
Capabilities:
- Greenfield - Create documentation from templates (SRS, PRD, OpenAPI, User Manuals, Tutorials, Runbooks)
- Brownfield - Reverse-engineer documentation from code (Spring Boot, FastAPI)
- Audit - Review and improve existing documentation
- Convert - Transform formats (MD → DOCX → PDF)
- Diagram - Generate visuals (Mermaid C4, PlantUML UML)
Example Requests:
Create an SRS for a billing system with PCI-DSS compliance
Document my Spring Boot application at ~/projects/customer-api
Create a user manual for my SaaS product
Write a database failover runbook
Audit my API documentation at docs/api/openapi.yaml
Convert docs/srs.md to Word format
Create a C4 container diagram for my microservices
Execution Flow:
- Classify intent → 2. Load workflow → 3. Execute steps → 4. Generate documentation → 5. Present post-processing options
Intent Classification
| Intent |
Keywords |
Workflow |
| CREATE_NEW |
"create", "generate", "write" + doc type |
greenfield-workflow.md |
| CODE_TO_DOCS |
"document", "extract", path reference |
brownfield-workflow.md |
| AUDIT |
"audit", "review", "check", "improve" |
audit-workflow.md |
| CONVERT |
"convert", "to Word", "to PDF" |
convert-workflow.md |
| DIAGRAM |
"diagram", "C4", "sequence", "ER" |
diagram-workflow.md |
| USER_DOCS |
"user manual", "how-to", "getting started" |
user-docs-workflow.md |
| TUTORIAL |
"tutorial", "API guide", "CLI docs" |
tutorial-workflow.md |
| RUNBOOK |
"runbook", "procedure", "incident" |
runbook-workflow.md |
CRITICAL: Load only the workflow needed for the current intent. Avoid loading multiple workflows.
Document Type → Template
Requirements & Design:
| Type |
Template |
| SRS |
requirements-srs.md |
| PRD |
requirements-prd.md |
| OpenAPI |
api-openapi.yaml |
User Documentation:
| Type |
Template |
| User Manual |
user-manual.md |
| How-To Guide |
howto-guide.md |
| Getting Started |
getting-started.md |
Developer & Operations:
| Type |
Template |
| Developer Tutorial |
developer-tutorial.md |
| Runbook |
runbook.md |
Framework Detection (Brownfield)
| Framework |
Detection |
Mapping |
| Spring Boot |
pom.xml, @SpringBootApplication |
spring-boot-mapping.yaml |
| FastAPI |
requirements.txt, from fastapi import |
fastapi-mapping.yaml |
Process: Glob for detection files → Grep for patterns → Load mapping → Follow brownfield workflow
On-Demand Resources
Load only what is needed for the current task.
Workflows
- Workflow TOC - Navigation index
- greenfield-workflow.md
- brownfield-workflow.md
- audit-workflow.md
- convert-workflow.md
- diagram-workflow.md
- user-docs-workflow.md
- tutorial-workflow.md
- runbook-workflow.md
Reference Guides
- comprehensive-guide.md - Navigation to all 27 reference guides
Examples
- Examples TOC - Navigation to all examples
Skill Integration
| Skill |
Invocation Trigger |
| docx |
Request includes Word format |
| pdf |
Request includes PDF format |
| plantuml |
UML diagrams (ER, sequence, component) |
| mermaid-architect |
C4 diagrams, flowcharts |
Error Handling
| Error |
Response |
| Cannot detect framework |
Ask: "Is this Spring Boot, FastAPI, or another framework?" |
| Missing template |
Use closest match, inform user |
| Skill not available |
Offer markdown-only alternative |
| Ambiguous request |
Ask: "Would you prefer SRS (formal) or PRD (agile)?" |
End of SKILL.md (v3.0-PDA)
1---2name: documentation-specialist3description: This skill should be used when creating professional software documentation (SRS, PRD, OpenAPI, user manuals, tutorials, runbooks) from templates (greenfield) or reverse-engineering documentation from existing code like Spring Boot or FastAPI (brownfield). Also handles documentation audits/reviews, format conversion (Markdown, DOCX, PDF), and diagram generation (C4, Mermaid, PlantUML, ER, sequence). Use when asked to "create documentation", "document my code", "write SRS", "generate PRD", or "documentation specialist".4---5
6# Documentation Specialist Skill
7
8## Quick Start
9
10Software documentation creation, extraction, conversion, and diagramming capabilities.
11
12**Capabilities:**
131. **Greenfield** - Create documentation from templates (SRS, PRD, OpenAPI, User Manuals, Tutorials, Runbooks)
142. **Brownfield** - Reverse-engineer documentation from code (Spring Boot, FastAPI)
153. **Audit** - Review and improve existing documentation
164. **Convert** - Transform formats (MD → DOCX → PDF)
175. **Diagram** - Generate visuals (Mermaid C4, PlantUML UML)
18
19**Example Requests:**
20```
21Create an SRS for a billing system with PCI-DSS compliance
22Document my Spring Boot application at ~/projects/customer-api
23Create a user manual for my SaaS product
24Write a database failover runbook
25Audit my API documentation at docs/api/openapi.yaml
26Convert docs/srs.md to Word format
27Create a C4 container diagram for my microservices
28```
29
30**Execution Flow:**
311. Classify intent → 2. Load workflow → 3. Execute steps → 4. Generate documentation → 5. Present post-processing options
32
33---
34
35## Intent Classification
36
37| Intent | Keywords | Workflow |
38|--------|----------|----------|
39| **CREATE_NEW** | "create", "generate", "write" + doc type | [greenfield-workflow.md](references/workflows/greenfield-workflow.md) |
40| **CODE_TO_DOCS** | "document", "extract", path reference | [brownfield-workflow.md](references/workflows/brownfield-workflow.md) |
41| **AUDIT** | "audit", "review", "check", "improve" | [audit-workflow.md](references/workflows/audit-workflow.md) |
42| **CONVERT** | "convert", "to Word", "to PDF" | [convert-workflow.md](references/workflows/convert-workflow.md) |
43| **DIAGRAM** | "diagram", "C4", "sequence", "ER" | [diagram-workflow.md](references/workflows/diagram-workflow.md) |
44| **USER_DOCS** | "user manual", "how-to", "getting started" | [user-docs-workflow.md](references/workflows/user-docs-workflow.md) |
45| **TUTORIAL** | "tutorial", "API guide", "CLI docs" | [tutorial-workflow.md](references/workflows/tutorial-workflow.md) |
46| **RUNBOOK** | "runbook", "procedure", "incident" | [runbook-workflow.md](references/workflows/runbook-workflow.md) |
47
48**CRITICAL**: Load only the workflow needed for the current intent. Avoid loading multiple workflows.
49
50---
51
52## Document Type → Template
53
54**Requirements & Design:**
55| Type | Template |
56|------|----------|
57| SRS | [requirements-srs.md](references/templates/markdown/requirements-srs.md) |
58| PRD | [requirements-prd.md](references/templates/markdown/requirements-prd.md) |
59| OpenAPI | [api-openapi.yaml](references/templates/markdown/api-openapi.yaml) |
60
61**User Documentation:**
62| Type | Template |
63|------|----------|
64| User Manual | [user-manual.md](references/templates/markdown/user-manual.md) |
65| How-To Guide | [howto-guide.md](references/templates/markdown/howto-guide.md) |
66| Getting Started | [getting-started.md](references/templates/markdown/getting-started.md) |
67
68**Developer & Operations:**
69| Type | Template |
70|------|----------|
71| Developer Tutorial | [developer-tutorial.md](references/templates/markdown/developer-tutorial.md) |
72| Runbook | [runbook.md](references/templates/markdown/runbook.md) |
73
74---
75
76## Framework Detection (Brownfield)
77
78| Framework | Detection | Mapping |
79|-----------|-----------|---------|
80| **Spring Boot** | `pom.xml`, `@SpringBootApplication` | [spring-boot-mapping.yaml](references/mappings/backend/spring-boot-mapping.yaml) |
81| **FastAPI** | `requirements.txt`, `from fastapi import` | [fastapi-mapping.yaml](references/mappings/backend/fastapi-mapping.yaml) |
82
83**Process**: Glob for detection files → Grep for patterns → Load mapping → Follow brownfield workflow
84
85---
86
87## On-Demand Resources
88
89Load only what is needed for the current task.
90
91### Workflows
92- [Workflow TOC](references/workflows/TOC.md) - Navigation index
93- [greenfield-workflow.md](references/workflows/greenfield-workflow.md)
94- [brownfield-workflow.md](references/workflows/brownfield-workflow.md)
95- [audit-workflow.md](references/workflows/audit-workflow.md)
96- [convert-workflow.md](references/workflows/convert-workflow.md)
97- [diagram-workflow.md](references/workflows/diagram-workflow.md)
98- [user-docs-workflow.md](references/workflows/user-docs-workflow.md)
99- [tutorial-workflow.md](references/workflows/tutorial-workflow.md)
100- [runbook-workflow.md](references/workflows/runbook-workflow.md)
101
102### Reference Guides
103- [comprehensive-guide.md](references/reference/comprehensive-guide.md) - Navigation to all 27 reference guides
104
105### Examples
106- [Examples TOC](references/examples/TOC.md) - Navigation to all examples
107
108---
109
110## Skill Integration
111
112| Skill | Invocation Trigger |
113|-------|-------------------|
114| **docx** | Request includes Word format |
115| **pdf** | Request includes PDF format |
116| **plantuml** | UML diagrams (ER, sequence, component) |
117| **mermaid-architect** | C4 diagrams, flowcharts |
118
119---
120
121## Error Handling
122
123| Error | Response |
124|-------|----------|
125| Cannot detect framework | Ask: "Is this Spring Boot, FastAPI, or another framework?" |
126| Missing template | Use closest match, inform user |
127| Skill not available | Offer markdown-only alternative |
128| Ambiguous request | Ask: "Would you prefer SRS (formal) or PRD (agile)?" |
129
130---
131
132**End of SKILL.md (v3.0-PDA)**