review-pull-request
Skill0 starsChanged 12 days agoMITView on GitHub
Open, review and merge pull requests (branch naming, draft until green, Conventional Commit titles, body template, severity-labelled comments, CI triage, squash vs merge vs rebase, stacked PRs). Use when starting a branch, opening or updating a PR, reviewing a diff, answering review, fixing failing PR checks, or merging. Not for commits (use `build-commits`).
- Commits and pushes
8 other projects use a version of this.
Adopted by
Most recently taken up by
- fbraz3/GeneralsXtheir own version, first seen Nov 30, 2026
- marc-aurele-besner/skillabletheir own version, first seen Nov 29, 2026
- b-mendoza/agent-skillstheir own version, first seen Nov 23, 2026
- stigmer/stigmertheir own version, first seen Nov 8, 2026
- open-telemetry/opentelemetry.iotheir own version, first seen Oct 17, 2026
- dotnet/aspnetcoretheir own version, first seen Oct 8, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- dotnet/aspnetcore★ 39ksame name
- open-telemetry/opentelemetry.io★ 1ksame name
- fbraz3/GeneralsX★ 428same name
- stigmer/stigmer★ 44same name
- b-mendoza/agent-skills★ 3same name
- LibreSign/agent-skills★ 2same name
- marc-aurele-besner/skillable★ 1same name
- jmlrt/skills★ 0same name
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 repository33 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- global/CLAUDE.mdCLAUDE.md
- build-backendSkill
- build-commitsSkill
- build-containersSkill
- build-databaseSkill
- build-design-systemSkill
- build-frontendSkill
- build-iacSkill
- build-project-setupSkill
- core-documentationSkill
- core-prompt-engineeringSkill
- core-token-efficiencySkill
- create-marketing-copySkill
- create-seo-contentSkill
- operate-incidentSkill
- operate-observabilitySkill
- plan-architectureSkill
- plan-campaignSkill
- plan-codebase-analysisSkill
- plan-test-strategySkill
- plan-threat-modelSkill
- review-seoSkill
- review-ui-uxSkill
- secure-code-reviewSkill
- secure-repo-governanceSkill
- secure-supply-chainSkill
- ship-ci-cdSkill
- ship-github-actionsSkill
- ship-readinessSkill
- ship-releaseSkill
- test-performanceSkill
- test-validationSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
4
Distinctive
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 19
Merge: when gates pass and the user approves (Merge strategy below).
- Very specific: line 47
Use the merge queue or auto-merge if configured: gh pr merge <n> --squash --auto --delete-branch.
- Distinctive: line 48
Before merging verify: required checks green, required approvals present, no unresolved blocking threads, title is a valid Conventional …
- Distinctive: line 51
Ask before: pushing, marking ready, requesting reviewers on someone else's behalf, merging, closing PRs, deleting branches, posting review …
- Distinctive: line 52
Never bypass branch protection or rulesets, even when you have permission to.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Pull Requests
Get a focused change reviewed and merged through the repository's gates, never around them.
Procedure: author
- Branch from fresh base:
git fetch origin && git switch -c <prefix>/<key>-<slug> origin/<default>. Find the default withgh repo view --json defaultBranchRef -q .defaultBranchRef.name. - Read repo rules:
.github/pull_request_template.md,CONTRIBUTING.md,CODEOWNERS, required checks (gh api repos/{owner}/{repo}/rules/branches/<base>). - Check locally what CI runs (lint, types, tests, build). Commits per
build-commits. - Ask, then push:
git push -u origin HEAD. - Open as draft:
gh pr create --draft --base <base> --title "<type(scope): summary>" --body-file pr.md. - Watch CI:
gh pr checks --watch --fail-fast. Triage failures (Rules). Only when green and the body is complete:gh pr ready. - Request reviewers from
CODEOWNERSor the owning team:gh pr edit --add-reviewer <user|org/team>. - Respond to review: address every thread (fix, or reply with the reason); push follow-up commits; re-request review (
gh pr edit --add-reviewer) after substantive changes. - Merge when gates pass and the user approves (Merge strategy below). Delete the branch; confirm the linked issue closed.
Procedure: reviewer
- Context:
gh pr view <n> --json title,body,baseRefName,headRefName,files,reviewDecision,statusCheckRollupand the linked issue. Know the intent before reading code. - Diff:
gh pr diff <n>; check out for anything non-trivial:gh pr checkout <n>then run tests. - Review in passes: (a) does it do what the issue asks, nothing more; (b) correctness and edge cases; (c) tests prove (b); (d) security and data; (e) compatibility, migrations, rollout; (f) readability. Read
references/reviewing.mdfor the full checklist and comment templates. - Comment with a severity label and
file:line; propose code via suggestion blocks. - Submit one review:
gh pr review <n> --approve | --request-changes | --comment --body-file review.md. Request changes only for blocking items.
Rules
- Branch prefixes:
feature/,fix/,hotfix/,chore/,ci/,docs/,refactor/; lowercase, hyphenated, issue key first (feature/abc-123-export-csv). Repo convention wins. - Size: aim under ~400 changed lines of hand-written code, one concern per PR. Larger: split into a stack (read
references/branch-maintenance.md). Generated files and mass renames in their own PR or commit. - Title = Conventional Commit (
feat(api)!: drop v1 export); with squash merge it becomes the commit on the base branch and drives release tooling. Under 72 chars. - Body (when no template):
## What,## Why,## How tested(commands and results),## Risk and rollback,## Notes for reviewers, thenFixes #123/Closes ABC-42. Add screenshots for UI, migration and rollout notes for schema or config changes, andBREAKING CHANGE:text for breaking ones. - Draft until green. Mark ready only with CI passing, conflicts resolved and the body complete.
- Comment severity labels:
blocking:(must change before merge: bug, security, data loss, broken contract, missing test for new behaviour),suggestion:(better approach, author decides),question:(need understanding),nit:(style, never blocks),praise:. Unlabelled comments are read as blocking; label them. - CI triage:
gh pr checks <n>, thengh run view <run-id> --log-failed. Find the first real error. Compare with the base branch:gh run list --branch <base> --workflow <file> -L 5. If it fails on base too, it is not this PR's bug: report it, do not "fix" it here. Flaky: re-run once (gh run rerun <id> --failed); a second failure is real. Readreferences/ci-triage.mdfor failure patterns. - Keep current: rebase or merge base into the branch only when there are conflicts, the repo requires up-to-date branches, or base changed code you depend on. Rebase only your own unshared branch; otherwise
git merge origin/<base>orgh pr update-branch. - Never: self-approve, approve your own changes via a second account, merge with
--admin, disable or rename required checks, dismiss others' reviews to get through, push to someone else's branch without asking, or resolve a reviewer's thread for them when the point is unaddressed.
Merge strategy
| Strategy | Use when | Effect |
| Squash | default for feature/fix PRs into the default branch | one commit; PR title becomes the message; branch history discarded |
| Merge commit | environment promotions (main -> staging -> production), long-lived release branches, stacked series that must keep commits | preserves all commits and the merge point; tags and SHAs stay valid |
| Rebase | linear-history repos where every commit is already atomic and well-written | replays commits, new SHAs; no merge commit |
- Repo settings and rulesets override this table; check with
gh repo view --json squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed. - Use the merge queue or auto-merge if configured:
gh pr merge <n> --squash --auto --delete-branch. - Before merging verify: required checks green, required approvals present, no unresolved blocking threads, title is a valid Conventional Commit, branch up to date if required.
Safety gates
- Ask before: pushing, marking ready, requesting reviewers on someone else's behalf, merging, closing PRs, deleting branches, posting review comments as the user.
- Never bypass branch protection or rulesets, even when you have permission to.
- For hotfixes, the gate is shorter, not absent: still needs CI and an approver.
Output
PR: <url> (#<n>, draft | ready | merged)
Base <- head: <base> <- <branch>
Title: <type(scope): summary>
Checks: <passed>/<total> failing: <names + first error line>
Reviews: <approved | changes requested | pending> (<reviewers>)
Blocking: <list or "none">
Next action: <what and who>For a review: Verdict: approve | request changes | comment, then findings grouped by blocking, suggestion, question, nit, each with file:line and a concrete fix.
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.

