pr-author
Skill1 starsChanged 9 months agoMITView on GitHub
Prepares code for review - PR sizing, self-review, description writing, stacking PRs, and making reviewers' jobs easy. Use when preparing to open a pull request or when PRs are getting slow reviews.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- AcKeskin/contexturetheir own version, first seen Jul 30, 2026
- bang9/claude-code-settingstheir own version, first seen Apr 19, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- AcKeskin/contexture★ 2same name
- bang9/claude-code-settings★ 2same 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 repository48 other files it gives its agents.
- accessibilitySkill
- api-designSkill
- api-integrationSkill
- architectSkill
- async-patternsSkill
- best-practicesSkill
- bugSkill
- buildSkill
- cachingSkill
- ci-cdSkill
- config-managementSkill
- containerizeSkill
- database-designSkill
- data-modelingSkill
- data-pipelineSkill
- debug-latencySkill
- dependency-updateSkill
- deploySkill
- dev-setupSkill
- docsSkill
- error-handlingSkill
- estimateSkill
- feature-flag-opsSkill
- git-recoverySkill
- i18nSkill
- iacSkill
- incidentSkill
- load-testingSkill
- loggingSkill
- migrateSkill
- monitoringSkill
- observability-debugSkill
- onboardSkill
- perfSkill
- phase-gateSkill
- qaSkill
- refactorSkill
- reviewSkill
- rollbackSkill
- schema-evolutionSkill
- scope-checkSkill
- security-auditSkill
- state-managementSkill
- tech-debtSkill
- tech-stackSkill
- telemetrySkill
- testingSkill
- workflowSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 6 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 45
When PRs depend on each other:
- Distinctive: line 57
Before requesting review, review your own diff:
- Distinctive: line 69
If I came back to this in 6 months, would the "why" be clear?
- Distinctive: line 119
If it needs specific setup (env vars, migrations), document it
- Distinctive: line 120
If it's a UI change, include screenshots or a deploy preview link
- Distinctive: line 136
Don't resolve other people's comments - let the reviewer resolve
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
PR Authoring
A good PR is reviewed in hours. A bad PR sits for days. The difference is how you prepare it.
PR Sizing
The Rule: 200-400 Lines of Diff
- < 100 lines: probably fine as-is
- 200-400 lines: ideal review size
- 400-800 lines: getting large, consider splitting
- 800+ lines: too large. Split it. No exceptions.
Large PRs get slow reviews, shallow reviews, and rubber stamps. Small PRs get fast, thorough reviews.
How to Split a Large Change
By layer:
PR 1: Database migration + model changes
PR 2: Business logic / service layer
PR 3: API endpoint / controller
PR 4: UI / frontend changesBy feature slice:
PR 1: User creation (model + API + UI)
PR 2: User editing (model + API + UI)
PR 3: User deletion (model + API + UI)By risk:
PR 1: Safe refactoring (rename, extract, restructure) - easy to review
PR 2: New logic (business rules, algorithms) - needs careful review
PR 3: Integration changes (API calls, config) - needs testing verificationStacking PRs
When PRs depend on each other:
main ← PR 1 (foundation) ← PR 2 (feature) ← PR 3 (polish)- Each PR is reviewable independently
- Merge in order (PR 1 first)
- Rebase dependent PRs after merge
- Label stacked PRs: "Stack 1/3", "Stack 2/3", etc.
Self-Review Checklist
Before requesting review, review your own diff:
Read the Diff Like a Reviewer
- Open the diff in GitHub/GitLab and read every line
- Does each change make sense without your mental context?
- Any leftover debug code? (console.log, print, TODO, commented-out code)
- Any unrelated changes? (formatting, imports, whitespace - split into separate PR)
- Tests cover the new/changed behavior?
- No secrets, credentials, or personal data in the diff?
Ask Yourself
- Would I understand this diff if I hadn't written it?
- If I came back to this in 6 months, would the "why" be clear?
- Is there a simpler way to achieve the same thing?
Writing the PR Description
Structure
## What
[1-2 sentences: what this PR does]
## Why
[1-2 sentences: why this change is needed - link to issue/ticket]
## How
[Key implementation decisions, especially non-obvious ones]
## Testing
- [ ] Unit tests added/updated
- [ ] Manual testing steps: [what to do, what to expect]
## Screenshots (if UI change)
[Before/after screenshots or screen recordings]
## Notes for Reviewer
[Where to start reading, what to focus on, known concerns]Tips
- Lead with WHY, not WHAT. Reviewers can see what changed. They need to know why.
- Link the ticket/issue. "Closes #123" or "Part of PROJ-456"
- Highlight decisions. "I chose approach X over Y because..."
- Call out risk. "The migration in
0023_add_column.sqlis irreversible." - Guide the reviewer. "Start with
service.ts, thenhandler.ts."
Making Review Easy
Commit Hygiene
- Atomic commits: Each commit does one thing and the message explains why
- Logical order: Commits tell a story (refactor first, then feature, then tests)
- No "fixup" commits in the final PR: Squash WIP commits before requesting review
Code Annotations
For complex changes, add PR comments on your own diff explaining non-obvious decisions:
// I chose a Map here instead of an Object because we need guaranteed
// insertion order for the display list, and keys may be non-string IDs.Make It Runnable
- PR description includes how to test locally
- If it needs specific setup (env vars, migrations), document it
- If it's a UI change, include screenshots or a deploy preview link
Responding to Review Feedback
Good Responses
- "Good catch, fixed in abc1234" (link to fixing commit)
- "I considered that approach but went with X because [reason]. Want to discuss?"
- "Agreed this is tech debt. Created #456 to address it separately."
Bad Responses
- "It works" (doesn't address the concern)
- Making the change without acknowledging the feedback
- Arguing about style preferences (defer to project conventions)
Rules
- Respond to every comment (even if just a thumbs up)
- Don't resolve other people's comments - let the reviewer resolve
- Push fixes as new commits (not force-push) so reviewer can see the delta
- Squash at merge time, not during review
PR Etiquette
| Do | Don't |
| Keep PRs focused (one concern) | Mix refactoring with features |
| Update PR description when scope changes | Let description become stale |
| Tag specific reviewers who know the area | Request review from everyone |
| Respond to feedback within 24h | Let review comments go stale |
| Re-request review after addressing feedback | Assume reviewer will check back |
| Close stale PRs (> 2 weeks without activity) | Let zombie PRs accumulate |
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.

