pr-message-writer

pr-message-writer is a skill for Claude Code from krzysztofsurdy/code-virtuoso. It costs 53 tokens per session (2,408 once invoked), scanned A, original, MIT.

A guide for writing pull request descriptions, which explain code changes to the people reviewing them. It includes technical details, testing instructions, and checks reviewers can use to verify the change.

In plain words
What is it for?
Preparing pull requests, documenting changes for teammates, and explaining how reviewers can verify the result.
Why use it?
It removes the effort of turning a code diff into a clear review document and helps avoid missing testing information.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the tools-virtuoso plugin — 11 skills shipped together

Good fit Preparing pull requests, documenting changes for teammates, and explaining how reviewers can verify the result.

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

Made for: Claude Code.

Or install tools-virtuoso, the plugin that ships this one along with the rest of its 11 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 pr-message-writer

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/krzysztofsurdy/code-virtuoso/pr-message-writer"><img src="https://agentmods.dev/badge/skills/krzysztofsurdy/code-virtuoso/pr-message-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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.00053 $0.02408
Opus 5 $0.00026 $0.01204
Sonnet 5 $0.00011 $0.00482
Haiku 4.5 $0.00005 $0.00241

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

Security

Grade A, and why

pr-message-writer scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **If no UI exists** (API-only or GraphQL-only), provide the exact request to execute - full query/mutation with example variables, which tool to use (GraphQL playground, Postman, curl), and the exact URL/endpoint
skills/tools/pr-message-writer/SKILL.md · 188 lines

How it starts

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

PR Message Writer

Write comprehensive, well-structured pull request descriptions by analyzing code changes and following established best practices for technical documentation.

Workflow

Step 1: Gather Context

  1. Determine the main branch:

    git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
    

    Falls back to main or master if not set.

  2. Find the merge base:

    MAIN_BRANCH=$(git symbolic-ref refs/remotes/origin/HEAD 2>/dev/null | sed 's@^refs/remotes/origin/@@' || echo "main")
    MERGE_BASE=$(git merge-base HEAD origin/$MAIN_BRANCH)
    
  3. Collect all changes since the branch diverged:

    git log --oneline $MERGE_BASE..HEAD
    git diff --stat $MERGE_BASE..HEAD
    git diff $MERGE_BASE..HEAD
    
  4. If a ticket ID or branch name is provided as an argument, include it in the PR title.

  5. Gather ticket context. The ticket content is essential for writing accurate testing instructions and understanding the business requirement. If the ticket content is available in context (e.g., from a previous conversation or your project tracker), use it. If it is NOT available or has fallen out of context, ask the user to provide the ticket content before proceeding. Do not guess or invent requirements.

Step 2: Analyze Changes

Read every changed file and understand:

  • What was changed (new files, modified logic, deleted code)
  • Why the change was made (bug fix, new feature, refactoring, performance)
  • Impact on existing functionality (breaking changes, migrations, cache invalidation)
  • Dependencies introduced or removed

Step 3: Follow the Template

Use the PR message template for structure: template

Review real-world examples for tone and detail level: examples

Step 4: Match Change Type to Categories

Apply the appropriate sections based on what the PR touches:

Category When to Include
Database and Entity/Model Changes New tables, columns, migrations, schema changes
API Changes (REST/GraphQL) New or modified endpoints, query/mutation changes
Admin Interface Changes New admin pages, filters, list views, form fields
Caching and Performance Cache keys, invalidation, query optimization
Security and Permissions Auth rules, role checks, access control changes
Event Handling New events, handlers, message queue changes
Testing New or modified test cases, fixtures, test utilities

Read the full file on GitHub · 188 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. 6d ago First seen · 188 lines · 53 tokens per session scan A 1ac94e40e9e5

Subscribe to this mod's changes

pr-message-writer is a skill published in the GitHub repository krzysztofsurdy/code-virtuoso (21 stars, last pushed 3mo ago), licensed MIT. It adds 53 tokens to every session and 2,408 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). 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

gh-issues

Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5]…

SafeAI-Lab-X/ClawKeeper · 116 tokens

skill-creator

Create, edit, improve, or audit AgentSkills. Use when creating a new skill from scratch or when asked to improve, review, audit, tidy up, or clean up an existing skill or SKILL.md file. Also use when editing or restructuring a skill directory (moving files to references/ or scripts/, removing stale content, validating…

SafeAI-Lab-X/ClawKeeper · 121 tokens

openclaw-pr-maintainer

Maintainer workflow for reviewing, triaging, preparing, closing, or landing OpenClaw pull requests and related issues. Use when Codex needs to validate bug-fix claims, search for related issues or PRs, apply or recommend close/reason labels, prepare GitHub comments safely, check review-thread follow-up, or perform…

SafeAI-Lab-X/ClawKeeper · 84 tokens

github

GitHub operations via gh CLI: issues, PRs, CI runs, code review, API queries. Use when: (1) checking PR status or CI, (2) creating/commenting on issues, (3) listing/filtering PRs or issues, (4) viewing run logs. NOT for: complex web UI interactions requiring manual browser flows (use browser tooling when available)…

SafeAI-Lab-X/ClawKeeper · 101 tokens

code-review-report

Turn code changes into a single-file HTML code review report that pairs the diff with context a diff can't show — design decisions, rejected alternatives, tradeoffs, unfinished work — plus prioritized review points. Use when preparing for review after finishing a sizable change, refactor, or feature, or whenever the…

2ykwang/agent-skills · 81 tokens

impl

A code-review workflow that checks whether an implementation matches the project's agreed plan and evaluation criteria. It uses `.claude/context.md` as the reference document.

tomoking2004/claude-plugins · 84 tokens