creating-pull-requests
Skill4 starsChanged 3 months agoApache-2.0View on GitHub
Write clear, size-gated PR descriptions with mandatory AI disclosure. Load `ste100` for prose. Triggers: \"create a PR\", \"open a pull request\", \"update PR description\", or pushes a branch with PR intent.
- Commits and pushes
6 other projects use a version of this.
Adopted by
Most recently taken up by
- thesammykins/skillstheir own version, first seen Nov 1, 2026
- gerph/riscos-agent-skillstheir own version, first seen Nov 1, 2026
- lightdash/lightdashtheir own version, first seen Oct 8, 2026
- streamlit/streamlittheir own version, first seen Oct 8, 2026
- dork-labs/dorkostheir own version, first seen Sep 26, 2026
- codecharmhq/claude-code-skillstheir own version, first seen May 17, 2026
Other versions6 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 6
- streamlit/streamlit★ 46ksame name
- lightdash/lightdash★ 6.2ksame name
- dork-labs/dorkos★ 11same name
- gerph/riscos-agent-skills★ 4same name
- codecharmhq/claude-code-skills★ 1same name
- thesammykins/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 repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- 12-factor-appSkill
- caveman-commitSkill
- caveman-reviewSkill
- cavemanSkill
- conventional-commitsSkill
- deep-researchSkill
- dispatching-parallel-agentsSkill
- domain-modelingSkill
- finishing-a-development-branchSkill
- forge-cleanupSkill
- forge-docsSkill
- forge-eu-accessibilitySkill
- forge-flowSkill
- forge-initSkill
- forge-seoSkill
- forge-setupSkill
- forgeSkill
- forge-tailwindcss-conventionsSkill
- frontend-designSkill
- git-issue-trackerSkill
- grillingSkill
- kiss-principleSkill
- loopsSkill
- planning-and-task-breakdownSkill
- prototypeSkill
- pr-resolveSkill
- pr-reviewSkill
- resolving-merge-conflictsSkill
- ste100Skill
- subagent-driven-developmentSkill
- use-git-identitySkill
- using-git-worktreesSkill
- verification-before-completionSkill
- wayfinderSkill
The file
We split this skill into the rules it gives an agent
8 rules. 0 are common, 4 are distinctive, and 4 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
4
Distinctive
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Draft mode: Always create PRs with --draft.
- Distinctive: line 32
Read the actual diff. Search for supporting evidence — don't ask the user for what you can find.
- Distinctive: line 38
Check git diff --stat line count.
- Distinctive: line 48
Done when: every section written earns its space for this size.
- Very specific: line 64
Write to temp file, use --body-file:
- Distinctive: line 116
Commit-message archaeology ("In the first commit I did X...")
- Very specific: line 121
Openers: Never start with "This PR", "This change", "This commit", "In this pull request".
- Very specific: line 129
Before/after tables, mermaid (<15 nodes), code snippets, screenshots — only when faster than prose.
“Common” is measured: kept by at least 6 in 10 of the 5 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
Creating & Updating Pull Requests
A PR description manages a reviewer's attention. Optimize for review speed: orient in 30 seconds, answer "what changed, why, and where do I start reading?" before they open the diff.
Critical rules
- Draft mode. Always create PRs with
--draft. User marks ready. - Conventional title. PR title is a Conventional Commit:
type(scope): summary(lowercase scope, imperative summary, no trailing period). The squash merge uses the PR title as the commit message — non-conventional titles break CI release parsing. Loadconventional-commitsfor the full spec. - AI disclosure. End every body with:
---+_This PR description was generated with [AI assistance](https://raw.githubusercontent.com/tdhopper/dotfiles2.0/master/.claude/skills/creating-pull-requests/SKILL.md)._No agent/model/tool named anywhere. - STE100 prose. Load
ste100before drafting. Its rules govern every sentence. - Size gate. Classify by
git diff --statbefore drafting. Lock in the section budget.
Steps
1. Detect & gather
gh pr view --json number,title,body,baseRefName,url 2>/dev/null
BASE=$(gh pr view --json baseRefName -q '.baseRefName' 2>/dev/null || echo "main")
git diff $BASE...HEAD # full diff
git diff $BASE...HEAD --stat # shape
git log $BASE..HEAD --oneline # commitsRead the actual diff. Search for supporting evidence — don't ask the user for what you can find.
Done when: diff read, shape known, links gathered.
2. Classify & draft
Check git diff --stat line count. Lock in size gate before writing:
| Size | Lines | Sections |
| Small | < 50 | TL;DR only |
| Medium | 50–200 | TL;DR + files table + ≤2 more |
| Large | 200+ | All that apply (files table + Reviewer notes mandatory) |
Sketch TL;DR first — it forces clarity. Fill only sections the gate allows.
Done when: every section written earns its space for this size.
3. Post-generation review
Re-read the diff. For each sentence:
- Could the reviewer learn this from the diff? Cut it.
- Starts with "This PR", "This change", "In this pull request"? Rewrite.
- Section earning its space for this size? Cut the section.
- Would you say this out loud? If not, simplify.
Confirm AI disclosure line closes the body, generic and unbranded.
Done when: checklist passes, disclosure in place.
4. Apply
Write to temp file, use --body-file:
# Create
gh pr create --draft --title "..." --body-file /tmp/pr-body.md
# Update
gh pr edit <number> --title "..." --body-file /tmp/pr-body.mdNever pass inline via HEREDOC or --body.
Done when: PR exists with body; on update, body reflects current full branch state (not a changelog).
Reference
Title format
Conventional Commit: type(scope): summary. Load conventional-commits for the full spec. type is one of feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert. scope is lowercase, in parentheses. summary is imperative, present tense, lowercase except proper nouns (Bigtable, NATS JetStream), no trailing period. Example: fix(caching): use exclusive end indices for chunk boundaries.
In this repository, scope is the name of the touched skill (e.g. fix(creating-pull-requests): ...). The example scopes in this file (caching, chunking, ingestion) show external-repository usage.
Non-conventional titles break release CI: the squash merge turns the PR title into the commit message, and semantic versioning parses that message. Never ship a PR without a conventional title.
Noun stacking cap: 2 consecutive nouns max. Three+ creates a garden-path — rewrite.
TL;DR contract
Two sentences. First: problem with concrete number/error/example. Second: what the PR does. If it can't fit in two clean sentences, you don't understand the PR well enough.
Files table (medium+)
Mark "start here" entry point. Every file needs a one-line "Why".
Sections (use only what earns space)
| Section | When to include |
| Why | Problem not covered by TL;DR — before/after table, screenshot, numbers |
| How | Design decisions (not implementation play-by-play); sequential = numbered, parallel = bullets |
| Reviewer notes | One bullet per non-obvious fact. Bold headline. End with focus-area bullet if needed. |
| Visual aids | Before/after tables, mermaid diagrams, code snippets, screenshots — only when faster than prose. Use <details> for supporting evidence. |
| Tests | What's covered, what isn't, how to run. |
| Follow-up | Out-of-scope work this PR sets up — only if deliberately incomplete. |
| Links | Ticket, Slack thread, related PRs. Inline essential context; link for depth. |
Cut these every time
- File-by-file narration (files table + diff cover this)
- Implementation play-by-play (describe design, not your steps)
- Motivation the ticket already explains (link it, one sentence)
- Obvious type/signature changes restated (say why it changed)
- Defensive disclaimers (put specific questions in Reviewer notes)
- Commit-message archaeology ("In the first commit I did X...")
- Any sentence the diff already tells the reviewer
Writing quality (disclosed AI still earns attention)
- Openers: Never start with "This PR", "This change", "This commit", "In this pull request". Start with the subject/problem/fact.
- Concrete > vague: "p50 dropped 45 ms → 3 ms" not "improved significantly".
- Variety: Mix sentence structures. Repetitive bullets are a tell.
- Self-contained: Essential context inline. Links for depth, not sole reference.
- 6-month test: A stranger reading
git logunderstands why.
Visual aids
Before/after tables, mermaid (<15 nodes), code snippets, screenshots — only when faster than prose. <details> for supporting evidence. > [!IMPORTANT] for breaking changes. Never decorate — illustrate.
Reviewer-friendliness checklist
Before submitting:
- AI disclosure (generic, unbranded)
- Size gate honored
- Title: Conventional Commit
type(scope): summary, ≤2 noun stack - TL;DR: symptom + fix, concrete number
- No weak openers
- No diff echoing
- Files table marks "start here" (medium+)
- Focus area explicit if needed
- Visual aids: present where faster, absent where decorative
- 6-month test passes
Examples
Small PR — one-concern bug fix (~20 lines)
Title: fix(chunking): use exclusive end indices for chunk boundaries
## TL;DR
Chunking a 10-second stereo clip at 5-second boundaries produced three chunks
instead of two — the boundary loop used `<=` instead of `<`, generating a
zero-length trailing chunk. Now uses exclusive end indices.
[DIFF-1234](url)Medium PR — routing change with visual aid
Title: feat(caching): route small converter outputs to Bigtable
## TL;DR
Converter cache reads for small features (< 50 kB) hit GCS with per-object
latency — p50 of 45 ms adds up to ~8 minutes per preprocessing job on a
10k-track dataset. `RoutingCacheContext` sends small features to Bigtable
(p50: 3 ms) and keeps large features on GCS.
**Files to review (5, +287 / -34):**
| File | Why |
|---|---|
| `core/utils/caching.py` *(start here)* | New `RoutingCacheContext` — all routing logic lives here. |
| `core/constants.py` | `FeatureSizeHint` enum and Bigtable constants. |
| `converters/base.py` | Converters declare `feature_size_hint`. |
| `tests/.../test_routing_cache.py` *(new)* | 12 tests covering routing, fallback, threshold edge cases. |
| `kubernetes/bigtable/bigtable.yaml` | Column family for converter cache. |
## Why
| | GCS (current) | Bigtable (this PR) |
|---|---|---|
| p50 read latency | 45 ms | 3 ms |
| 10k-track job overhead | ~8 min | ~30 sec |
## Reviewer notes
- **Fallback on Bigtable failure.** Retries once, falls back to GCS, logs warning.
- **Threshold is declared, not measured.** Converters declare hint statically.
- No migration needed: existing GCS entries stay; new writes route by hint.
- **Focus area:** fallback logic in `RoutingCacheContext.write()` — concurrent writes.
> [!IMPORTANT]
> Cache key format unchanged. Existing GCS entries remain valid.
<details>
<summary>Bigtable capacity planning</summary>
Current cache: ~2M entries/day, 95% under 50 kB. Bigtable (3 nodes, SSD)
handles 10K reads/sec at p99 < 10 ms. Headroom: 5x current peak.
</details>
## Links
- [DIFF-5678](url)
- [Bigtable capacity planning doc](url)External reference
Full worked examples, style tables, and the complete template live in PR-EXAMPLES.md — load when drafting medium/large PRs. This file stays lean.
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.

