Generate comprehensive documentation for repositories of any size, from small libraries to large monorepos. Use when creating documentation, generating docs, writing READMEs, producing API docs, architecture docs, or technical references for a repository. NOT for UX copy or microcopy (use ux-writing).
npx claudepluginhub viktorbezdek/skillstack --plugin documentation-generatorThis skill uses the workspace's default tool permissions.
Generate comprehensive documentation for repositories of any size - from small libraries to large monorepos. Creates both non-technical overviews and detailed technical references.
examples/repo-docs/sample-readme.mdreferences/frameworks/diataxis-framework.mdreferences/patterns/writing-for-audiences.mdreferences/quality/document-quality-index.mdscripts/core/analyze_repo.pyscripts/doc-gen.pyscripts/generation/generate_docs.pyscripts/management/detect_drift.pyscripts/validation/check_links.pyscripts/validation/validate_docs.pytemplates/api/api-overview.mdtemplates/api/graphql-schema.mdtemplates/api/rest-endpoint.mdtemplates/architecture/adr-template.mdtemplates/architecture/component-spec.mdtemplates/architecture/data-flow.mdtemplates/architecture/ownership-map.mdtemplates/architecture/repository-structure.mdtemplates/architecture/system-design.mdtemplates/changelog/CHANGELOG.mdFetches up-to-date documentation from Context7 for libraries and frameworks like React, Next.js, Prisma. Use for setup questions, API references, and code examples.
Retrieves current documentation, API references, and code examples for libraries, frameworks, SDKs, CLIs, and services via Context7 CLI. Ideal for API syntax, configs, migrations, and setup queries.
Uses ctx7 CLI to fetch current library docs, manage AI coding skills (install/search/generate), and configure Context7 MCP for AI editors.
Generate comprehensive documentation for repositories of any size - from small libraries to large monorepos. Creates both non-technical overviews and detailed technical references.
Documentation generation follows this sequence:
1. ANALYSIS PHASE
└─ Run scripts, understand repo structure
2. PLANNING PHASE
└─ Load: persona-definition, persona-mapping, prioritization
└─ Define audiences, prioritize doc types
3. STRUCTURE PHASE
└─ Load: systems-thinking, ontology-design, navigation-design
└─ Map system, define concepts, plan navigation
4. WRITING PHASE
└─ Load: ux-writing, example-design, consistency-standards
└─ Write content using templates
5. COVERAGE PHASE
└─ Load: edge-case-coverage, user-journey-design
└─ Ensure completeness, validate flows
6. VALIDATION PHASE
└─ Load: outcome-orientation, risk-management
└─ Measure quality, identify gaps
Run the analysis script first:
SKILL_DIR="{SKILL_DIR}"
python "$SKILL_DIR/scripts/doc-gen.py" analyze /path/to/repo --output analysis.json --pretty
MANDATORY: Load these skills before planning documentation:
Load skill: persona-definition
Create 2-4 personas for documentation audiences:
Load skill: persona-mapping
Use Power-Interest matrix to prioritize:
Load skill: prioritization
Use RICE or ICE scoring to decide:
MANDATORY: Load these skills before structuring:
Load skill: systems-thinking
Apply to architecture documentation:
Load skill: ontology-design
Apply to domain documentation:
Load skill: navigation-design
Apply to doc site structure:
MANDATORY: Load these skills during content creation:
Load skill: ux-writing
Apply to all user-facing content:
Load skill: example-design
Apply to API docs and tutorials:
Load skill: consistency-standards
Apply across all documentation:
MANDATORY: Load these skills before finalizing:
Load skill: edge-case-coverage
Apply to troubleshooting and API docs:
Load skill: user-journey-design
Apply to getting started and tutorials:
MANDATORY: Load these skills for quality assurance:
Load skill: outcome-orientation
Define success metrics:
Load skill: risk-management
Create documentation risk register:
This skill includes 24 comprehensive templates:
| Template | Location | Required Skills |
|---|---|---|
| README | templates/readme/standard.md | ux-writing |
| Quickstart | templates/getting-started/quickstart.md | user-journey-design, example-design |
| Installation | templates/getting-started/installation.md | edge-case-coverage |
| User Guide | templates/guides/user-guide.md | persona-definition, example-design |
| Configuration | templates/guides/configuration.md | edge-case-coverage |
| Deployment | templates/guides/deployment.md | edge-case-coverage, risk-management |
| Contributing | templates/contributing/CONTRIBUTING.md | consistency-standards |
| Changelog | templates/changelog/CHANGELOG.md | - |
| Template | Location | Required Skills |
|---|---|---|
| API Overview | templates/api/api-overview.md | example-design, edge-case-coverage |
| REST Endpoint | templates/api/rest-endpoint.md | example-design, ux-writing |
| GraphQL Schema | templates/api/graphql-schema.md | ontology-design, example-design |
| Template | Location | Required Skills |
|---|---|---|
| System Design | templates/architecture/system-design.md | systems-thinking |
| Repository Structure | templates/architecture/repository-structure.md | navigation-design |
| Ownership Map | templates/architecture/ownership-map.md | persona-mapping |
| Component Spec | templates/architecture/component-spec.md | systems-thinking |
| Data Flow | templates/architecture/data-flow.md | systems-thinking, ontology-design |
| ADR Template | templates/architecture/adr-template.md | risk-management |
| Template | Location | Required Skills |
|---|---|---|
| Domain Spec | templates/domain/domain-spec.md | ontology-design |
| Ontology | templates/domain/ontology.md | ontology-design |
| Template | Location | Required Skills |
|---|---|---|
| Product Spec | templates/specs/product-spec.md | persona-definition, outcome-orientation |
| Feature Spec | templates/specs/feature-spec.md | user-journey-design, edge-case-coverage |
| Template | Location | Required Skills |
|---|---|---|
| External Integration | templates/integrations/external-integration.md | edge-case-coverage, example-design |
| Template | Location | Required Skills |
|---|---|---|
| Runbook | templates/operations/runbook.md | edge-case-coverage, risk-management |
| Troubleshooting | templates/operations/troubleshooting.md | edge-case-coverage, ux-writing |
| Documentation Type | Load These Skills |
|---|---|
| README | ux-writing, persona-definition |
| Getting Started | user-journey-design, example-design |
| API Reference | example-design, edge-case-coverage, ux-writing |
| Architecture | systems-thinking, ontology-design |
| Domain Model | ontology-design |
| Troubleshooting | edge-case-coverage, ux-writing |
| Operations | risk-management, edge-case-coverage |
| Full Doc Audit | All skills in sequence |
python "$SKILL_DIR/scripts/doc-gen.py" full /path/to/repo
# Analyze
python "$SKILL_DIR/scripts/doc-gen.py" analyze /path/to/repo --output analysis.json
# Generate
python "$SKILL_DIR/scripts/doc-gen.py" generate /path/to/repo --output ./docs
# Validate
python "$SKILL_DIR/scripts/doc-gen.py" validate /path/to/docs --min-score 70
# Check Links
python "$SKILL_DIR/scripts/doc-gen.py" check-links /path/to/docs
# Detect Drift
python "$SKILL_DIR/scripts/doc-gen.py" drift /path/to/repo --docs-path /path/to/docs