# Gh Pr Diff

> Get the unified diff for a GitHub pull request. Use when the user wants to see code changes, review a diff, or understand what changed in a PR. Use when this capability is needed.

- Skill: `tomevault-io/gh-pr-diff` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add tomevault-io/gh-pr-diff`
- Raw SKILL.md: https://api.skillmd.com/api/skills/tomevault-io/gh-pr-diff/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: AI & ML
- Author: tomevault-io (https://skillmd.com/u/tomevault-io)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/tomevault-io/gh-pr-diff

---


# gh-pr-diff

Retrieve the unified diff for a GitHub pull request, showing all code changes in standard diff format.

## Command

```bash
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner OWNER --repo REPO --pr-number PR_NUMBER
```

## Arguments

| Argument | Required | Description |
|----------|----------|-------------|
| `--owner` | Yes | Repository owner (username or organization) |
| `--repo` | Yes | Repository name |
| `--pr-number` | Yes | Pull request number |

## Usage Examples

```bash
# Get diff for PR #42 in octocat/hello-world
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner octocat --repo hello-world --pr-number 42

# Get diff for a PR in the current project
python3 .claude/skills/gh-pr-diff/scripts/get_diff.py --owner my-org --repo my-repo --pr-number 123
```

---
> Converted and distributed by [TomeVault](https://tomevault.io/claim/y-hirakaw) — claim your Tome and manage your conversions.
<!-- tomevault:4.0:skill_md:2026-04-14 -->

