smart-pr

smart-pr is a skill for Claude Code from RockaRhymeLLC/claude-code-skills. It costs 61 tokens per session (948 once invoked), scanned A, original, MIT.

A tool for writing pull-request descriptions from Git history and code differences. A pull request is a proposed change that others review before it is merged into a shared codebase.

In plain words
What is it for?
Use it to describe changes since a base branch, group them by type, note tests, explain important implementation details, and provide reviewer guidance.
Why use it?
It turns scattered commits and diffs into a consistent summary, testing record, and guide for reviewers.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the bmobot-skills plugin — 7 skills shipped together

Good fit Use it to describe changes since a base branch, group them by type, note tests, explain important implementation details, and provide reviewer guidance.

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

Made for: Claude Code.

Or install bmobot-skills, the plugin that ships this one along with the rest of its 7 skills.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/rockarhymellc/claude-code-skills/smart-pr"><img src="https://agentmods.dev/badge/skills/rockarhymellc/claude-code-skills/smart-pr.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 948 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.00061 $0.00948
Opus 5 $0.00030 $0.00474
Sonnet 5 $0.00012 $0.00190
Haiku 4.5 $0.00006 $0.00095

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

Security

Grade A, and why

smart-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 9d 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/smart-pr/SKILL.md · 144 lines

How it starts

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

Smart PR Description Generator

Generate comprehensive, well-structured pull request descriptions by analyzing your git history and changes.

When to Activate

  • User asks to create a PR description
  • User says /smart-pr or "write a PR description"
  • User is about to create a pull request and needs a description

Instructions

Step 1: Gather Context

Determine the base branch (default: main) and collect:

# Get the base branch
BASE_BRANCH="${1:-main}"

# Commits since diverging from base
git log --oneline "$BASE_BRANCH"..HEAD

# Full diff stats
git diff --stat "$BASE_BRANCH"..HEAD

# Detailed diff for analysis
git diff "$BASE_BRANCH"..HEAD

If there are no commits ahead of the base branch, inform the user and stop.

Step 2: Analyze Changes

Categorize each commit by type using conventional commit patterns:

Prefix Category
feat: or new functionality Features
fix: or bug repairs Bug Fixes
refactor: or restructuring Refactoring
test: or test changes Testing
docs: or documentation Documentation
chore:, ci:, deps Maintenance
perf: or optimization Performance

For commits without conventional prefixes, infer the category from the diff content:

  • New files → likely a feature
  • Modified test files → testing
  • Config changes → maintenance
  • README/docs changes → documentation

Step 3: Generate PR Description

Use this template:

## Summary

[1-3 sentences describing the overall purpose and motivation]

## Changes

### [Category 1]
- [Change description with context]
- [Change description with context]

### [Category 2]
- [Change description with context]

## Files Changed

[Number] files changed, [additions] insertions(+), [deletions] deletions(-)

Key files:
- `path/to/important/file.ts` — [what changed and why]
- `path/to/another/file.ts` — [what changed and why]

## Testing

- [ ] [Specific test action based on changes]
- [ ] [Another test action]
- [ ] [Edge case to verify]

## Notes for Reviewers

[Any context that helps reviewers: design decisions, trade-offs, areas needing extra scrutiny, migration steps, etc.]

Read the full file on GitHub · 144 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. 9d ago First seen · 144 lines · 61 tokens per session scan A cc349e08276a

Subscribe to this mod's changes

smart-pr is a skill published in the GitHub repository RockaRhymeLLC/claude-code-skills (1 stars, last pushed 6mo ago), licensed MIT. It adds 61 tokens to every session and 948 once invoked, about $0.0003 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-08-31.

Related

Other skills, from other repositories

git-workflow

A guide for handling Git repository work safely, including status checks, branches, commits, pushes, pull requests, and rebasing. Git is a version-control system that records code changes and coordinates work between developers.

laolaoshiren/claude-code-skills-zh · 73 tokens

changelog-gen

A changelog generator that turns Git history into a version-by-version record of project changes. A changelog is a readable summary of new features, fixes, breaking changes, documentation, and other updates.

laolaoshiren/claude-code-skills-zh · 19 tokens

resolve-pr-comments

Evaluate, fix, answer, and reply to GitHub pull request review comments and conversation comments. Handles both change requests (fix or skip) and reviewer questions (explain using reasoning recalled from past Claude Code transcripts). Use when the user asks to "resolve PR comments", "fix review comments", "address PR…

tobihagemann/turbo · 95 tokens

create-pr

Create a GitHub pull request with a drafted title and description. Use when the user asks to "create a PR", "create a pull request", "open a PR", or "submit a PR".

tobihagemann/turbo · 44 tokens

changelog-rules

Shared changelog conventions and formatting rules referenced by /create-changelog and /update-changelog. Not typically invoked directly.

tobihagemann/turbo · 29 tokens

update-pr

Update an existing GitHub pull request's title and description to reflect the current state of the branch. Use when the user asks to "update the PR", "update PR description", "update PR title", "refresh PR description", or "sync PR with changes".

tobihagemann/turbo · 56 tokens