Files
everything-claude-code-zh/commands/update-docs.md

32 lines
803 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 更新文档 (Update Documentation)
从单一事实来源Source-of-truth同步文档
1. 读取 `package.json` 中的 `scripts` 章节
- 生成脚本参考表
- 包含来自注释的说明描述
2. 读取 `.env.example`
- 提取所有环境变量
- 记录变量用途与格式
3. 生成 `docs/CONTRIB.md`,内容包含:
- 开发工作流Development workflow
- 可用脚本
- 环境搭建
- 测试流程
4. 生成 `docs/RUNBOOK.md`,内容包含:
- 部署流程
- 监控与告警
- 常见问题与修复
- 回滚流程
5. 识别过时文档:
- 查找 90 天以上未修改的文档
- 列出清单以供人工核查
6. 显示差异diff摘要
单一事实来源Single source of truth`package.json``.env.example`