pr-prep
Skill8 starsChanged 4 months agoMITView on GitHub
Load this when the user is preparing to open a pull request. Walks the diff hygiene + commit message + non-negotiables sweep + description-template checklist. Reminds the user to run typecheck/lint/tests/build before pushing. Triggers — "open PR", "prep PR", "ready to ship", "ready to push", "before I push", "PR description".
- Reads credentials
5 other projects use a version of this.
Adopted by
Most recently taken up by
- Job-Yang/jobbyang-ai-skillstheir own version, first seen Nov 29, 2026
- Job-Yang/jobyang-ai-skillstheir own version, first seen Nov 29, 2026
- EffortlessMetrics/demo-swarmtheir own version, first seen Oct 17, 2026
- AllThingsSmitty/proven-skillstheir own version, first seen Oct 6, 2026
- xabux/claude-skillstheir own version, first seen Apr 25, 2026
Other versions5 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 5
- Job-Yang/jobbyang-ai-skills★ 108same name
- Job-Yang/jobyang-ai-skills★ 108same name
- AllThingsSmitty/proven-skills★ 1same name
- EffortlessMetrics/demo-swarm★ 0same name
- xabux/claude-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 repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- ai-dev-workflowCopilot instructions
- component-conventionsSkill
- loop-engineeringSkill
- pm-clarifySkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 5 are distinctive, and 2 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 12
Run git status and git diff --stat first.
- Very specific: line 13
No stray files: console.logs, .env changes, .DS_Store, generated artifacts, commented-out code.
- Distinctive: line 14
No unrelated formatting churn.
- Distinctive: line 15
No lockfile changes unless a dependency was intentionally added — and if a dependency was added, that needs the team's approval first …
- Distinctive: line 39
All must pass. Do not push red.
- Very specific: line 45
If the team uses Conventional Commits, follow the prefix (feat:, fix:, refactor:, test:, chore:, docs:).
- Distinctive: line 84
If the diff is over ~300 LOC or 5 files, justify the size in the description or split the PR.
“Common” is measured: kept by at least 6 in 10 of the 3 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
PR Prep — playbook
Apply this before pushing a branch or opening a PR. Run in the main context. This is a checklist, not a delegated task.
1. Diff hygiene
- Run
git statusandgit diff --statfirst. Confirm the changeset matches what the PR claims to do. - No stray files:
console.logs,.envchanges,.DS_Store, generated artifacts, commented-out code. - No unrelated formatting churn. If a file was reformatted incidentally, revert the unrelated hunks.
- No lockfile changes unless a dependency was intentionally added — and if a dependency was added, that needs the team's approval first (CLAUDE.md non-negotiable).
2. Non-negotiables sweep
Grep the diff for these. Any hit blocks the PR.
\bany\bin.ts/.tsxfiles — should beunknownand narrowed.fetch(outsidesrc/api/client.ts— should go through the shared Axios instance.style={{with static values — should be a CSS Module class.console\.(log|warn|error)— should use the logger utility if one exists; otherwise remove.- New entries in
package.jsondependencies/devDependenciesthat weren't pre-approved. - New
index.tsfiles that only re-export — barrels are forbidden. - Class components (
extends React.Component) — functional only.
3. Test + type + build gates (run before pushing)
npx tsc --noEmit
npx eslint . --max-warnings=0
npx jest --silent
npx vite build # or: npm run build
npx playwright test # only if your change touches a critical user flowAll must pass. Do not push red.
4. Commit messages
- One commit per logical change. If the work was iterative, squash before pushing.
- Subject line: imperative mood, ≤72 chars. ("Add order confirmation modal" — not "added" or "adds".)
- If the team uses Conventional Commits, follow the prefix (
feat:,fix:,refactor:,test:,chore:,docs:). - Body: explain why, not what. The diff already shows the what.
5. PR description template
## Summary
<1–3 sentences: what changed and why.>
## What's in the diff
- <feature/module touched> — <one line>
- <feature/module touched> — <one line>
## Why this approach
<Trade-offs considered, alternatives rejected with one-line reason each.>
## Testing
- [ ] Typecheck (`tsc --noEmit`) — clean
- [ ] Lint (`eslint .`) — clean
- [ ] Unit (`jest`) — <pass count>/<total>
- [ ] Build (`vite build`) — succeeds
- [ ] E2E (`playwright test`) — <pass count>/<total> (only if relevant)
- [ ] Manual smoke: <what you clicked through>
## Accessibility
- [ ] Keyboard-navigable
- [ ] Focus management (modals trap + restore)
- [ ] Semantic HTML (`<button>`, `<a>`, `<dialog>`, `<nav>`)
- [ ] Accessible names on form inputs and icon-only buttons
## Risk + rollback
<What could break in prod, and how to revert quickly if it does.>
## Screenshots / recordings
<For any UI change.>6. Reviewer-friendly polish
- If the diff is over ~300 LOC or 5 files, justify the size in the description or split the PR.
- Self-review the diff in the PR UI before requesting review — you will catch half the issues yourself.
- Link the issue/ticket if there is one. Reference any preceding architect plan or
branch-plan.md.
7. Before clicking "Create PR"
- Branch is rebased onto latest
main(or your team's trunk). - CI is green locally on this exact SHA.
- The description answers: what, why, how to test, what could go wrong.
- No
[wip]/[draft]markers unless you actually want a draft PR.
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.

