documentation
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDocumentation Workflow Bundle
文档生成工作流套件
Overview
概述
Comprehensive documentation workflow for generating API documentation, architecture documentation, README files, code comments, and technical content from codebases.
一套全面的文档生成工作流,可从代码库生成API文档、架构文档、README文件、代码注释和技术内容。
When to Use This Workflow
何时使用此工作流
Use this workflow when:
- Creating project documentation
- Generating API documentation
- Writing architecture docs
- Documenting code
- Creating user guides
- Maintaining wikis
在以下场景使用此工作流:
- 创建项目文档
- 生成API文档
- 编写架构文档
- 为代码添加文档
- 创建用户指南
- 维护维基知识库
Workflow Phases
工作流阶段
Phase 1: Documentation Planning
阶段1:文档规划
Skills to Invoke
调用技能
- - Documentation architecture
docs-architect - - Documentation templates
documentation-templates
- - 文档架构设计
docs-architect - - 文档模板
documentation-templates
Actions
操作步骤
- Identify documentation needs
- Choose documentation tools
- Plan documentation structure
- Define style guidelines
- Set up documentation site
- 确定文档需求
- 选择文档工具
- 规划文档结构
- 定义风格指南
- 搭建文档站点
Copy-Paste Prompts
可复制粘贴的提示词
Use @docs-architect to plan documentation structureUse @documentation-templates to set up documentationUse @docs-architect to plan documentation structureUse @documentation-templates to set up documentationPhase 2: API Documentation
阶段2:API文档生成
Skills to Invoke
调用技能
- - API documentation
api-documenter - - Auto-generation
api-documentation-generator - - OpenAPI specs
openapi-spec-generation
- - API文档生成
api-documenter - - 自动生成
api-documentation-generator - - OpenAPI规范生成
openapi-spec-generation
Actions
操作步骤
- Extract API endpoints
- Generate OpenAPI specs
- Create API reference
- Add usage examples
- Set up auto-generation
- 提取API端点
- 生成OpenAPI规范
- 创建API参考文档
- 添加使用示例
- 配置自动生成机制
Copy-Paste Prompts
可复制粘贴的提示词
Use @api-documenter to generate API documentationUse @openapi-spec-generation to create OpenAPI specsUse @api-documenter to generate API documentationUse @openapi-spec-generation to create OpenAPI specsPhase 3: Architecture Documentation
阶段3:架构文档生成
Skills to Invoke
调用技能
- - C4 architecture
c4-architecture-c4-architecture - - Context diagrams
c4-context - - Container diagrams
c4-container - - Component diagrams
c4-component - - Code diagrams
c4-code - - Mermaid diagrams
mermaid-expert
- - C4架构
c4-architecture-c4-architecture - - 上下文图
c4-context - - 容器图
c4-container - - 组件图
c4-component - - 代码图
c4-code - - Mermaid图
mermaid-expert
Actions
操作步骤
- Create C4 diagrams
- Document architecture
- Generate sequence diagrams
- Document data flows
- Create deployment docs
- 创建C4图
- 编写架构文档
- 生成序列图
- 记录数据流
- 创建部署文档
Copy-Paste Prompts
可复制粘贴的提示词
Use @c4-architecture-c4-architecture to create C4 diagramsUse @mermaid-expert to create architecture diagramsUse @c4-architecture-c4-architecture to create C4 diagramsUse @mermaid-expert to create architecture diagramsPhase 4: Code Documentation
阶段4:代码文档生成
Skills to Invoke
调用技能
- - Code explanation
code-documentation-code-explain - - Doc generation
code-documentation-doc-generate - - Auto-generation
documentation-generation-doc-generate
- - 代码解释
code-documentation-code-explain - - 文档生成
code-documentation-doc-generate - - 自动生成
documentation-generation-doc-generate
Actions
操作步骤
- Extract code comments
- Generate JSDoc/TSDoc
- Create type documentation
- Document functions
- Add usage examples
- 提取代码注释
- 生成JSDoc/TSDoc
- 创建类型文档
- 记录函数说明
- 添加使用示例
Copy-Paste Prompts
可复制粘贴的提示词
Use @code-documentation-code-explain to explain codeUse @code-documentation-doc-generate to generate docsUse @code-documentation-code-explain to explain codeUse @code-documentation-doc-generate to generate docsPhase 5: README and Getting Started
阶段5:README与快速入门指南
Skills to Invoke
调用技能
- - README generation
readme - - Setup guides
environment-setup-guide - - Tutorial creation
tutorial-engineer
- - README生成
readme - - 环境搭建指南
environment-setup-guide - - 教程制作
tutorial-engineer
Actions
操作步骤
- Create README
- Write getting started guide
- Document installation
- Add usage examples
- Create troubleshooting guide
- 创建README文件
- 编写快速入门指南
- 记录安装步骤
- 添加使用示例
- 创建故障排除指南
Copy-Paste Prompts
可复制粘贴的提示词
Use @readme to create project READMEUse @tutorial-engineer to create tutorialsUse @readme to create project READMEUse @tutorial-engineer to create tutorialsPhase 6: Wiki and Knowledge Base
阶段6:维基与知识库
Skills to Invoke
调用技能
- - Wiki architecture
wiki-architect - - Wiki pages
wiki-page-writer - - Onboarding docs
wiki-onboarding - - Wiki Q&A
wiki-qa - - Wiki research
wiki-researcher - - VitePress wiki
wiki-vitepress
- - 维基架构设计
wiki-architect - - 维基页面编写
wiki-page-writer - - 入职文档
wiki-onboarding - - 维基问答
wiki-qa - - 维基资料调研
wiki-researcher - - VitePress维基
wiki-vitepress
Actions
操作步骤
- Design wiki structure
- Create wiki pages
- Write onboarding guides
- Document processes
- Set up wiki site
- 设计维基结构
- 创建维基页面
- 编写入职指南
- 记录流程文档
- 搭建维基站点
Copy-Paste Prompts
可复制粘贴的提示词
Use @wiki-architect to design wiki structureUse @wiki-page-writer to create wiki pagesUse @wiki-onboarding to create onboarding docsUse @wiki-architect to design wiki structureUse @wiki-page-writer to create wiki pagesUse @wiki-onboarding to create onboarding docsPhase 7: Changelog and Release Notes
阶段7:变更日志与发布说明
Skills to Invoke
调用技能
- - Changelog generation
changelog-automation - - Changelog from git
wiki-changelog
- - 变更日志自动生成
changelog-automation - - 从Git生成变更日志
wiki-changelog
Actions
操作步骤
- Extract commit history
- Categorize changes
- Generate changelog
- Create release notes
- Publish updates
- 提取提交历史
- 分类变更内容
- 生成变更日志
- 创建发布说明
- 发布更新内容
Copy-Paste Prompts
可复制粘贴的提示词
Use @changelog-automation to generate changelogUse @wiki-changelog to create release notesUse @changelog-automation to generate changelogUse @wiki-changelog to create release notesPhase 8: Documentation Maintenance
阶段8:文档维护
Skills to Invoke
调用技能
- - Collaborative writing
doc-coauthoring - - Reference docs
reference-builder
- - 协作写作
doc-coauthoring - - 参考文档构建
reference-builder
Actions
操作步骤
- Review documentation
- Update outdated content
- Fix broken links
- Add new features
- Gather feedback
- 审核文档内容
- 更新过时内容
- 修复失效链接
- 添加新功能说明
- 收集用户反馈
Copy-Paste Prompts
可复制粘贴的提示词
Use @doc-coauthoring to collaborate on docsUse @doc-coauthoring to collaborate on docsDocumentation Types
文档类型
Code-Level
代码级文档
- JSDoc/TSDoc comments
- Function documentation
- Type definitions
- Example code
- JSDoc/TSDoc注释
- 函数文档
- 类型定义
- 示例代码
API Documentation
API文档
- Endpoint reference
- Request/response schemas
- Authentication guides
- SDK documentation
- 端点参考
- 请求/响应 schema
- 认证指南
- SDK文档
Architecture Documentation
架构文档
- System overview
- Component diagrams
- Data flow diagrams
- Deployment architecture
- 系统概述
- 组件图
- 数据流图
- 部署架构
User Documentation
用户文档
- Getting started guides
- User manuals
- Tutorials
- FAQs
- 快速入门指南
- 用户手册
- 教程
- 常见问题
Process Documentation
流程文档
- Runbooks
- Onboarding guides
- SOPs
- Decision records
- 运行手册
- 入职指南
- 标准操作流程(SOPs)
- 决策记录
Quality Gates
质量检查清单
- All APIs documented
- Architecture diagrams current
- README up to date
- Code comments helpful
- Examples working
- Links valid
- 所有API已文档化
- 架构图为最新版本
- README内容更新至最新
- 代码注释具有参考价值
- 示例代码可正常运行
- 所有链接有效
Related Workflow Bundles
相关工作流套件
- - Development workflow
development - - Documentation testing
testing-qa - - AI documentation
ai-ml
- - 开发工作流
development - - 文档测试
testing-qa - - AI相关文档
ai-ml