Writing & EditingOfficial · getsentry

Pr Writer skill for Claude

Create or refresh reviewer-facing PR titles and descriptions.

When Claude uses it

Use when opening a PR, updating its title or body, or preparing branch changes for review.

Pr Writer SKILL.md

The full skill file from getsentry/skills (Apache-2.0).

PR Writer

Write the PR body as a cover note for reviewers, not a changelog, template, validation log, or file-by-file summary.

Inspect the Change

Requires authenticated gh. Inspect the current branch, working tree, PR, base branch, commits, and full diff:

git branch --show-current
git status --porcelain
gh pr view --json number,title,body,url,baseRefName,headRefName
gh repo view --json defaultBranchRef

If gh pr view reports that no PR exists, continue with first-time PR creation. For an existing PR, use its baseRefName; otherwise use the repository default branch. Set BASE, then inspect:

git log "$BASE"..HEAD --oneline
git diff "$BASE"...HEAD

If on main or master, create a feature branch first. Ensure intended changes are committed and review the whole branch diff, not only the latest commit or existing PR text.

Core Rules

  • Describe concrete changed behavior, affected surfaces, and reviewer impact before implementation detail.
  • Explain motivation, risk, tradeoffs, migration, or review focus only when useful.
  • Use the smallest structure that makes the change easier to review.
  • Replace internal prompt or process terminology with specific behavior.
  • When refreshing a PR, rewrite around the current full diff without narrating review history.

Titles

Use <type>(<scope>): <subject> or <type>: <subject>.

Allowed types: feat, fix, ref, perf, docs, test, build, ci, chore, style, meta, license, and revert.

  • Describe the dominant full-branch change with the narrowest accurate type and scope.
  • Use ! only when the change breaks an external contract, and explain the affected surface in the body.
  • Avoid vague subjects such as update, cleanup, misc, fix stuff, or address feedback. Do not add a trailing period.
  • Keep an existing title only when it still describes the whole diff.

Body Shape

Choose the minimum useful shape:

ChangeInclude
Small or obviousOne concise paragraph without headings.
Feature, bug fix, or refactorChanged behavior and effect; add root cause, unchanged behavior, or non-obvious approach when relevant.
Contract or breaking changeAffected API, schema, payload, config, permission, storage, or CLI surface; include compatibility and migration guidance.
Operational, visual, or workflow changeUser/operator effect, measured impact, failure modes, or flow when useful.
Broad, generated, or cross-cutting changeOrganizing principle, why the breadth is necessary, and where review should start.

Default:

<What changed and what effect it has.>

<Why the approach, risk, migration, or review focus matters, if not obvious.>

For review-feedback updates, describe the resulting PR as a whole rather than the sequence of revisions.

Reviewer Aids

Use an aid only when it reduces reviewer reconstruction work:

  • A compact before/after or interface example for changed contracts.
  • A small Mermaid diagram for async flows or state transitions.
  • A screenshot or recording note when visual evidence exists.
  • A rollout, compatibility, risk, or review-order note when reviewers or adopters need it.

Introduce an artifact with one sentence explaining what reviewers should notice. Omit it when prose is clearer.

Boundaries

  • Do not add default Summary, Changes, or Test Plan sections.
  • Omit routine validation unless it changes risk assessment or explains meaningful regression coverage. For docs, skills, copy, or config changes, omit it by default.
  • Do not paste commands, CI logs, validation dumps, commit logs, placeholders, or exhaustive file lists.
  • Never include customer or organization names, user emails, support ticket contents, secrets, or PII.
  • Use issue references only when verified from user input, branch names, commits, PR discussion, or tracker output. Fixes <issue> closes; Refs <issue> only links.

Create or Update

Create new PRs as drafts. Write the body to a temporary Markdown file, then run:

gh pr create --draft --title '<title>' --body-file /tmp/pr-body.md

Update existing PRs with gh api:

gh api -X PATCH repos/{owner}/{repo}/pulls/PR_NUMBER \
  -f title='<title>' \
  -F body=@/tmp/pr-body.md

Refresh the title and body when follow-up commits materially change scope, approach, breaking behavior, risk, migration, or review expectations. Skip typo-only, formatting-only, and rename-only follow-ups.

Examples

Small change:

The AI Customizations section now starts collapsed so it does not consume
sidebar space before users need it. Expanding it preserves the existing saved
preference behavior.

Breaking contract:

Run logs now emit chunk-level records instead of one skill-level record.
Consumers that read top-level `findings` must iterate over
`chunk.findings` for each record.

Before:

```json
{"skill": "security-review", "findings": [...]}
```

After:

```json
{"schemaVersion": 1, "chunk": {"index": 1, "findings": [...]}}
```

How to install Pr Writer

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit getsentry/skills/skills/pr-writer#main ~/.claude/skills/pr-writer

Codex

npx degit getsentry/skills/skills/pr-writer#main ~/.codex/skills/pr-writer

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Pr Writer skill do?

Create or refresh reviewer-facing PR titles and descriptions. Use when opening a PR, updating its title or body, or preparing branch changes for review.

+How do I install Pr Writer in Claude Code?

Copy the skill folder into ~/.claude/skills/pr-writer, for example with "npx degit getsentry/skills/skills/pr-writer#main ~/.claude/skills/pr-writer". Claude Code loads it automatically and uses it when a task matches.

+Does Pr Writer work with ChatGPT or Codex?

Yes. Pr Writer uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/pr-writer. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Pr Writer free?

Pr Writer is published on GitHub by getsentry under the Apache-2.0 license, which allows free use.

Related writing & editing skills

  1. Humanizer

    Rewrite AI-sounding text so it reads like the writer without changing what it says.

    blader/humanizer★ 70k
  2. Stop Slop

    Remove AI writing patterns from prose. Use when drafting, editing, or reviewing text to eliminate predictable AI tells.

    hardikpandya/stop-slop★ 19k
  3. Writing Skills

    Use when creating new skills, editing existing skills, or verifying skills work before deployment

    obra/superpowers★ 319k
  4. Mongodb Query Optimizer

    Official

    Help with MongoDB query optimization and indexing. Use only when the user asks for optimization or performance: "How do I optimize this…

    mongodb/agent-skills★ 206
  5. Mongodb Search And Ai

    Official

    Covers everything about search in MongoDB: Atlas Search (full-text), Vector Search (semantic), and Hybrid Search.

    mongodb/agent-skills★ 206
  6. N8n Expression Syntax

    Validate n8n expression syntax and fix common errors. Use when writing n8n expressions, using {{}} syntax, accessing $json/$node variables,…

    WilkoMarketing/antigravity-n8n-skills★ 108
  7. N8n Multi Instance

    Use when an n8n-mcp account targets more than one n8n instance — i.e.

    WilkoMarketing/antigravity-n8n-skills★ 108
  8. Interactive Writing Assistant

    This skill provides comprehensive support for the writing process from ideation through revision.

    jykim/claude-obsidian-skills★ 52
  9. No Ai Slop

    Edit drafts into sharper, more human writing while preserving the writer's personal voice, or detect AI-slop patterns without rewriting.

    petergyang/no-ai-slop★ 14k

See all writing & editing skills →

More skills from getsentry

  1. Presentation Creator

    Official

    Create data-driven presentation slides using React, Vite, and Recharts with Sentry branding.

    getsentry/skills★ 1.2k
  2. Secret Serialization

    Official

    Finds secrets, tokens, passwords, and API keys that can leak through generated serialization: Python dataclass repr and asdict, attrs,…

    getsentry/skills★ 1.2k
  3. Security Model

    Official

    Define, review, or update SECURITY_MODEL.md files that tell security review tools a repository's threat model, trust boundaries,…

    getsentry/skills★ 1.2k

All skills by getsentry →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.