This skill analyzes code changes and guides updating CLAUDE.md to capture new patterns, decisions, and best practices for future development.
npx playbooks add skill howell5/willhong-skills --skill check-claude-md
检查本次对话中的代码改动,判断是否需要更新项目的 CLAUDE.md。
这个 skill 帮助你在完成一次开发任务后,检查是否有值得记录到 CLAUDE.md 的新模式、约定或项目知识。
/check-claude-md
在完成一个功能开发、bug 修复或重构后调用。
检查以下几类值得记录的内容:
输出格式:
## 本次改动摘要
- [改动 1]
- [改动 2]
- ...
## 建议更新 CLAUDE.md
### 需要新增的内容
#### [章节名称]
[具体内容]
### 需要修改的内容
[原内容] → [新内容]
## 不需要更新的原因(如适用)
[说明为什么本次改动不需要记录]
值得记录的:
不值得记录的:
场景:用户完成了一个 API 错误处理的重构
## 本次改动摘要
- 重构了 API 错误处理,统一使用 `AppError` 类
- 新增了 `src/errors/index.ts` 错误定义文件
- 所有 API 路由统一返回 `{ error: string, code: string }` 格式
## 建议更新 CLAUDE.md
### 需要新增的内容
#### 错误处理
- 所有 API 错误使用 `AppError` 类(位于 `src/errors/index.ts`)
- 错误响应格式:`{ error: string, code: string }`
- 不要在路由中直接 throw Error,使用 `throw new AppError()`
---
是否要将以上内容添加到 CLAUDE.md?
/check-claude-md → commitWeekly roundup of top Claude Code skills, MCP servers, and AI coding tips.