Skip to content
Back to skills

Pr Conventions

ASecurity

The shape of a pull request title and body in GitHub projects. Use when drafting, editing or reviewing a PR title or description.

  • 2 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 20, 2026
developmentgobashgitapi

Works with

  • api

Security analysis

A100/100

Scanned November 20, 2026

npx -y skills add maximlukyanovich/agent-tools --skill pr-conventions --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Pr Conventions?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Pr Conventions
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/maximlukyanovich-pr-conventions/badge)](https://www.skillsdirectory.com/skills/maximlukyanovich-pr-conventions)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: pr-conventions
description: The shape of a pull request title and body in GitHub projects. Use when drafting, editing or reviewing a PR title or description.
license: MIT
metadata:
  author: Maxim Lukyanovich
  source: https://github.com/maximlukyanovich/agent-tools
---

# pr-conventions

A PR is read in the GitHub UI by the owner, later by whoever bisects history.
It is written for both.

## Before drafting

Read the last few merged PRs — they are the source of truth when this skill
and practice diverge:

```bash
gh pr list --state merged --limit 5 --json number,title,body
```

Match their tone and structure. A PR text drifts less than a command file.

## Title

- Plain text, one line, ≤ 70 characters, no markdown, no trailing period.
- **Conventional style without gitmoji** — `feat(story): Add the story detail
  page`, `fix(api): Keep body-less responses from failing a request`. Commits
  carry gitmoji; PR titles stay plain for the GitHub UI. In a `topic-prose`
  repository the title uses that repository's `Topic: description` form.
- An imperative summary when the change does not fit one type.

## Body

Omit any section that does not apply; never leave a placeholder.

```markdown
## Summary

One to three bullets on why the change exists and the user-visible outcome. No file paths here.

## Changes

Bullets grouped by area where it helps (**API**, **UI**, **Models**, **Docs**, **Tests**). Each bullet is a behavioural change, not a list of touched files; a key file is named inline only when it adds value.

## Migrations & deploy notes

Only when the diff has migrations, new dependencies, new runtime config keys, or anything requiring action on deploy — name what has to happen in which order.

## Test plan

- [x] `<validate>` green
- [x] Verified in the browser: <which flows, light/dark, narrow/wide>
- [ ] <what the reviewer still has to check>

## Risks / follow-ups

Only when there are real ones — data-loss paths, feature flags, deferred items, a techdebt entry.
```

- **The test plan is a checkbox list** (`- [x]` done, `- [ ]` pending), never
  plain bullets — the owner ticks it in the UI.
- **No hard wrap.** Each bullet and paragraph is one line; GitHub wraps.
- For a promotion between protected branches the body aggregates what
  accumulated since the last promotion instead of restating every commit.

## Tone

English, neutral, technical. Past tense or present perfect for what changed,
imperative for the title. No filler ("This PR adds…"). Write what changed
semantically, not the diff line by line.

## Forbidden

`Co-Authored-By`, agent attribution, person names, links to chat or personal
notes, a tracker id that does not exist. A GitHub issue is referenced only
when one exists (`Closes #42`). Where a name would go, the title and the body
name the source by role or reference: `upstream develop`, a commit
(`d571244`), "the owner's decision of 2026-10-11", "a review finding".

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.