pr-reference

pr-reference is a skill for Claude Code from Peter-N91/hve-squad-mcp. It costs 52 tokens per session (1,412 once invoked), scanned A, a copy of pr-reference, MIT.

A Git change-summary generator that combines commit history and branch differences into an XML file. Git is the version-control system used to track code changes.

In plain words
What is it for?
It helps prepare pull request descriptions, review context, security analysis, and work-item lists from branch changes.
Why use it?
It removes the manual work of collecting changed files, commits, and unified diffs before a pull request or review.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Good fit It helps prepare pull request descriptions, review context, security analysis, and work-item lists from branch changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/peter-n91/hve-squad-mcp/pr-reference
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Peter-N91/hve-squad-mcp --skill pr-reference
Clone the repo
git clone --depth 1 https://github.com/Peter-N91/hve-squad-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-reference

README.md
[![agentmods](https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/pr-reference/github.svg)](https://agentmods.dev/skills/peter-n91/hve-squad-mcp/pr-reference)
Your own site
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/pr-reference"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/pr-reference/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-reference

Your own site · 80×15
<a href="https://agentmods.dev/skills/peter-n91/hve-squad-mcp/pr-reference"><img src="https://agentmods.dev/badge/skills/peter-n91/hve-squad-mcp/pr-reference.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,412 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.01412
Opus 5.5 $0.00021 $0.00565
Sonnet 5.5 $0.00010 $0.00282
Haiku 4.5 $0.00005 $0.00141

Measured 5d ago against content hash 536f4cee9fd0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

pr-reference scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 5d ago.

The scan reads SKILL.md. This mod also ships 10 executable files (scripts/generate.ps1, scripts/generate.sh, scripts/list-changed-files.ps1, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

97% identical to pr-reference — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

host/upstream-runtime/.github/skills/shared/pr-reference/SKILL.md · 126 lines

How it starts

The opening of the file, as written. The whole thing — 126 lines — stays where its author put it; the contents beside it link to each section on GitHub.

PR Reference Generation Skill

Overview

Queries git for commit metadata and diff output, then produces a structured XML document. Both bash and PowerShell implementations are provided.

Use cases:

  • PR description generation from commit history
  • Code review preparation with structured diff context
  • Work item discovery by analyzing branch changes
  • Security analysis of modified files

After successful generation, include a file link to the absolute path of the XML output in the response.

Prerequisites

The repository must have at least one commit diverging from the base branch.

Platform Runtime
macOS / Linux Bash (pre-installed)
Windows PowerShell 7+ (pwsh)
Cross-platform PowerShell 7+ (pwsh)

Quick Start

Run the following command to generate a PR reference with default settings (compares against origin/main):

scripts/generate.sh
scripts/generate.sh --base-branch auto --merge-base --exclude-ext yml,json
scripts/generate.ps1
scripts/generate.ps1 -BaseBranch auto -MergeBase -ExcludeExt yml,json

Output saves to .copilot-tracking/pr/pr-reference.xml by default.

Parameters Reference

Parameter Flag (bash) Flag (PowerShell) Default Description
Base branch --base-branch -BaseBranch origin/main (bash) / main (PowerShell) Target branch for comparison. Use auto to detect remote default.
Merge base --merge-base -MergeBase false Use git merge-base for three-way comparison
Exclude markdown --no-md-diff -ExcludeMarkdownDiff false Exclude markdown files (*.md) from the diff
Exclude extensions --exclude-ext -ExcludeExt (none) Comma-separated extensions to exclude (e.g., yml,yaml,json,png)
Exclude paths --exclude-path -ExcludePath (none) Comma-separated path prefixes to exclude (for example, documentation and GitHub configuration directories)
Output path --output -OutputPath .copilot-tracking/pr/pr-reference.xml Custom output file path

Read the full file on GitHub · 126 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago First seen · 126 lines · 52 tokens per session scan A 536f4cee9fd0

Subscribe to this mod's changes

pr-reference is a skill published in the GitHub repository Peter-N91/hve-squad-mcp (3 stars, last pushed 2d ago), licensed MIT. It adds 52 tokens to every session and 1,412 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 97% identical to pr-reference, differing in 0 lines, and is treated as a copy.

Related

pr-reference compared with skills from other repositories

pr-reference next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
pr-referencePeter-N91/hve-squad-mcpSkill32d agoMITA52Claude Code
review-implement-phaseprisma/ormSkill48ktodayApache-2.0A38Claude Code
github-pr-workflowpaperclipai/paperclipSkill118ktodayMITA39Claude Code, Codex
review-deltatirth8205/code-review-graphSkill33k14d agoMITA24Claude Code
github-contributordaymade/claude-code-skillsSkill1.6kyesterdayMITA105Claude Code, Codex
dyl-reviewcursor/pluginsSkill21ktodaynoneA80Claude Code, Cursor
git-pr-workflows-git-workflowrmyndharis/antigravity-skillsSkill2.2k24d agoMITA37Claude Code, Codex