No. 079 Review the diff

Summarize changes in a pull request

Use when a diff needs a second pass that stops at findings

  • Claude Code
  • Codex
  • Cursor
  • Review the diff

Prompt

---
name: pr-summary
description: Summarize changes in a pull request
context: fork
agent: Explore
allowed-tools: Bash(gh *)
---

## Pull request context
- PR diff: !`gh pr diff`
- PR comments: !`gh pr view --comments`
- Changed files: !`gh pr diff --name-only`

## Your task
Summarize this pull request...

When to use

“Summarize changes in a pull request” fits when a diff needs a second pass that stops at findings, because it says “name: pr-summary”, and it is a workflow you would run again rather than a one-off edit.

Send “Summarize changes in a pull request” as the turn itself: name: pr-summary

When not to use

Leave “Summarize changes in a pull request” unused when you wanted the fix applied in the same turn, because “name: pr-summary” points the other way

How to run it

Claude Code

Claude Code loads “Summarize changes in a pull request” from .claude/skillsthat command/SKILL.md when the description matches the turn, and the description has to say when “name: pr-summary” applies.

Codex

Codex takes “Summarize changes in a pull request” as a paste above the task. Leave AGENTS.md unchanged so the next thread does not inherit “name: pr-summary”.

Cursor

Cursor should see “Summarize changes in a pull request” only as a chat paste of “name: pr-summary” 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

来源:Anthropic · https://code.claude.com/docs/en/skills · 2026-12-01