Agent skill

PR Diff Fetcher

by shopsys in shopsys/shopsys

Fetches pull request data including diff, metadata, and commits

Custom licenceAuto-check passedDevelopment

Install PR Diff Fetcher

skills CLI
$ npx skills add shopsys/shopsys --skill pr-diff-fetcher -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install shopsys/shopsys pr-diff-fetcher --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/shopsys/shopsys.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pull-request-diff-fetcher .claude/skills/pr-diff-fetcher && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pr-diff-fetcher
GitHub stars
350
Token cost
~1.3k tokens
SKILL.md length
487 words
Files
1
Skills in repo
46
Repo updated
First seen
Licence
Custom licence

At a glance

Fetches pull request data including diff, metadata, and commits

  • Works in 2 steps: Check installation: gh --version → Check authentication: gh auth status
  • Tasks that involve Pull requests
  • SKILL.md covers Input, Your Task, Method Priority: gh CLI →… and Error Handling, plus 2 more sections
  • Calls gh and git; reaches api.github.com and patch-diff.githubusercontent.com

What it does

PR Diff Fetcher is an agent skill from shopsys/shopsys. Fetches pull request data including diff, metadata, and commits

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. It works with GitHub and Git. The repository describes itself as: Main repository for maintaining Shopsys Platform packages. Open for ISSUES and PULL REQUESTS.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “Use the pr-diff-fetcher skill to fetch pull request data including diff, metadata, and commits”
  • “/pr-diff-fetcher”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

  1. Check installation: gh --version
  2. Check authentication: gh auth status

What it can do on your machine

Read from SKILL.md and the folder at commit 494a8a6. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.github.com
    • patch-diff.githubusercontent.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

PR Diff Fetcher loads about 1.3k tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 487 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~20
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 487 words (~1,286 tokens).

“This helper is responsible for fetching pull request data including diff, metadata, and commits.”

— opening of SKILL.md by shopsys, Custom licence
name
pr-diff-fetcher
tools
Bash, WebFetch, Read

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .agents/skills/pull-request-diff-fetcher of shopsys/shopsys.

Open the folder on GitHubat commit 494a8a6

Compare with similar skills

PR Diff Fetcher next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

PR Diff Fetcher compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR Diff Fetcher this skillshopsys/shopsys350—~1.3kAutomated safety check: PassCustom licence
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0
PR Review State Fetchprisma/orm48k—~767Automated safety check: PassApache-2.0
Creating Description For Gh PRredis/jedis12k—~838Automated safety check: PassMIT

Similar skills

  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.

    48k GitHub stars~767 tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Official

    Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.

    12k GitHub stars~838 tokensUpdated today
    DevelopmentAuto-check passed
  • Opens a pull request for the current branch using the repo's template, a work item ID in the title and a description filled in from the actual diff.

    60k GitHub stars~824 tokensUpdated yesterday
    DevelopmentAuto-check passed

More from shopsys/shopsys

All 46 skills in this repo
  • Adhoc PR

    shopsys/shopsys

    Ad-hoc Pull Request Publisher — commits the current changes, pushes the branch, opens a GitHub pull request against the repository's default branch, and creates a matching SSP Jira issue in the…

    350 GitHub stars~2.3k tokensUpdated today
    Auto-check passed
  • Commit

    shopsys/shopsys

    Interactive commit workflow — analyzes all uncommitted changes, proposes atomic, logically grouped commits with messages following commit-conventions, and executes them only after the user approves…

    350 GitHub stars~771 tokensUpdated today
    Auto-check: notes
  • Create Enum

    shopsys/shopsys

    Create a Shopsys-style enum (a class extending AbstractEnum with public typed constants, NOT a native PHP enum).

    350 GitHub stars~1.9k tokensUpdated today
    Auto-check passed
  • Docs Researcher

    shopsys/shopsys

    Searches and analyzes documentation to provide relevant information for development tasks.

    350 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • PR Comments

    shopsys/shopsys

    Work with GitHub PR review threads — list unresolved comments as a digest (who is waiting on whom), reply to threads, and resolve/unresolve them.

    350 GitHub stars~2k tokensUpdated today
    Auto-check passed
  • PR Description

    shopsys/shopsys

    Generates a PR description focused on business value using the project's PR template.

    350 GitHub stars~1.7k tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about PR Diff Fetcher

What does PR Diff Fetcher do?

Fetches pull request data including diff, metadata, and commits. PR Diff Fetcher is an agent skill from shopsys/shopsys.

When should I use PR Diff Fetcher?

PR Diff Fetcher fits situations like: tasks that involve Pull requests.

How do I install PR Diff Fetcher in Claude Code?

Run `npx skills add shopsys/shopsys --skill pr-diff-fetcher -a claude-code`. Or copy the skill folder (.agents/skills/pull-request-diff-fetcher in shopsys/shopsys) into .claude/skills/pr-diff-fetcher in your project. Claude Code loads it when a task matches its description.

How do I install PR Diff Fetcher in Codex?

Run `npx skills add shopsys/shopsys --skill pr-diff-fetcher -a codex`. Or copy the skill folder (.agents/skills/pull-request-diff-fetcher in shopsys/shopsys) into .agents/skills/pr-diff-fetcher in your project. Codex loads it when a task matches its description.

Can I use PR Diff Fetcher in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add shopsys/shopsys --skill pr-diff-fetcher -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pr-diff-fetcher, .gemini/skills/pr-diff-fetcher, .github/skills/pr-diff-fetcher and .opencode/skills/pr-diff-fetcher in your project.

What does PR Diff Fetcher need to run?

Going by SKILL.md and its folder, PR Diff Fetcher needs the command-line tools its instructions call (gh and git).

Does PR Diff Fetcher access the network?

SKILL.md names 2 domains. In commands or code: api.github.com and patch-diff.githubusercontent.com; the agent is likely to contact these when it follows the instructions. This is read from the text; nothing was executed.

Is PR Diff Fetcher safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does PR Diff Fetcher use?

PR Diff Fetcher has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does PR Diff Fetcher use?

About 1.3k tokens (SKILL.md is roughly 5.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to PR Diff Fetcher?

Skills that share tags, products or a category with PR Diff Fetcher: Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars), Pull Request Title and Body Writer (openinterpreter/openinterpreter, 69k stars) and PR Review State Fetch (prisma/orm, 48k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR Diff Fetcher?

shopsys (a GitHub organization) maintains it in shopsys/shopsys, which has 350 GitHub stars. The repository holds 46 skills in this directory. The repository was last updated on October 7, 2026.

Source: shopsys/shopsys on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.