documentation-builder
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese文档构建技能
Documentation Building Skill
概述
Overview
本技能帮助您生成各种技术文档,包括 API 文档、用户手册、开发指南等。
关键词: 文档编写、API 文档、用户手册、开发指南、技术文档、README
This skill helps you generate various technical documents, including API documents, user manuals, development guides, etc.
Keywords: Documentation Writing, API Documentation, User Manual, Development Guide, Technical Documentation, README
核心功能
Core Features
1. API 文档生成
1. API Documentation Generation
- 生成 RESTful API 文档
- 描述 API 端点、参数和响应
- 提供请求和响应示例
- 创建交互式 API 文档(如 Swagger/OpenAPI)
- Generate RESTful API documentation
- Describe API endpoints, parameters, and responses
- Provide request and response examples
- Create interactive API documentation (e.g., Swagger/OpenAPI)
2. 用户手册编写
2. User Manual Writing
- 编写用户使用指南
- 创建快速入门教程
- 提供常见问题解答(FAQ)
- 设计操作步骤和截图
- Compose user usage guides
- Create quick start tutorials
- Provide frequently asked questions (FAQ)
- Design operation steps and screenshots
3. 开发指南创建
3. Development Guide Creation
- 编写开发环境搭建指南
- 创建代码贡献指南
- 设计架构和设计文档
- 提供开发最佳实践
- Write development environment setup guides
- Create code contribution guides
- Design architecture and design documents
- Provide development best practices
4. README 和项目文档
4. README and Project Documentation
- 生成项目 README
- 创建安装和使用说明
- 编写变更日志(CHANGELOG)
- 设计项目结构说明
- Generate project README files
- Create installation and usage instructions
- Write change logs (CHANGELOG)
- Design project structure descriptions
使用指南
Usage Guide
文档编写原则
Documentation Writing Principles
- 清晰性: 文档应清晰易懂,避免歧义
- 完整性: 覆盖所有重要功能和场景
- 准确性: 确保文档与代码一致
- 实用性: 提供实际可用的示例
- 可维护性: 文档应易于更新和维护
- Clarity: Documents should be clear and easy to understand, avoiding ambiguity
- Completeness: Cover all important features and scenarios
- Accuracy: Ensure documents are consistent with the code
- Practicality: Provide usable examples
- Maintainability: Documents should be easy to update and maintain
文档结构
Documentation Structure
- 概述: 项目或功能的概述
- 快速开始: 快速上手指南
- 详细说明: 详细的功能说明
- API 参考: API 接口文档(如适用)
- 示例: 使用示例和代码示例
- 常见问题: FAQ 和故障排除
- Overview: Overview of the project or feature
- Quick Start: Quick start guide
- Detailed Explanation: Detailed feature descriptions
- API Reference: API interface documentation (if applicable)
- Examples: Usage examples and code samples
- FAQs: Frequently asked questions and troubleshooting
文档格式
Documentation Formats
- Markdown(.md)
- reStructuredText(.rst)
- HTML
- PDF(如需要)
- Markdown (.md)
- reStructuredText (.rst)
- HTML
- PDF (if needed)
输出格式
Output Format
文档应包含:
- 文档文件: 完整的文档内容
- 目录结构: 清晰的章节和目录
- 代码示例: 实际可运行的代码示例
- 图表和截图: 可视化说明(如需要)
- 链接和引用: 相关资源的链接
Documents should include:
- Document Files: Complete document content
- Directory Structure: Clear chapters and directories
- Code Examples: Runable code samples
- Charts and Screenshots: Visual explanations (if needed)
- Links and References: Links to related resources
最佳实践
Best Practices
- 使用清晰的标题和章节结构
- 提供实际可用的代码示例
- 保持文档与代码同步更新
- 使用图表和截图辅助说明
- 编写易于搜索的文档
- 考虑不同水平的读者
- 定期审查和更新文档
- Use clear headings and chapter structures
- Provide usable code examples
- Keep documents updated in sync with code
- Use charts and screenshots for supplementary explanations
- Write search-friendly documents
- Consider readers of different skill levels
- Regularly review and update documents