github-pr-conventions
Skill7 starsChanged 2 days agoMITView on GitHub
GitHub pull request labels with `gh`, as `.github/release.yaml` release notes read them. TRIGGER when: creating a pull request on GitHub (`gh pr create`), or fixing a PR's labels. SKIP when: a GitLab merge request; managing label definitions or merge methods (`github-repo-settings`); authoring workflow/release-note YAML (`github-actions-conventions`). Load `pr-conventions` alongside.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- leroyguillaume/claudeword for word, first seen Nov 29, 2026
Other versions1 project uses a version of this.
Word for word · 1
- leroyguillaume/claude★ 7100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository54 other files it gives its agents.
- adr-conventionsSkill
- api-conventionsSkill
- architecture-conventionsSkill
- argocd-conventionsSkill
- ci-conventionsSkill
- config-conventionsSkill
- contributing-conventionsSkill
- councilSkill
- cryptography-conventionsSkill
- dependency-update-conventionsSkill
- diagram-conventionsSkill
- docker-conventionsSkill
- documentation-conventionsSkill
- frontend-conventionsSkill
- github-actions-conventionsSkill
- github-issue-conventionsSkill
- github-repo-settingsSkill
- gitlab-ci-conventionsSkill
- helm-conventionsSkill
- herdr-core-delegationSkill
- herdr-delegationSkill
- herdr-tui-delegationSkill
- kopf-conventionsSkill
- kubernetes-operator-conventionsSkill
- logging-conventionsSkill
- logo-conventionsSkill
- mise-conventionsSkill
- ollama-conventionsSkill
- openssf-conventionsSkill
- pr-conventionsSkill
- pre-commit-conventionsSkill
- project-metadata-conventionsSkill
- python-async-conventionsSkill
- python-conventionsSkill
- readme-conventionsSkill
- release-script-conventionsSkill
- release-supply-chain-conventionsSkill
- renovate-ci-conventionsSkill
- rest-conventionsSkill
- rust-build-conventionsSkill
- rust-conventionsSkill
- rust-http-conventionsSkill
- security-policy-conventionsSkill
- signal-handling-conventionsSkill
- sql-conventionsSkill
- starlight-conventionsSkill
- systemd-conventionsSkill
- system-user-conventionsSkill
- task-conventionsSkill
- terraform-conventionsSkill
- topic-splittingSkill
- ui-copy-conventionsSkill
- web-layout-conventionsSkill
- yaml-conventionsSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 2 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
A PR that is genuinely two changes is two PRs: If you cannot name one category without lying, split it rather than picking the bigger half.
- Very specific: line 51
If you genuinely opened a PR without labels, fix it immediately with gh pr edit <number> --add-label <name> [--add-label <name>].
- Distinctive: line 117
Don't silently pick a wrong-but-present label to move on.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
GitHub pull request labels (gh CLI)
Rebasing, stacks, drafts, title and body are pr-conventions, which covers
GitHub and GitLab alike. This skill is the GitHub-only part: labels.
Labels
PR labels feed the generated release notes, so they follow
.github/release.yaml. In a repo that has one, every PR carries its labels
from creation: an unlabelled PR lands in the "Other Changes" bucket and is
invisible to anyone scanning the changelog by category. No release.yaml, no
label: nothing reads them, so a category label there is noise on every PR.
That holds for breaking (the body already says what breaks) and for area
labels (the title's area: prefix already names the area). Bot PRs keep what
their config applies (see Bot pull requests).
How GitHub actually sorts a PR
The generated notes put a PR in the first category whose label set matches, in
the order the categories appear in .github/release.yaml — one PR, one
section. Two consequences that drive every choice below:
- Extra category labels are silently ignored, not additive. A PR carrying
both
featureandfixshows up once, under whichever category comes first in the file. So pick the one that describes the change; don't hedge by applying two. - A PR that is genuinely two changes is two PRs. If you cannot name one category without lying, split it rather than picking the bigger half.
When the repo has .github/release.yaml
- Pass
--labelongh pr create— do not open the PR first and label it later (you usually forget). Repeat the flag per label:
If you genuinely opened a PR without labels, fix it immediately withgh pr create --base main --head <branch> \ --title "…" --body "…" \ --label feature --label rustgh pr edit <number> --add-label <name> [--add-label <name>]. - Read the repo's actual labels and its categories — never invent or guess
names. Both, before writing the command:
gh label list --limit 100 # what exists cat .github/release.yaml # what it maps to, and in which orderghdoes not create a label on the fly: a name that isn't in the list fails the whole command withlabels not found: <name>. Creating new labels is a separate, deliberate act (seegithub-repo-settings); do not conjure one mid-PR. - Never apply a category label that
.github/release.yamldoesn't list. A label that exists on the repo but is absent fromrelease.yaml(bug,enhancement, a leftover from an old config) sorts nothing: the PR falls to "Other". The only labels allowed outsiderelease.yamlare the area labels below. - Apply exactly one changelog-category label, taken from
.github/release.yaml— that file is the source of truth, and it differs from repo to repo: a repo without aDocumentationcategory wantschoreon a docs PR, and a repo without aMaintenancecategory sendschorestraight to "Other". Match the labels that repo actually maps. - Add
breakingon top of the category label when the PR breaks something (the body says what breaks, seepr-conventions). It is the one label that stacks with the category label:breaking+featurelands under Breaking changes because that category comes first inrelease.yaml. If the repo has nobreakinglabel or no Breaking changes category, don't drop the flag — say so (see below). - Add the area / technology labels that apply on top of the category label.
Area labels never select a category on their own, so they are safe to stack:
a Rust PR gets
rustas well asfeature/fix/…. A PR typically ends up with two-ish labels: one category + one or more area.
bug/enhancement are issue labels, not PR labels
bug and enhancement classify a reported problem or request; fix and
feature classify the change shipped (see github-repo-settings). On a PR,
reach for fix/feature by default. Use bug/enhancement on a PR only
when that repo's release.yaml genuinely maps them — and when it maps both
members of a pair into one category, say so: that is a duplicate to clean up,
not a choice to make per PR.
Keeping a PR out of the changelog
A repo whose release.yaml has an exclude.labels entry can drop a PR from the
notes entirely. Use the name that repo already defines —
ignore-for-release is the default for a new repo; skip-changelog exists in
older ones and is equally fine where it is already in use. Don't introduce a
second name into a repo that has one.
Reach for it sparingly: a merged PR is a change that shipped, and the honest default is to let it appear under some category. It is for the genuinely non-shipping ones — a revert of something that never made a release, a changelog-only or release-plumbing PR.
Bot pull requests
- Bot PRs' labels come from the bot's config, never by hand — see
dependency-update-conventions. - Reuse the ecosystem labels the repo already has (
rust,github_actions,docker, …) verbatim as your area labels, in Renovate's config and on hand-written PRs alike, rather than a parallel set that means the same thing — seegithub-repo-settings.
When the right label doesn't exist
Don't silently pick a wrong-but-present label to move on. If the repo lacks a
label the change clearly needs, say so and either (a) use the closest existing
category label and flag the gap, or (b) if the user wants the label created,
that's github-repo-settings work — labels should also stay in sync with
.github/release.yaml. Keep the * catch-all category as the fallback only;
never aim a PR at it on purpose.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

