analyze-pr

analyze-pr is a skill for Claude Code from sgaunet/claude-plugins. It costs 23 tokens per session (1,572 once invoked), scanned A, original, MIT.

A pull request review workflow for GitHub, GitLab, or Forgejo. A pull request, also called a merge request on GitLab, proposes changes for review before they are added to a project.

In plain words
What is it for?
Use it to fetch a pull request's details and changes, then inspect the proposal for defects, security concerns, and missing or inadequate tests.
Why use it?
It brings code quality, security, and test-coverage checks into one review of the proposed changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool.

Part of the software-engineering plugin — 18 skills, 7 agents shipped together

Good fit Use it to fetch a pull request's details and changes, then inspect the proposal for defects, security concerns, and missing or inadequate tests.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sgaunet/claude-plugins/analyze-pr
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 sgaunet/claude-plugins --skill analyze-pr
Clone the repo
git clone --depth 1 https://github.com/sgaunet/claude-plugins

Made for: Claude Code.

Or install software-engineering, the plugin that ships this one along with the rest of its 18 skills, 7 agents.

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 analyze-pr

README.md
[![agentmods](https://agentmods.dev/badge/skills/sgaunet/claude-plugins/analyze-pr/github.svg)](https://agentmods.dev/skills/sgaunet/claude-plugins/analyze-pr)
Your own site
<a href="https://agentmods.dev/skills/sgaunet/claude-plugins/analyze-pr"><img src="https://agentmods.dev/badge/skills/sgaunet/claude-plugins/analyze-pr/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 analyze-pr

Your own site · 80×15
<a href="https://agentmods.dev/skills/sgaunet/claude-plugins/analyze-pr"><img src="https://agentmods.dev/badge/skills/sgaunet/claude-plugins/analyze-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 23 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,572 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 original No closer match found 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.00023 $0.01572
Opus 5.5 $0.00009 $0.00629
Sonnet 5.5 $0.00005 $0.00314
Haiku 4.5 $0.00002 $0.00157

Measured 2mo ago against content hash 2ece7ebdcb4d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

analyze-pr 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 2mo ago.

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.

plugins/software-engineering/skills/analyze-pr/SKILL.md · 143 lines

How it starts

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

Analyze Pull Request

Perform comprehensive analysis of a pull request including code review, security scan, and test coverage.

Process

  1. Detect Repository Type: Use the detect-repo-host skill to identify the hosting service (GitHub, GitLab, or Forgejo) and extract owner/repo details.

  2. Fetch PR Details: Use the appropriate CLI

    • GitHub: gh pr view <number> --json title,body,author,files,commits, gh pr diff <number>

    • GitLab: glab mr view <number>, glab mr diff <number>

    • Forgejo: fgj pr view <number> -R <owner>/<repo> --json for metadata. fgj has no pr diff subcommand — obtain the diff via a git fallback:

      1. From the fgj pr view JSON, read the head and base branch names.
      2. git fetch origin
      3. git diff origin/<base>...origin/<head>

      This works for same-repo PRs (both branches exist on origin); it does not cover cross-fork PRs whose head lives in a different repository. As a secondary option, fetch the diff directly from the Forgejo API: GET <api_base>/repos/<owner>/<repo>/pulls/<n>.diff, where <api_base> is the field returned by the detect-repo-host skill (e.g. https://git.sylvlab.fr/api/v1). Never hardcode a host — it breaks on every other Forgejo instance.

  3. Analyze Changes: Launch 4 parallel Sonnet agents to independently review the pull request:

    Agent #1: Code Quality Review (code-review-enforcer agent)

    • Review modified files for code quality issues
    • Check for logic errors, error handling, performance issues
    • Verify adherence to coding standards
    • Return: list of issues with severity levels and line numbers

    Agent #2: Security Analysis (security-auditor agent)

    • Scan for security vulnerabilities in modified files
    • Focus on auth/crypto changes, input validation, SQL injection
    • Check for exposed secrets or sensitive data
    • Return: list of security findings with CVSS-like severity ratings

    Agent #3: Test Coverage Assessment

    • Analyze modified files to identify new functionality
    • Check if corresponding tests were added
    • Evaluate test quality and edge case coverage
    • Return: coverage report with missing test scenarios

Read the full file on GitHub · 143 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. 2mo ago First seen · 143 lines · 23 tokens per session scan A 2ece7ebdcb4d

Subscribe to this mod's changes

analyze-pr is a skill published in the GitHub repository sgaunet/claude-plugins (19 stars, last pushed 1mo ago), licensed MIT. It adds 23 tokens to every session and 1,572 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.

Related

analyze-pr compared with skills from other repositories

analyze-pr next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
analyze-prsgaunet/claude-pluginsSkill191mo agoMITA23Claude Code
intended-vs-implementedphuryn/pm-skillsSkill28k22d agoMITA55Claude Code
code-reviewphuryn/pm-skillsSkill28k22d agoMITA58Claude Code
team-reviewNikiforovAll/claude-code-rulesSkill14328d agoApache-2.0A65Claude Code
roslyn-queryNikiforovAll/claude-code-rulesSkill14328d agoApache-2.0A44Claude Code
meta-reviewstefanoskarakasis/Product-Marketing-SkillsSkill21yesterdayMITA83Claude Code
meta-verifystefanoskarakasis/Product-Marketing-SkillsSkill21yesterdayMITA88Claude Code