agentleFS
e-reitbauere-reitbauer/habits/skills/pr/SKILL.md

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
  1. Distinctive:

    Run these in parallel:

    line 16
  2. Distinctive:

    If branch has one dominant type, use it.

    line 28
  3. Distinctive:

    fix: add total count field to favorites repository response

    line 100

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

PR Skill

Generate a PR title + body from branch diff, confirm, then optionally create via gh pr create.

Workflow

  1. Run these in parallel:
    • git log main..HEAD --oneline — list commits on branch
    • git diff main..HEAD --stat — files changed
    • git diff main..HEAD — full diff (for context)
  2. Draft PR title and body (spec below)
  3. Show draft in code block, ask: approve / edit / cancel
  4. On approval: run gh pr create --title "..." --body "$(cat <<'EOF' ... EOF)" targeting main

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/count endpoint

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```

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.