Back to Skills

pr-writer

Create and update pull requests following Sentry conventions. Use when opening a PR or refreshing an existing PR after material changes.

749stars40forksUpdated 5/28/2026

Security Assessment

Safe(100/100)
Security Score100/100

About pr-writer

The pr-writer skill helps engineers create and maintain pull requests that follow Sentry’s engineering and review conventions. It provides a structured workflow for preparing pull requests by validating branch state, reviewing committed changes, inspecting diffs, and generating clear reviewer-focused titles and descriptions. The skill is designed to reduce inconsistent PR formatting, outdated descriptions, and vague titles that make code review harder. It also ensures pull requests are created from feature branches instead of default branches such as main or master, helping teams avoid workflow mistakes during collaboration.

The skill includes guidance for verifying repository state with Git and GitHub CLI commands, reviewing commit history and diffs, and checking whether a branch already has an open pull request. It supports both creating new pull requests and refreshing existing ones after significant follow-up changes. The documentation defines strict title formatting rules using standardized change types such as feat, fix, docs, and ref, while discouraging vague or automated labels. It also provides rules for writing concise reviewer-facing descriptions that focus on behavior changes instead of narrated implementation details.

This skill is intended for software engineers, contributors, and teams that rely on GitHub-based development workflows and structured code review practices. It is especially useful in repositories with strict pull request standards or large collaborative engineering environments where accurate titles and descriptions improve reviewer expectations and project maintainability. Teams using GitHub CLI and Git-based workflows can use this skill to keep pull requests consistent, current, and aligned with engineering practices during active development.

FAQ

What tools are required to use the pr-writer skill?

The skill requires Git and the GitHub CLI (`gh`) to be installed, authenticated, and available in the environment.

Can the skill update an existing pull request?

Yes. The skill supports refreshing existing pull requests after material follow-up changes by reviewing the current diff and rewriting outdated titles or descriptions when necessary.

Does the skill create pull requests directly from the default branch?

No. The workflow explicitly requires changes to be committed on a feature branch rather than the repository’s default branch such as main or master.

What title formats are supported?

The skill supports titles formatted as `<type>(<scope>): <Subject>` or `<type>: <Subject>` using allowed change types such as feat, fix, docs, ref, perf, and chore.

Does the skill define repository-specific PR templates?

No. The skill instructs users to ignore repository PR templates and instead generate concise reviewer-focused summaries following the documented structure and rules.

All Files

2 files
SKILL.md8.5 KB
View
SPEC.md6.8 KB
View

Install pr-writer

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill