一键导入
docs-generate-repo
Generate Level 2 (repository docs) from design docs. Use when creating comprehensive topic-based documentation for developers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate Level 2 (repository docs) from design docs. Use when creating comprehensive topic-based documentation for developers.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Generate cross-reference graph showing relationships between design documents. Use when visualizing doc dependencies, finding related docs, or understanding documentation structure.
Validate design doc structure and frontmatter. Use when checking design docs for compliance, ensuring proper formatting, or verifying metadata before commits.
Comprehensive quality audit for CLAUDE.md context files. Use when performing thorough quality checks, preparing for releases, ensuring context efficiency, or verifying token optimization.
Style rules for LLM context files (CLAUDE.md, AGENTS.md and their .local variants). Fires automatically when these files are opened. Enforces on-demand loading patterns, proper @-reference syntax and lean context structure.
Split large CLAUDE.md into child files. Use when context files exceed word limits, are too verbose, or cover multiple distinct topics that should be separate.
Validate CLAUDE.md structure, formatting, and quality. Use when checking context files for compliance, ensuring proper structure, or verifying before commits.
| name | docs-generate-repo |
| description | Generate Level 2 (repository docs) from design docs. Use when creating comprehensive topic-based documentation for developers. |
| allowed-tools | Read, Glob, Edit, Write |
| context | fork |
| agent | user-docs |
Generates Level 2 repository documentation from design docs with topic-based organization.
This skill transforms design documentation into comprehensive repository documentation by:
Generate all repository docs for a module:
/design-docs:docs-generate-repo effect-type-registry
Generate specific topic only:
/design-docs:docs-generate-repo effect-type-registry --topic=caching
Preview without writing:
/design-docs:docs-generate-repo rspress-plugin-api-extractor --dry-run
module: Module name to generate docs for [REQUIRED]--topic: Generate specific topic only (default: all topics)--structure: Output directory structure (default: docs/)--dry-run: Preview file structure without writingRead .claude/design/design.config.json for:
Read design docs:
Extract major topics from design documentation:
For each topic:
Extract Content:
Apply Transformations:
Organize generated docs into directories:
docs/
├── README.md # Index of all documentation
├── architecture/
│ ├── overview.md # High-level architecture
│ └── components.md # Component breakdown
├── guides/
│ ├── getting-started.md # Detailed getting started
│ └── {topic}.md # Topic-specific guides
└── troubleshooting.md # Common issues
Write each generated document:
Check generated docs:
Load these files for detailed guidance:
instructions.md - Step-by-step implementationexamples.md - Example repository documentationtopic-mapping.md - Design doc to user doc topic mappingGenerated repository documentation is successful when:
.claude/design/design.config.json for configuration${CLAUDE_PLUGIN_ROOT}/skills/docs-generate-repo/templates/repo-doc.template.md for structuredesignDocsPathuserDocs.repoDocs pathquality.userDocs.level2 standards/design-docs:user-docs-create-readme - Generate Level 1 package README/design-docs:docs-generate-site - Generate Level 3 site documentation/design-docs:docs-sync - Sync docs with design doc changes/design-docs:design-review - Review source design docs