pr-generator

pr-generator is a skill for Claude Code from atretyak1985/swarmery. It costs 48 tokens per session (556 once invoked), scanned A, original, Apache-2.0.

A pull-request writing assistant that builds the title, explanation, testing notes, and review checklist from the branch's actual commits and code changes. A pull request is a request for teammates to review and merge a set of changes.

In plain words
What is it for?
Use it to prepare pull-request titles, descriptions, testing sections, rollout notes, and checklists from a Git branch.
Why use it?
It reduces the risk of writing a summary that does not match the code or claiming tests that were never run. It also makes review work specific to the changes being proposed.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Part of the core plugin — 36 skills, 8 commands, 13 agents shipped together

Good fit Use it to prepare pull-request titles, descriptions, testing sections, rollout notes, and checklists from a Git branch.

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

Made for: Claude Code.

Or install core, the plugin that ships this one along with the rest of its 36 skills, 8 commands, 13 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 pr-generator

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/atretyak1985/swarmery/pr-generator"><img src="https://agentmods.dev/badge/skills/atretyak1985/swarmery/pr-generator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 556 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.00048 $0.00556
Opus 5 $0.00024 $0.00278
Sonnet 5 $0.00010 $0.00111
Haiku 4.5 $0.00005 $0.00056

Measured 6d ago against content hash c19512833b73, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

pr-generator 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 6d 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/core/skills/pr-generator/SKILL.md · 52 lines

What it actually says

Purpose

A PR description assembled from the real diff and commit history — not from memory of what you meant to do.

Method

  1. Gather evidence: git log <base>..HEAD --oneline, git diff <base>...HEAD --stat, and read the diff for anything the summary will claim.
  2. Title: conventional-commit style, ≤72 chars, states the change not the activity ("feat(orders): bulk line-item editing", not "worked on orders").
  3. Description sections: What (the change in 2-4 sentences), Why (the problem/ticket), How (notable decisions, anything a reviewer would ask about), Testing (what was actually run — never claim untested checks), Breaking changes / rollout (or "None").
  4. Review checklist: 3-7 items specific to THIS diff (the risky hunks, the contract edges, the migration), not generic boilerplate.
  5. Respect the project's PR template when the repo has one (.github/PULL_REQUEST_TEMPLATE.md wins over this structure).

Never include Claude/AI attribution lines. Never invent test results.

How to use

What it does

Generates a PR title, a structured description grounded in the branch's real commits and diff, and a diff-specific review checklist — following the repo's own PR template when one exists.

When to use it

After a branch is ready to push: the work is done, checks ran, and the PR needs a description a reviewer can trust.

How to invoke

Load the skill and name the branch and base, e.g. "generate the PR for feature/bulk-edit against main" — or let an orchestrator load it at delivery time.

Worked example

For a 4-commit branch touching an API route and a migration, it produces: title feat(orders): bulk line-item editing, a What/Why/How description citing the expand-migrate design, Testing listing the actual npm test output, and a checklist item "verify migration backfill on a copy of staging data — new NOT NULL column".

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. 6d ago First seen · 52 lines · 48 tokens per session scan A c19512833b73

Subscribe to this mod's changes

pr-generator is a skill published in the GitHub repository atretyak1985/swarmery (5 stars, last pushed today), licensed Apache-2.0. It adds 48 tokens to every session and 556 once invoked, about $0.0002 per session on Opus 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-03.

Related

Other skills, from other repositories

lean-review

CocoLean diff-scoped over-engineering audit — scans uncommitted git diff and applies five classification tags (delete/stdlib/native/yagni/shrink) to identify unnecessary surface area before commit.

Snowflake-Labs/cocoplus · 44 tokens

prepare-pr

End-to-end drives working-tree changes to a review-ready pull request — commit, sync base, squash to one commit, open/update the PR — then KEEPS RUNNING IN-SESSION (poll CI + code-review bots in 5-min rounds, up to 10) fixing every legitimate Critical/High finding and build failure until the PR is review-ready (never…

kirodotdev/KiroCrew · 0 tokens

validate-changes

Evaluate staged changes using LLM-as-a-Judge before committing.

FlorianBruniaux/claude-code-plugins · 16 tokens

gh-address-comments

This skill should be used when addressing GitHub pull request review comments systematically with mandatory resolution tracking. Use when user says "address PR comments", "fix review feedback", "handle PR review", "resolve PR threads", or needs to ensure all review comments are addressed before merging. Fetches…

jmagar/claude-homelab · 85 tokens

git-workflow

Git workflow and conventional commits. Use when working with git, branches, commits, pull requests, code review, or version control strategy.

TheBeardedBearSAS/claude-craft · 31 tokens

simplify

Use when the user says "simplify this diff" or asks for a compression pass over a change-set. Not for dead-code sweeps: use deslop.

OutlineDriven/odin-claude-plugin · 36 tokens