| Skill | Description |
|-------|-------------|
| [vitepress-tutorial](#vitepress-tutorial) | Generate VitePress documentation sites for source code learning |
---
vitepress-tutorial
Generate VitePress documentation sites for source code learning and analysis. Unlike user documentation that explains "how to use", these tutorials explain "how it's implemented".
```bash
/vitepress-tutorial [source-path] [output-path]
```
Examples:
```bash
/vitepress-tutorial ./apps/runner ./tutorials/runner-guide
/vitepress-tutorial ./pkg/sandbox
```
Features:
- Source References: Auto-generate
Source: path/to/file.go:123 annotations - Mermaid Diagrams: Architecture, sequence, and flow diagrams
- Code Highlighting: Go, TypeScript, Python with line highlighting
- Chinese-first: Content in Chinese, code comments in English
- Standalone Deploy: Ready for Vercel, Netlify, or GitHub Pages
Workflow:
- Analysis - Explore source directory, identify components and architecture
- Planning - Generate tutorial outline and chapter structure
- Generation - Create VitePress project with tutorial content
Output Structure:
```
{output-path}/
βββ package.json
βββ docs/
β βββ .vitepress/
β β βββ config.ts
β βββ index.md
β βββ introduction/
β β βββ overview.md
β β βββ architecture.md
β βββ {modules}/
β βββ index.md
β βββ {topics}.md
βββ README.md
```