Claude-skill-registry docs-generate-site
Generate Level 3 (documentation sites) from design docs. Use when
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/docs-generate-site" ~/.claude/skills/majiayu000-claude-skill-registry-docs-generate-site && rm -rf "$T"
manifest:
skills/data/docs-generate-site/SKILL.mdsource content
Generate Documentation Site
Generates Level 3 documentation site content from design docs with framework-specific features.
Overview
This skill transforms design documentation into interactive documentation site content by:
- Analyzing design docs for the module
- Creating landing page with hero and features
- Generating getting started guide
- Creating concept documentation
- Generating how-to guides
- Integrating with API docs
- Following framework-specific template (RSPress, Docusaurus, VitePress)
Quick Start
Generate RSPress site docs:
/docs-generate-site effect-type-registry --framework=rspress
Include API docs integration:
/docs-generate-site rspress-plugin-api-extractor --framework=rspress \ --api-docs=./docs/en/api
Preview without writing:
/docs-generate-site website --framework=rspress --dry-run
How It Works
1. Parse Parameters
: Module to document [REQUIRED]module
: Documentation framework (rspress, docusaurus, vitepress)--framework
: Path to auto-generated API docs to integrate--api-docs
: Preview structure without writing--dry-run
2. Load Configuration
Read
.claude/design/design.config.json for:
- Module configuration
- Site docs settings (Level 3)
- Framework configuration
- Output directory
3. Analyze Design Documentation
Extract content for different doc types:
- Landing page - Overview, value propositions, key features
- Getting started - Installation, first example, next steps
- Concepts - Architecture, design decisions, how it works
- Guides - Task-oriented how-tos
- Examples - Real-world use cases
4. Generate Landing Page
Create
index.mdx with framework-specific features:
- Hero section with description
- Feature highlights
- Quick start preview
- Links to guides
RSPress-specific:
- Use frontmatter for hero configuration
- Add feature cards
- Include navigation
5. Generate Getting Started Guide
Create progressive learning path:
- Installation (detailed)
- First working example
- Understanding the basics
- Common patterns
- Next steps
6. Generate Concept Documentation
Transform architecture design docs into user-friendly concepts:
- Break down into digestible topics
- Add diagrams and visualizations
- Progressive disclosure (beginner → advanced)
- Use framework components (tabs, callouts)
7. Generate How-To Guides
Create task-oriented guides:
- Specific problems and solutions
- Complete working examples
- Step-by-step instructions
- Troubleshooting tips
8. Apply Framework Features
RSPress features:
- Tabs for multiple approaches
- Callouts (tip, warning, note)
- Code blocks with copy button
- Mermaid diagrams
Docusaurus features:
- Admonitions
- Code blocks with highlighting
- Tabs
- MDX components
9. Create Navigation Structure
Generate navigation metadata:
- Sidebar configuration
- Category organization
- Progressive navigation flow
10. Validate Output
Check generated site docs:
- Framework-specific frontmatter valid
- MDX syntax correct
- Interactive elements work
- Cross-references valid
Supporting Documentation
Load these files when needed:
- Step-by-step implementationinstructions.md
- Example site documentationexamples.md
- Framework-specific component usageframework-features.md
Success Criteria
Generated site documentation is successful when:
- ✅ Engaging landing page with clear value proposition
- ✅ Progressive getting started guide
- ✅ Concept docs broken into digestible topics
- ✅ Task-oriented how-to guides
- ✅ Interactive elements (tabs, callouts, code blocks)
- ✅ Clear navigation structure
- ✅ API docs integrated (if available)
- ✅ Mobile responsive
- ✅ Valid framework-specific syntax
Integration Points
- Uses
for configuration.claude/design/design.config.json - Uses
for structure.claude/skills/docs-generate-site/templates/site-doc.template.mdx - Reads design docs from module's
designDocsPath - Writes to module's
pathuserDocs.siteDocs - Validates against
standardsquality.userDocs.level3
Related Skills
- Generate Level 1 README/docs-generate-readme
- Generate Level 2 repository docs/docs-generate-repo
- Create individual RSPress pages/rspress-page
- Sync docs with changes/docs-sync