Skip to content

spillwavesolutions/document-specialist

v3.3.0MIT

Software documentation specialist with arc42 DESIGN_DOC.md, architecture docs, Mermaid-first diagrams, and PlantUML Salt UI wireframes. STE100 default. Google docs style on request. Claude Code, Grok Build, Codex, Cursor, and Agent Plugins 1.0.

Documentation Specialist Skill

Version: 3.3.0 Status: Production Ready (PDA-Compliant) Author: Created with Claude Code Last Updated: 2026-08-29

Transform Claude Code into an expert software documentation specialist with Progressive Disclosure Architecture (PDA) for maximum efficiency.


Installation

One-Click Install via Skilz Marketplace

Install this skill instantly from the Skilz Marketplace:

skilz install SpillwaveSolutions_document-specialist-skill/documentation-specialist

Claude Code plugin

claude plugin marketplace add SpillwaveSolutions/document-specialist-skill
claude plugin install document-specialist

Grok Build plugin

Grok Build loads .claude-plugin/ zero-config. Optional pin:

.grok-plugin/plugin.json
.grok-plugin/marketplace.json

Codex plugin

.codex-plugin/plugin.json with "skills": "./skills/". Enable from the Codex plugin UI, or copy the repo into ~/.codex/plugins/.

Cursor plugin

.cursor-plugin/plugin.json. Optional: point .cursor/rules at SKILL.md.

Universal (Agent Plugins 1.0)

Root plugin.json follows https://agent-plugins.org/schemas/1.0.0/plugin.schema.json. Hosts that only speak Agent Plugins 1.0 load skills/documentation-specialist/SKILL.md.

See docs/HOSTS.md for the four-host matrix.

Manual Installation

Clone directly into your Claude Code skills directory:

# Navigate to your skills directory
cd ~/.claude/skills

# Clone the repository
git clone https://github.com/SpillwaveSolutions/document-specialist-skill.git

Verify Installation

After installation, verify the skill is available:

# List installed skills
ls ~/.claude/skills/document-specialist-skill

# Or ask Claude Code
# "List my installed skills"

Overview

Two Primary Capabilities

  1. Greenfield Documentation: Create professional documentation from templates for new projects
  2. Brownfield Documentation: Reverse-engineer documentation from existing codebases

PDA Architecture (54% Token Reduction)

This skill uses Progressive Disclosure Architecture to minimize token consumption while maintaining full functionality:

  • Core (Auto-loaded): SKILL.md (~2,500 tokens) - Routing, execution logic, and quick start
  • On-demand: Workflow guides, templates, mappings (~10,000 tokens, loaded selectively)

Typical Token Load: 2,500 tokens (just SKILL.md) to 5,000 tokens (with workflow) = 44-72% reduction vs v1.0


Key Features

1. Template-Based Creation (Greenfield)

Create professional documentation from scratch using industry-standard templates:

Document TypeStandardStatusUse Case
SRS (Software Requirements Specification)IEEE 830CompleteFormal requirements, compliance, contracts
PRD (Product Requirements Document)Agile/ModernCompleteFeature planning, sprint planning
SDD (Software Design Document)arc42CompleteTechnical design, architecture. Default file is DESIGN_DOC.md
OpenAPI 3.0OpenAPI SpecCompleteREST API documentation
Architecture (C4 short)C4CompleteContext, containers, sequence, deployment. Default file is docs/architecture.md
User Guides-TemplateEnd-user documentation
Deployment Docs-TemplateDevOps, infrastructure

2. Code-to-Docs Reverse Engineering (Brownfield)

Automatically generate documentation from existing code:

Backend Frameworks:

  • Spring Boot (Fully mapped) - Controllers to OpenAPI, Entities to ER diagrams, Services to SDD
  • FastAPI, Express.js, Django, Flask (Planned)

Infrastructure:

  • Pulumi (Fully mapped) - Resources to deployment docs, architecture diagrams
  • Terraform, AWS CDK (Planned)

Frontend:

  • React, Next.js, Vue.js (Planned)

Data and CLI:

  • Python ETL, Apache Airflow, CLIs (Planned)

3. Documentation Audit and Quality Control

  • Automated quality checklists (SRS, PRD, SDD, OpenAPI, User Docs)
  • Gap analysis and completeness scoring
  • Best practices validation (IEEE, OpenAPI, WCAG)
  • Improvement recommendations with examples
  • Automated fixes for common issues

4. Multi-Format Output

  • Markdown (Primary format, Git-friendly)
  • DOCX (Microsoft Word via docx skill)
  • PDF (Professional documents via pdf skill)
  • Diagrams (Mermaid, PlantUML via skills)

5. Visual Documentation

Mermaid Diagrams (via design-doc-mermaid skill, default):

  • C4 Model: Context, Container, Component
  • Flowcharts, sequence, class, ER, state

PlantUML Diagrams (via plantuml skill, leftover types only):

  • Salt wireframes / UI mocks
  • Use case, timing, ArchiMate, nwdiag, WBS
  • Always PNG or SVG. GitHub wiki does not render PlantUML source.

Quick Start

Example 1: Create a Requirements Document

Create a Software Requirements Specification for a payment processing system

Generates: IEEE-compliant SRS with functional requirements, NFRs, acceptance criteria

Example 2: Document Existing Spring Boot App

Document my Spring Boot application at ~/projects/ecommerce-api

Generates: SDD (arc42), OpenAPI spec, C4 diagram, ER diagram, Component diagram

Example 3: Audit API Documentation

Audit my OpenAPI specification at docs/api/openapi.yaml

Generates: Audit report with quality score, gap analysis, recommendations

Example 4: Convert to Multiple Formats

Convert docs/requirements/billing-srs.md to Word format

Generates: Professionally styled DOCX with TOC, styles, formatting

Example 5: Generate Architecture Diagrams

Create a C4 container diagram for my e-commerce microservices platform

Generates: C4 container diagram showing services, databases, external systems


Directory Structure (PDA v3.0)

documentation-specialist/
|-- SKILL.md                           # Core routing logic + quick start
|-- plugin.json                        # Agent Plugins 1.0 (universal)
|-- DESIGN_DOC.md                      # arc42 SDD of this skill
|-- README.md                          # This file
|-- USER_GUIDE.md                      # Comprehensive user guide
|-- .claude-plugin/                    # Claude Code plugin + marketplace
|-- .grok-plugin/                      # Grok Build plugin
|-- .codex-plugin/                     # Codex plugin
|-- .cursor-plugin/                    # Cursor plugin
|
|-- references/
|   |-- workflows/                     # On-demand workflow guides
|   |   |-- design-workflow.md        # arc42 DESIGN_DOC.md and C4 architecture.md
|   |   |-- greenfield-workflow.md     # Template-based creation (1,500 tokens)
|   |   |-- brownfield-workflow.md     # Code-to-docs extraction (1,500 tokens)
|   |   |-- audit-workflow.md          # Documentation review (1,000 tokens)
|   |   |-- convert-workflow.md        # Format conversion (750 tokens)
|   |   |-- diagram-workflow.md        # Diagram generation (1,000 tokens)
|   |   |-- user-docs-workflow.md      # User documentation
|   |   |-- tutorial-workflow.md       # Tutorial creation
|   |   |-- runbook-workflow.md        # Operational runbooks
|   |   +-- TOC.md                     # Navigation index
|   |
|   |-- templates/                     # Document templates
|   |   +-- markdown/
|   |       |-- DESIGN_DOC.md         # arc42 SDD (default output name)
|   |       |-- architecture.md        # C4-first short architecture
|   |       |-- requirements-srs.md    # IEEE SRS (600+ lines)
|   |       |-- requirements-prd.md    # Agile PRD (500+ lines)
|   |       |-- api-openapi.yaml       # OpenAPI 3.0 (800+ lines)
|   |       |-- user-manual.md         # User manual template
|   |       |-- howto-guide.md         # How-to guide template
|   |       |-- getting-started.md     # Getting started template
|   |       |-- developer-tutorial.md  # Developer tutorial
|   |       +-- runbook.md             # Runbook template
|   |
|   |-- mappings/                      # Code-to-docs mappings
|   |   +-- backend/
|   |       |-- spring-boot-mapping.yaml  # Complete
|   |       +-- fastapi-mapping.yaml      # Complete
|   |
|   |-- reference/                     # Reference guides
|   |   |-- comprehensive-guide.md     # Navigation to all 27 guides
|   |   +-- 01-philosophy.md           # Docs-as-code principles
|   |
|   +-- examples/                      # Example documentation
|       |-- TOC.md                     # Navigation to all examples
|       |-- greenfield/                # Template-based examples
|       +-- brownfield/                # Code-to-docs examples

How It Works (PDA Flow)

User Request Flow

Example: "Create an SRS for a billing system"

  1. Auto-Load: SKILL.md classifies intent as CREATE_NEW (2,500 tokens)
  2. Selective Load:
    • workflows/greenfield-workflow.md (1,500 tokens)
    • templates/markdown/requirements-srs.md (500 tokens)
  3. Execute: Generate customized SRS
  4. Total Tokens: 4,500 (vs 9,000 in v1.0) = 50% reduction

Intent Classification

The skill automatically classifies your request into one of nine intents:

IntentTrigger KeywordsWorkflow LoadedTypical Tokens
DESIGN"DESIGN_DOC.md", "SDD", "arc42", "architecture document"design-workflow.md~4,200
CREATE_NEW"create", "generate", "write" + doc typegreenfield-workflow.md~4,000
CODE_TO_DOCS"document", "extract", path referencebrownfield-workflow.md~5,000
AUDIT"audit", "review", "check", "improve"audit-workflow.md~4,000
CONVERT"convert", "transform", "to Word/PDF"convert-workflow.md~3,500
DIAGRAM"diagram", "C4", "sequence", "visualize"diagram-workflow.md~4,200
USER_DOCS"user manual", "how-to", "getting started"user-docs-workflow.md~3,500
TUTORIAL"tutorial", "API guide", "CLI docs"tutorial-workflow.md~3,500
RUNBOOK"runbook", "procedure", "incident"runbook-workflow.md~3,500

Integration with Other Skills

This skill seamlessly integrates with other Claude Code skills:

SkillPurposeAuto-Invoked?Use Case
docxWord document creation/conversionYes when requestedMD to DOCX conversion, professional styling
pdfPDF generationYes when requestedMD/DOCX to PDF, documentation packages
design-doc-mermaidDefault diagrams (GitHub-safe)Yes for C4, sequence, class, ER, state, flowchartFenced mermaid in Markdown. Confluence also needs PNG/SVG
plantumlLeftover UML + wireframesYes for wireframes, use case, timing, ArchiMateAlways PNG or SVG. GitHub wiki does not render PlantUML source

Auto-invocation: The skill automatically calls these skills when needed, you do not need to invoke them manually.


Documentation Philosophy

This skill follows Docs-as-Code principles:

  1. Living Documentation: Update docs in the same commit as code changes
  2. Minimum Viable Documentation: Small, fresh, accurate docs over large stale docs
  3. The Bonsai Tree Principle: Alive but frequently trimmed
  4. Audience-Specific: Different docs for stakeholders, developers, users
  5. Git-Friendly: Markdown primary format, version controlled with code

Use Cases

Use Case 1: Starting a New Project (Greenfield)

Scenario: Building a new SaaS product, need documentation from day one.

Commands:

1. Create a PRD for a team collaboration platform with real-time messaging
2. Create an SRS for the billing module (high-risk, compliance-critical)
3. Generate an arc42 architecture document for microservices
4. Create OpenAPI spec for the REST API

Result: Complete documentation suite ready for development kickoff.


Use Case 2: Documenting Legacy Code (Brownfield)

Scenario: Inherited a Spring Boot application with zero documentation.

Command:

Document my Spring Boot application at ~/projects/customer-api

Result:

  • Software Design Document (arc42 format, 20+ pages)
  • OpenAPI specification (extracted from @RestController classes)
  • C4 Container diagram (shows architecture)
  • Component diagram (shows layer structure)
  • ER diagram (from @Entity classes)
  • Sequence diagrams (for key workflows)

Use Case 3: Compliance Audit

Scenario: Company needs formal documentation for SOC 2 compliance.

Commands:

1. Create a formal SRS for our payment processing system
2. Audit the SRS for completeness
3. Convert to Word format with professional styling
4. Generate PDF documentation package

Result: Enterprise-grade, audit-ready documentation.


Use Case 4: API Documentation

Scenario: Need to document API for external developers.

Commands:

1. Extract OpenAPI spec from my FastAPI application at ~/api
2. Audit the OpenAPI spec for best practices
3. Create sequence diagrams for key API workflows
4. Convert to PDF for distribution

Result: Professional API documentation ready for developer portal.


Configuration

Custom Templates

Override default templates:

Use my custom SRS template at templates/my-company-srs.md for this project

The skill will use your template instead of the default.

Framework Mapping

To add support for a new framework:

  1. Create mappings/{category}/{framework}-mapping.yaml
  2. Define detection patterns, extraction rules
  3. Test with real codebase

See mappings/backend/spring-boot-mapping.yaml for a complete example.


Troubleshooting

Issue: Framework not detected

Solution: Verify detection files exist:

# For Spring Boot:
ls pom.xml build.gradle
grep -r "@SpringBootApplication" src/

If detection fails, manually specify:

Document this as a Spring Boot application at [path]

Issue: Generated docs too generic

Solution: Provide more context in your request:

Generic:

Create an SRS for an app

Specific (Better):

Create an SRS for a HIPAA-compliant telemedicine app with video consultations,
prescription management, and EHR integration. Must support 10,000 concurrent users.

Issue: Diagrams not generated

Solution: Ensure required skills are installed:

/skill design-doc-mermaid
/skill plantuml

Issue: Cannot convert to Word/PDF

Solution: Ensure format conversion skills are installed:

/skill docx
/skill pdf

Performance Metrics (v3.0-PDA)

Metricv1.0v3.0-PDAImprovement
SKILL.md size954 lines~140 lines85% reduction
Typical token load~9,000~4,14054% reduction
Initial load4,770 tokens2,750 tokens42% reduction
Workflow files1 monolithic8 focusedBetter organization

Roadmap

v3.1 (Planned)

  • Complete React mapping
  • Terraform infrastructure mapping
  • Additional reference guides
  • More brownfield examples

v3.2 (Future)

  • Confluence integration
  • Multi-language support (ES, FR, DE)
  • Custom template system
  • Documentation validation/linting
  • Automated change detection

v4.0 (Long-term)

  • Interactive documentation websites
  • Documentation testing (docs as tests)
  • AI-powered gap analysis
  • Continuous documentation generation

Contributing

To improve this skill:

  1. Add new mappings: Create YAML files in mappings/
  2. Add examples: Contribute real-world brownfield examples
  3. Improve templates: Enhance templates in templates/markdown/
  4. Improve guides: Update workflow guides in workflows/
  5. Report issues: Document bugs and limitations

Learning Resources

For New Users

  1. Quick Start: See examples above
  2. User Guide: USER_GUIDE.md (comprehensive feature documentation)

For Advanced Users

  1. PDA Architecture: Understand token optimization details
  2. Workflow Guides: references/workflows/*.md (detailed execution workflows)
  3. Reference Guides: references/reference/*.md (best practices, philosophy)

For Contributors

  1. Mappings: references/mappings/backend/spring-boot-mapping.yaml (code-to-docs example)
  2. Templates: references/templates/markdown/*.md (document structure examples)

Quick Command Reference

TaskCommand Example
Write SDDWrite DESIGN_DOC.md for this repository
ArchitectureCreate an architecture document with C4-style Mermaid
WireframeDraw PlantUML Salt wireframes for the checkout screens
Create SRSCreate an SRS for [project description]
Create PRDCreate a PRD for [feature description]
Document codeDocument my [framework] app at [path]
Extract API docsGenerate OpenAPI spec from [path]
Audit docsAudit my [doc type] at [path]
Convert formatConvert [file] to [Word/PDF]
Create diagramCreate a [diagram type] for [system]
Package docsGenerate PDF package from all docs
Create user manualCreate a user manual for [product]
Create tutorialCreate a tutorial for [topic]
Create runbookCreate a runbook for [procedure]

License

This skill synthesizes best practices from:

  • Industry standards (IEEE, ISO, OpenAPI)
  • Open-source documentation projects
  • Enterprise documentation patterns
  • Academic software engineering research

Acknowledgments

Created to solve a critical problem: software projects have poor or no documentation.

By combining:

  • Industry-standard templates
  • Automated code-to-docs extraction
  • AI-powered content generation
  • Multi-format output
  • Progressive Disclosure Architecture

We make documentation a first-class citizen in the software development lifecycle.


Related Skills

  • docx - Microsoft Word document creation
  • pdf - PDF generation and manipulation
  • plantuml - Leftover UML (wireframes, use case, timing, ArchiMate) plus image export
  • design-doc-mermaid - Default diagrams (C4, sequence, class, ER, state, flowchart)

Version: 3.3.0 Last Updated: 2026-08-29 Minimum Claude Code Version: Latest PDA Compliant: Yes (54% token reduction)

Ready to generate world-class software documentation!