write-pull-requests
Skill7 starsChanged 15 days agoMITView on GitHub
Use when opening or updating a pull request — produces a bug-fix or feature description reviewers from junior to CTO can follow end to end.
- Commits and pushes
1 other project uses a version of this.
Adopted by
Most recently taken up by
- VelimirMueller/claude-skillsword for word, first seen Oct 11, 2026
Other versions1 project uses a version of this.
Word for word · 1
- VelimirMueller/claude-skills★ 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 repository156 other files it gives its agents.
- skills/swift/swiftui-design-principles/AGENTS.mdAGENTS.md
- skills/swift/ios-code-audit/CLAUDE.mdCLAUDE.md
- skills/swift/swift-focusengine-pro/llms.txtllms.txt
- build-llm-seamSkill
- build-mcp-serverSkill
- build-rag-pipelineSkill
- secure-llm-featuresSkill
- set-up-llm-evalsSkill
- build-nextjs-backendSkill
- build-supabase-edge-functionSkill
- configure-backend-testsSkill
- design-http-apiSkill
- harden-backendSkill
- scaffold-fastapi-serviceSkill
- scaffold-go-serviceSkill
- scaffold-hono-serviceSkill
- secure-supabase-rlsSkill
- set-up-backend-authSkill
- set-up-background-jobsSkill
- set-up-databaseSkill
- set-up-nextjs-supabase-authSkill
- set-up-observabilitySkill
- set-up-supabaseSkill
- build-cliSkill
- release-cliSkill
- set-up-dev-toolchainSkill
- audit-securitySkill
- audit-toolchainSkill
- extend-skillsetSkill
- promote-releaseSkill
- set-up-stack-profileSkill
- write-commit-messagesSkill
- analyze-complexitySkill
- apply-algorithmsSkill
- apply-design-patternsSkill
- apply-design-principlesSkill
- apply-solidSkill
- choose-data-structureSkill
- debug-systematicallySkill
- enforce-dependency-ruleSkill
- refactor-safelySkill
- slice-and-estimateSkill
- write-clean-testsSkill
- write-readable-codeSkill
- clean-frontend-scaffoldingSkill
- configure-accessibilitySkill
- configure-analyticsSkill
- configure-ciSkill
- configure-error-trackingSkill
- configure-lintingSkill
- configure-test-stackSkill
- configure-typescriptSkill
- create-moduleSkill
- optimize-performanceSkill
- scaffold-frontend-projectSkill
- set-up-authSkill
- set-up-design-systemSkill
- set-up-document-headSkill
- set-up-error-boundariesSkill
- set-up-feature-flagsSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 2 are distinctive, and 2 are 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 28
A repo template wins: If .github/ defines a PR template, fill *its* sections in *its* order, and carry this skill's discipline into …
- Distinctive: line 76
No invented headings, no omissions: content that fits no section goes under Notes or stays out.
- Very specific: line 85
Read the draft as the three readers of ../_shared/audience.md:
- Distinctive: line 88
Every internal codename expanded on first use?
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
Write Pull Requests
The description is the cheapest review tool the author controls: it decides whether the reviewer follows the change or reverse-engineers it. Two fixed shapes, filled from the diff and from output that actually scrolled by — never from memory of what you meant to build.
1. Audit — what does the branch ship, and does a PR exist?
BASE=$(gh repo view --json defaultBranchRef -q .defaultBranchRef.name) # or: git symbolic-ref --short refs/remotes/origin/HEAD
git log "origin/$BASE"..HEAD --oneline
git diff "origin/$BASE"...HEAD --stat # or: git show <sha>, for a PR shipping one existing commit
ls .github/PULL_REQUEST_TEMPLATE.md .github/pull_request_template.md \
.github/PULL_REQUEST_TEMPLATE/ 2>/dev/null
gh pr view --json number,title,body 2>/dev/nullChange nothing yet. Three findings decide the rest:
- The diff is the source of truth. Describe what the branch ships — including the commit you forgot — not what you remember working on.
- A repo template wins. If
.github/defines a PR template, fill its sections in its order, and carry this skill's discipline into whatever slot asks for testing or verification. The shapes below apply only when the repo has none. - An existing PR means update, not create. Step 5 edits it in place; never open a duplicate. If the body already matches what the branch now ships, exit — nothing to do.
2. Decide the shape
One question: does the branch restore intended behavior (bug fix) or change or
extend it (feature)? Mixed branches lead with the dominant shape and carry the
remainder under Notes. Edge cases (refactors, mixed branches): ./pr-patterns.md.
3. Fill the sections — exactly these, in this order
Bug fix:
- Problem — the user-visible symptom, in plain words: what broke, who hit it.
- Root cause — the mechanism actually found, not the first suspicion.
- Fix — what changed, and why this way.
- Tests — coverage added or extended; name the test that now catches the bug.
- Verification — the commands run and their observed output. Evidence, never
claims (
./pr-patterns.md). - Notes — tradeoffs, follow-ups, review hints.
Feature:
- Summary — two or three sentences a CTO reads first: what ships, why it matters.
- Problem — the need, in plain words: what couldn't be done before.
- Solution — the approach chosen; the rejected alternative in one line when the diff or commits record one — "Rejected: none recorded" is honest too.
- Implementation — the shape of the change in the code: key files, seams touched.
- Tests — coverage added or extended.
- Verification — commands run and observed output.
- Notes — tradeoffs, follow-ups, review hints.
Non-trivial PRs close with the merge checklist, posted unticked (skip it for one-line fixes and when the repo template has its own):
## Before merge
- [ ] Manual review
- [ ] Smoke tested
- [ ] Pipeline greenA box is ticked by whoever verified it — the reviewer for the manual read, the author or CI for the rest. A pre-ticked box with nothing behind it is decoration, not evidence.
No invented headings, no omissions: content that fits no section goes under Notes or
stays out. For Verification, run the commands now and paste the lines that prove the
point; anything not run is declared — "Not run: needs staging" — an honest gap beats a
fabricated pass. Write the assembled body to a temp file (mktemp, keep its path in BODY); step 5 posts that file. Any
attribution trailer your tooling requires goes last, after the checklist; it is not a
section.
4. Self-check against the audience contract
Read the draft as the three readers of ../_shared/audience.md:
- Junior — can they follow Problem → Fix (or Solution) without tribal knowledge? Every internal codename expanded on first use?
- Senior — does every claim have its evidence under Tests or Verification? A bare claim gets its proof moved in, or gets softened to what the evidence supports.
- CTO — do the headings and first lines alone carry outcome and risk?
Plain prose throughout. A sentence that reads like a release announcement gets rewritten as a fact.
5. Create or update
Show the title and body for approval first — pushing and opening a PR publish the draft.
git push -u origin HEAD # if not yet pushed
gh pr create --title "<subject>" --body-file "$BODY"
# or, when step 1 found an existing PR:
gh pr edit <number> --body-file "$BODY"The title carries the branch's dominant commit subject; a subject past ~72 characters
is compressed — keep the type(scope): and the one concern
(../write-commit-messages/SKILL.md). Editing the existing body in place is this skill's idempotency: a re-run regenerates the
description from the current diff and lands on the same PR.
6. Verify
gh pr viewExpected: one PR for the branch; six (bug fix) or seven (feature) sections in the fixed order, closed by the Before-merge checklist (non-trivial PRs) — or the repo template's own; every Verification entry is a command plus its observed output, not an adjective.
References
- ./pr-patterns.md — why evidence beats assertion, Problem vs Summary, the shape decision, a filled example, when to deviate.
- ../_shared/audience.md — the junior-to-CTO contract step 4 checks against.
- ../write-commit-messages/SKILL.md — the commit subjects the title and Summary draw from.
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.

