ring:generating-pr-descriptions

ring:generating-pr-descriptions is a skill for Claude Code from LerianStudio/ring. It costs 61 tokens per session (1,595 once invoked), scanned A, original, Apache-2.0.

A tool that writes a pull request description from the changes on the current Git branch. A pull request is a proposed code change submitted for review; the tool also suggests a title and change category.

In plain words
What is it for?
Use it to prepare review descriptions, classify changes as bug fixes, features, or breaking changes, and save reusable descriptions under docs/pr-descriptions.
Why use it?
It saves time when a branch contains several related commits and makes the review request easier to understand. It examines only changes since the branch split from its base branch.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

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.

agentmods
npx agentmods add skills/lerianstudio/ring/generating-pr-descriptions
Any agent
npx skills add LerianStudio/ring --skill generating-pr-descriptions
Clone the repo
git clone --depth 1 https://github.com/LerianStudio/ring

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 ring:generating-pr-descriptions

README.md
[![agentmods](https://agentmods.dev/badge/skills/lerianstudio/ring/generating-pr-descriptions.svg)](https://agentmods.dev/skills/lerianstudio/ring/generating-pr-descriptions)
Your own site
<a href="https://agentmods.dev/skills/lerianstudio/ring/generating-pr-descriptions"><img src="https://agentmods.dev/badge/skills/lerianstudio/ring/generating-pr-descriptions.svg" alt="Measured on agentmods" 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 1,595 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.01595
Opus 5 $0.00030 $0.00797
Sonnet 5 $0.00012 $0.00319
Haiku 4.5 $0.00006 $0.00160

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

Security

Grade A, and why

ring:generating-pr-descriptions 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.

default/skills/generating-pr-descriptions/SKILL.md · 169 lines

How it starts

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

Generating PR Descriptions

When to use

  • Preparing a pull request for review and need a comprehensive description
  • Generating a PR title automatically from commit message analysis
  • Classifying the type of change (bug fix, feature, breaking change)
  • Saving a reusable PR description to docs/pr-descriptions/<branch-name-with-hyphens>.md

Skip when

  • The PR is a single trivial commit with an obvious description
  • A PR description already exists and does not need regeneration
  • The branch has no commits beyond the base branch

Process

1. Git Branch Analysis - CRITICAL: Branch-Only Scope

  • MANDATORY: Identify actual branch point to avoid analyzing entire development history
  • Detect the base branch (develop, main, master) that the current branch was created from
  • CORRECT APPROACH: Use git merge-base HEAD <base-branch> to find the true divergence point
  • CORRECT APPROACH: Use git log --oneline $(git merge-base HEAD <base-branch>)..HEAD for branch-specific commits
  • CORRECT APPROACH: Use git diff $(git merge-base HEAD <base-branch>)..HEAD for branch-specific changes
  • NEVER rely on manual HEAD~n counting — it breaks on merges, rebases, and long-lived branches
  • Run git status --porcelain to identify uncommitted files (excluded from PR)
  • Enforce that PR analyzes ONLY commits made on the current feature branch, not development history
  • Determine if this is a bug fix, feature, or breaking change based on actual branch commits

2. Change Classification

  • Analyze file patterns and change types
  • Identify the type of change (bug fix, new feature, breaking change, etc.)
  • Detect if documentation updates are needed
  • Determine testing requirements

3. PR Description Generation

  • Create comprehensive description following the template format
  • Include summary of changes and motivation based on ONLY branch-specific commits
  • Pre-fill appropriate checkboxes based on change analysis
  • Suggest testing strategies
  • Derive the output filename from the full branch name with slashes replaced by hyphens (e.g., feature/FE-157 -> feature-FE-157.md)
  • Save to docs/pr-descriptions/<derived-filename> (create directory if needed)

Read the full file on GitHub · 169 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. 6d ago First seen · 169 lines · 61 tokens per session scan A 4ab5861d8e71

Subscribe to this mod's changes

ring:generating-pr-descriptions is a skill published in the GitHub repository LerianStudio/ring (211 stars, last pushed 17d ago), licensed Apache-2.0. It adds 61 tokens to every session and 1,595 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-30.