pr
Skill1 starsChanged 6 days agoMITView on GitHub
Generates a pull request title and body from the current branch's commits and diff vs main. Conventional-commit-aware: groups changes by type, surfaces breaking changes prominently. Use when user says "create a PR", "write PR description", "open PR", "make a pull request", or invokes /pr. Shows draft for approval, then runs `gh pr create` only on confirmation.
- Commits and pushes
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
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 16
Run these in parallel:
- Distinctive: line 28
If branch has one dominant type, use it.
- Distinctive: line 100
fix: add total count field to favorites repository response
≈ “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
PR Skill
Generate a PR title + body from branch diff, confirm, then optionally create via gh pr create.
Workflow
- Run these in parallel:
git log main..HEAD --oneline— list commits on branchgit diff main..HEAD --stat— files changedgit diff main..HEAD— full diff (for context)
- Draft PR title and body (spec below)
- Show draft in code block, ask: approve / edit / cancel
- On approval: run
gh pr create --title "..." --body "$(cat <<'EOF' ... EOF)"targetingmain
PR Title
- Max 70 chars
- Format mirrors conventional commit subject:
<type>(<scope>): <summary> - If branch has one dominant type, use it. Mixed changes → use most impactful type
- Imperative mood, no trailing period
- Breaking change → append
!:feat(api)!: rename endpoint
PR Body Template
## Summary
- <bullet: what changed and why — focus on intent, not file names>
- <bullet>
- <bullet if needed>
## Changes
<grouped by type, only types that appear>
**feat:** <brief description>
**fix:** <brief description>
**refactor:** <brief description>
## Breaking Changes
> BREAKING CHANGE: <description> — only include if present, else omit section entirely
## Test plan
- [ ] <thing to verify manually>
- [ ] <edge case to check>```
## Rules
**Summary bullets:**
- 1–4 bullets, each one sentence
- WHY over WHAT — "allows users to see total favorites" not "added count field to response"
- Skip if covered by Changes section
**Changes section:**
- Group by conventional commit type
- Skip types with no commits
- One line per type, not per commit
**Breaking Changes:**
- Only include if any commit has `!` or `BREAKING CHANGE:` footer
- Quote the breaking change description verbatim from the commit
**Test plan:**
- 2–5 items, concrete and checkable
- Based on what actually changed — not generic boilerplate
- Include: happy path, edge cases that the diff touches, regression risk areas
**Never include:**
- File paths as the main description ("changed favorites-store.ts")
- Commit hashes
- "This PR...", "I", "we"
- Redundant sections (omit Breaking Changes if none, omit Changes if only one commit)
- AI attribution, including "Generated with Claude Code" footers
## Scope inference from files
- `app/pages/` → page name
- `app/assets/store/` → store name
- `app/components/` → component name
- `backend/src/` → backend module
- mixed frontend+backend → omit scope, note in summary
## Examples
Single-focus branch:fix(favorites): correct count endpoint and store sync
Summary
- Favorites count was returning wrong total due to missing aggregation in repository layer
- Frontend store now reads from dedicated
/favorites/countendpoint
Changes
fix: add total count field to favorites repository response feat: expose GET /favorites/count route
Test plan
- Favorite a recipe, verify count badge updates in account header
- Unfavorite, verify count decrements
- Hard refresh — count should persist from server```
Mixed changes:
feat(dashboard)!: redesign account page with favorites count
## Summary
- Account page now shows total favorited recipes in header badge
- Favorites store updated to track count separately from list
## Changes
**feat:** favorites count badge in account header
**fix:** store no longer refetches full list on count-only updates
**refactor:** extract favorites API calls into composable
## Breaking Changes
> BREAKING CHANGE: FavoritesStore.items no longer auto-fetches on mount — call fetchFavorites() explicitly
## Test plan
- [ ] Badge shows correct count on page load
- [ ] Count updates immediately on favorite/unfavorite without full reload
- [ ] Old code calling store directly still works or migration path is clear```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.

