No. 075 Review the diff
Summarize uncommitted changes
Summarizes uncommitted change.
- Claude Code
- Codex
- Cursor
- Review the diff
--- description: Summarizes uncommitted changes and flags anything risky. Use when the user asks what changed, wants a commit message, or asks to review their diff. --- ## Current changes !`git diff HEAD` ## Instructions Summarize the changes above in two or three bullet points, then list any risks you notice such as missing error handling, hardcoded values, or tests that need updating. If the diff is empty, say there are no uncommitted changes.
When to use
“Summarize uncommitted changes” fits when a diff needs a second pass that stops at findings, because it says “description: Summarizes uncommitted changes and flags anything risky.”, and it is a workflow you would run again rather than a one-off edit.
Send “Summarize uncommitted changes” as the turn itself: description: Summarizes uncommitted changes and flags anything risky.
When not to use
Leave “Summarize uncommitted changes” unused when you wanted the fix applied in the same turn, because “description: Summarizes uncommitted changes and flags anything risky.” points the other way
How to run it
Claude Code
Claude Code loads “Summarize uncommitted changes” from .claude/skillsthat command/SKILL.md when the description matches the turn, and the description has to say when “description: Summarizes uncommitted changes and flags anything risky.” applies.
Codex
Codex takes “Summarize uncommitted changes” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “description: Summarizes uncommitted changes and flags anything risky.”.
Cursor
Cursor should see “Summarize uncommitted changes” only as a chat paste of “description: Summarizes uncommitted changes and flags anything risky.” for this turn. A file at .cursor/rules would keep applying after the turn ends.
Comparison
对比待补
This before-and-after was not run on this machine.
Related
- Stage: Review the diff
- Same stage: Summarize changes in a pull request
来源:Anthropic · https://code.claude.com/docs/en/skills · 2026-12-01