pr-summary

pr-summary is a skill for Claude Code, Codex from pekral/cursor-rules. It costs 65 tokens per session (3,936 once invoked), scanned A, original, MIT.

A guide for summarizing the changes in a pull request, which is a proposed set of code changes for review. It creates a plain-language report for developers and product teammates, suitable for GitHub or JIRA.

In plain words
What is it for?
Use it to prepare a GitHub pull-request comment or JIRA comment covering the branch's changes, their purpose, business impact, and relevant technical context.
Why use it?
It explains why the changes matter and what they affect without forcing readers to inspect commits or code diffs. It also keeps the summary in the language of the original assignment.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to prepare a GitHub pull-request comment or JIRA comment covering the branch's changes, their purpose, business impact, and relevant technical context.

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

Made for: Claude Code, Codex.

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-summary

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/pekral/cursor-rules/pr-summary"><img src="https://agentmods.dev/badge/skills/pekral/cursor-rules/pr-summary.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,936 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.00065 $0.03936
Opus 5.5 $0.00026 $0.01574
Sonnet 5.5 $0.00013 $0.00787
Haiku 4.5 $0.00006 $0.00394

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

Security

Grade A, and why

pr-summary 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 1mo 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.

skills/pr-summary/SKILL.md · 81 lines

How it starts

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

Constraint:

  • Apply @rules/php/core-standards.mdc
  • Apply @rules/git/general.mdc
  • Apply @rules/jira/general.mdc when the target is a JIRA issue
  • Apply @rules/reports/general.mdc — the published comment must be written in the language of the source assignment (Czech assignment → Czech comment; English assignment → English comment). Code identifiers stay verbatim per the rule's Scope clarifications.
  • If the current project uses Laravel, also apply @rules/laravel/laravel.mdc, @rules/laravel/architecture.mdc, @rules/laravel/filament.mdc, and @rules/laravel/livewire.mdc
  • Focus on the "why" and business impact, not on implementation details — but keep enough technical context (which integration, payload, table, endpoint, etc.) that a developer can still follow what changed.
  • Do not include code snippets, file paths, line numbers, or diff fragments. The summary is for humans, not for static analysis.
  • GitHub target only — always credit the real change author(s) (the JIRA non-technical comment omits the Authors line entirely; this metadata applies to the GitHub PR comment / linked-GitHub-issue mirror). Credit the real change author(s), not the agent or identity running the CR / publishing step. Extract authors from git commit history (git log --pretty='%an <%ae>' base..HEAD | sort -u) and from PR metadata (author.login and commits[].author.login returned by skills/code-review-github/scripts/load-issue.sh). When the target is GitHub, prefer @github-handle; when the target is JIRA, prefer the JIRA-account display name returned by the JIRA loader, otherwise fall back to the git Name <email>. Multiple authors are listed comma-separated in commit order. Never silently drop the Authors line — when authorship cannot be determined, write "Authors: unknown — git history did not yield a recognisable identity".
  • Always flag changes that are reachable only behind a test / opt-in parameter (feature flag, ENV switch, query-string parameter, request header, A/B variant, beta toggle, allow-listed account). When the diff shows a guard such as config('feature.x'), env('SOMETHING_ENABLED'), GrowthBook / Unleash / LaunchDarkly check, a query-string ?debug=, a request header gate, or a hard-coded allow-list, surface the exact toggle and the value required to reach the change: on the GitHub target as an "Available behind" line; on the JIRA target folded into How to test step 1 (which enables the toggle before the tester proceeds). Omit it only when the change is reachable by every user unconditionally.
  • Every comment opens with a TL;DR. Both targets render a TL;DR section at the top of the body (directly below the {assignment_verdict} slot when one is rendered): one or two sentences, in the assignment language, naming what changed and why in plain language — the user-visible outcome, not the implementation. It must stand on its own, so a reader who stops there still knows what shipped. It is never omitted and never conditional. Keep it to two sentences: a TL;DR that grows into a paragraph is a Summary of changes, which the GitHub target already carries below and the JIRA target deliberately does not.
  • Output depends on the target tracker:
    • GitHub target — output the three required sections plus the two metadata lines defined in templates/pr-summary-github.md: TL;DR, Authors, the conditional Available behind, Summary of changes, and How to test. No categories, no breaking-changes section, no testing-notes section.
    • JIRA target — output only TL;DR and How to test plus the conditional embedded blocks (see below). The JIRA non-technical comment stays intentionally minimal: no Authors line, no Summary of changes section, no Available behind metadata line. When the change is reachable only behind a test parameter, fold that toggle into How to test step 1 instead of a separate line. The JIRA audience gets a two-sentence TL;DR and exactly how to test the change, and nothing else unless the wrapper passes a clarifying-questions or assignment-compliance block.
  • No leaked markup on JIRA. When the target is JIRA, the rendered body must contain only JIRA Wiki Markup — never a Markdown control character that JIRA would show as literal text. Before publishing, scan the body and convert / reject any **bold** / __bold__ (→ *bold*), #/##/### ATX headings (→ h1./h2./h3.), `code` (→ {{code}}), fenced ``` blocks (→ {code}…{code}), - / + bullets (→ *), and Markdown links [label] + (url) (→ [label|url]) per @rules/jira/general.mdc. The reader must never see a raw ** or #.
  • Embedded blocks (consolidation contract — issue #498): when the calling CR wrapper passes extra markdown blocks (the Clarifying questions block and/or the Assignment Compliance block returned by @skills/assignment-compliance-check/SKILL.md), append them verbatim after How to test and before the template's signature footer. Each embedded block must already be in the target tracker's markup (GitHub Markdown for GitHub, JIRA Wiki Markup for JIRA — the wrapper converts before passing). A Clarifying questions block arrives already filtered by the wrapper per @rules/code-review/general.mdc Clarifying Questions — Answered-Question Suppression & Severity Gate (issue #758) — questions the tracker thread already answered and the diff implements are gone, only Critical / Moderate ones remain, and no severity label or count is attached; append it as received and never re-rate, re-order, or annotate it. The resulting comment is published once per linked tracker target — that single consolidated comment is the only non-technical artifact a CR run posts on each linked issue or JIRA ticket. When no embedded blocks are passed, the template renders without that slot exactly as before.
  • Assignment / Functional verdict (top banner — affirmative exception, issue #737): whenever the calling CR wrapper passes an Assignment Compliance embedded block — i.e. a tracker is linked and @skills/assignment-compliance-check/SKILL.md ran — render a single prominent verdict line at the very top of the comment (the {assignment_verdict} slot), in the assignment language, stating the Goal met outcome and pointing to the Assignment Compliance detail below: on a gap run, the non-compliance line naming the gap count N; on a clean run, the fully affirmative report naming the total acceptance-criteria count N. This guarantees the reader sees whether the assignment was met without scrolling to the appended block. Derive N from the passed block's Goal met verdict and the count of Not met / Partial / Divergent entries (gap run) or the total acceptance-criteria count (clean run). When no Assignment Compliance block is passed (no tracker is linked), omit the slot entirely. Rendering the positive line on a clean run is the deliberate, narrow affirmative exception to the report-only-what-needs-action convention (@rules/code-review/general.mdc Two-part CR output — Technical & Functional review), scoped to this banner alone.

Read the full file on GitHub · 81 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago First seen · 81 lines · 65 tokens per session scan A 633940549b4d

Subscribe to this mod's changes

pr-summary is a skill published in the GitHub repository pekral/cursor-rules (11 stars, last pushed 19d ago), licensed MIT. It adds 65 tokens to every session and 3,936 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories