Skip to content
Back to skills

Fetch Diff

ASecurity

Fetch PR diff with filtering and line numbers for code review.

  • 755 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added February 8, 2026
toolsbashgit

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add majiayu000/claude-skill-registry --skill fetch-diff --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Fetch Diff?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Fetch Diff
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-fetch-diff/badge)](https://www.skillsdirectory.com/skills/majiayu000-fetch-diff)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fetch-diff
description: Fetch PR diff with filtering and line numbers for code review.
allowed-tools:
  - Bash(uv run skills fetch-diff:*)
---

# Fetch PR Diff

Fetches a pull request diff, filters out auto-generated files, and adds line numbers for easier review comment placement.

## Usage

```bash
uv run skills fetch-diff <pr_url>
```

Example:

```bash
uv run skills fetch-diff https://github.com/mlflow/mlflow/pull/123
```

Token is auto-detected from `GH_TOKEN` env var or `gh auth token`.

## Output Example

```
diff --git a/path/to/file.py b/path/to/file.py
index abc123..def456 100644
--- a/path/to/file.py
+++ b/path/to/file.py
@@ -10,7 +10,7 @@
10    10 |  import os
11    11 |  import sys
12    12 |  from typing import Optional
13       | -from old_module import OldClass
      14 | +from new_module import NewClass
14    15 |
15    16 |  def process_data(input_file: str) -> dict:
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in tools →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.