FE

fetch-diff

Fetches and displays GitHub pull request diffs with line-number annotation for easier code review.

Install

mkdir -p .claude/skills/fetch-diff && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4478" && unzip -o skill.zip -d .claude/skills/fetch-diff && rm skill.zip

Installs to .claude/skills/fetch-diff

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Fetch PR diff with filtering and line numbers for code review.
62 charsno explicit “when” trigger
Beginner

Key capabilities

  • →Fetch a pull request diff from GitHub
  • →Add line numbers to the diff for review
  • →Filter diffs by file patterns
  • →Mask diffs for auto-generated files
  • →Mask diffs for deleted files

How it works

The skill fetches a pull request diff, annotates lines with numbers, and applies filtering based on provided file patterns, masking auto-generated or deleted files.

Inputs & outputs

You give it
A GitHub pull request URL and optional file patterns
You get back
A formatted diff with line numbers, filtered by specified patterns

When to use fetch-diff

  • →Review PR diffs in terminal
  • →Filter PR changes by file type
  • →Add review comments with line numbers

About fetch-diff

Retrieves PR diffs from GitHub, applies filters for specific file patterns, and formats them with line numbers. This simplifies the review process by providing context.

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

Prerequisites

GH_TOKEN environment variable or gh auth token

How it compares

This skill automates the process of fetching, formatting, and filtering PR diffs with line numbers, which is more efficient than manually reviewing raw diff outputs.

Compared to similar skills

fetch-diff side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
fetch-diff (this skill)15moReviewBeginner
resolve-conflicts8110moReviewIntermediate
dependency-upgrade266moReviewIntermediate
git-commits215moNo flagsBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry