A reusable Claude Code skill that generates a full Docusaurus 3.x documentation site from any local repository — AI-analyzed content, Mermaid diagrams, sidebar navigation, and a custom landing page.
Give Claude Code any local repo, and this skill guides it to:
- Explore the codebase (parallel agents read source code)
- Scaffold a Docusaurus 3.x project with Mermaid support
- Generate 15-20 documentation pages with real content from your code
- Build a custom landing page with tech badges and quick navigation
- Verify everything builds and serves correctly
The result: a docs-site/ directory you can build and serve locally at http://localhost:3000.
| Section | Pages | Content |
|---|---|---|
| Overview | intro, architecture, data models, deployment | Mermaid diagrams, tables, code examples |
| Module Docs | One page per module/package | Deep analysis of actual source code |
| Cross-cutting | API reference, testing, dev guide | Practical reference documentation |
| Landing Page | Custom hero + tech badges + stats | Beautiful entry point |
mkdir -p ~/.claude/skills/generate-docs-site
cp SKILL.md ~/.claude/skills/generate-docs-site/git clone https://github.com/AbdElrahmaN31/generate-docs-site.git ~/.claude/skills/generate-docs-sitemkdir -p ~/.claude/skills/generate-docs-site
curl -o ~/.claude/skills/generate-docs-site/SKILL.md https://raw.githubusercontent.com/AbdElrahmaN31/generate-docs-site/main/SKILL.mdOnce installed, just tell Claude Code:
"Generate a docs site for this repo"
"Create documentation for my project"
"Build a Docusaurus site from this codebase"
The skill will be automatically loaded and Claude Code will follow the proven process.
- Claude Code CLI (or compatible agent with skill support)
- Node.js 20+ and npm (for Docusaurus)
- The target repository should be on your local machine
A typical generated docs site looks like:
docs-site/
├── docs/
│ ├── intro.md # Project overview
│ ├── architecture.md # System design with Mermaid diagrams
│ ├── data-models.md # Entity relationships
│ ├── api-reference.md # REST endpoint reference
│ ├── deployment.md # Setup and deployment
│ ├── testing.md # Test strategy
│ ├── modules/
│ │ ├── backend/ # 7 pages: models, services, routers...
│ │ └── frontend/ # 5 pages: pages, components, state...
│ └── guides/
│ └── development.md # Developer setup guide
├── src/pages/index.tsx # Custom landing page
├── docusaurus.config.ts
├── sidebars.ts
└── package.json
20 pages, 35+ Mermaid diagrams, zero external dependencies for dev.
graph LR
A[Local Repo] --> B[Claude Code explores]
B --> C[Scaffold Docusaurus]
C --> D[Generate docs from source]
D --> E[Build landing page]
E --> F[Build & verify]
F --> G[docs-site/ ready]
- 🔍 AI-analyzed content — reads your actual source code, not just file names
- 🏗️ Mermaid diagrams — architecture, ER diagrams, state machines, sequence flows
- 📐 Smart sidebar — explicit navigation structure, not autogenerated
- 🎨 Custom landing page — tech badges, project stats, quick links
- 🔄 Reusable — works for any repo, any language, any framework
- ⚡ Parallel generation — 3 agents generate docs simultaneously
Contributions welcome! This is a process skill, so improvements should:
- Come from real experience (not theoretical)
- Document specific failure modes and fixes
- Follow the skill structure in SKILL.md
MIT — see LICENSE
- Claude Code — The AI agent this skill runs on
- Docusaurus — The docs framework it generates
- agentskills.io — Skill specification