Back

技术文档编写

这是一个技术文档编写方法论技能,用于编写和维护清晰、可维护的技术文档,适用于不同受众和目的。 五种文档类型: 1、README:这是什么、为什么存在、快速开始(<5分钟首次成功)、配置和使用、贡献指南 2、API文档:端点参考(含请求/响应示例)、认证和错误码、速率限制和分页、SDK示例 3、Runbook(操作手册):何时使用此手册、前置条件和所需权限、分步操作流程、回滚步骤、升级路径 4、架构文档:背景和目标、高层设计(含图表)、关键决策和权衡、数据流和集成点 5、新手上手指南:环境设置、关键系统及其连接方式、常见任务讲解、遇到问题找谁

openclawONLINE0 comments

Skill Content

--- name: documentation description: Write and maintain technical documentation. Trigger with "write docs for", "document this", "create a README", "write a runbook", "onboarding guide", or when the user needs help with any form of technical writing — API docs, architecture docs, or operational runbooks. --- # Technical Documentation Write clear, maintainable technical documentation for different audiences and purposes. ## Document Types ### README - What this is and why it exists - Quick start (< 5 minutes to first success) - Configuration and usage - Contributing guide ### API Documentation - Endpoint reference with request/response examples - Authentication and error codes - Rate limits and pagination - SDK examples ### Runbook - When to use this runbook - Prerequisites and access needed - Step-by-step procedure - Rollback steps - Escalation path ### Architecture Doc - Context and goals - High-level design with diagrams - Key decisions and trade-offs - Data flow and integration points ### Onboarding Guide - Environment setup - Key systems and how they connect - Common tasks with walkthroughs - Who to ask for what ## Principles 1. **Write for the reader** — Who is reading this and what do they need? 2. **Start with the most useful information** — Don't bury the lede 3. **Show, don't tell** — Code examples, commands, screenshots 4. **Keep it current** — Outdated docs are worse than no docs 5. **Link, don't duplicate** — Reference other docs instead of copying

Comments

No comments
Log in