Agent skill
pr-diff
View pull request diff and code changes. Use when the user wants to see what changed in a PR, review code changes, understand the scope of modifications, or examine specific file changes.
Install this agent skill to your Project
npx add-skill https://github.com/rlcurrall/aide/tree/main/skills/pr-diff
SKILL.md
View Pull Request Diff
View changes in a pull request including file diffs and change statistics.
When to Use
- User asks "what changed?" or "show me the changes"
- User wants to review code before approving
- User needs to understand the scope of modifications
- User wants to see a specific file's changes
How to Execute
Run:
aide pr diff [--pr <id|url>] [options]
Options
| Flag | Description |
|---|---|
--pr |
PR ID or URL (auto-detected from branch if omitted) |
--stat |
Show summary statistics with line counts |
--files |
Show only changed file paths |
--file |
Show diff for a specific file path |
--no-fetch |
Skip auto-fetching missing branches (fetch by default) |
Output Includes
- Source and target branches
- Changed files with +/- line counts (with
--stat) - Full unified diff output (default)
- File list only (with
--files)
Best Practices
- Start with
--statto get an overview of changes - Use
--filesto see which files were modified - Focus on specific files with
--file <path>for detailed review - Auto-fetch is enabled by default - use
--no-fetchif branches are already local
Progressive Review Pattern
# 1. Get overview of changes
aide pr diff --stat
# 2. See which files changed
aide pr diff --files
# 3. Review specific file
aide pr diff --file src/auth/login.ts
Next Steps
After viewing PR diff:
- Use pr-comments skill to see related feedback
- Use pr-view skill for PR metadata
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
release
Create a new software release by bumping version numbers, committing changes, creating git tags, and pushing to remote. Use when creating a release, bumping versions, or publishing a new version.
ticket-attach
Manage Jira ticket attachments. Use when the user wants to list, upload, download, or delete attachments on a ticket.
pr-comments
Load PR comments and feedback for code review. Use when the user wants to see reviewer feedback, check for unresolved comments, understand what changes are requested, or review discussion on a PR.
pr-list
List pull requests from the repository. Use when the user wants to see open PRs, find PRs to review, check their own PRs, or browse PR history.
ticket-update
Update fields on an existing Jira ticket. Use when the user wants to modify a ticket's summary, description, assignee, priority, labels, or custom fields.
pr-create
Create a new pull request. Use when the user wants to open a PR, submit code for review, create a draft PR, or push changes for merge.
Didn't find tool you were looking for?