agentleFS
peopleforresterpeopleforrester/claude-dotfiles/skills/git/pr/SKILL.md

pr

Skill3 starsChanged 7 months agoMITView on GitHub

Generate a well-structured pull request with summary and test plan

  • Commits and pushes

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    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:

    Before creating the PR:

    line 22
  2. Distinctive:

    Create PR using GitHub CLI:

    line 46
  3. Distinctive:

    Follow conventional commit format:

    line 88
  4. Distinctive:

    Prefer smaller PRs for faster reviews and easier rollbacks.

    line 179
  5. Distinctive:

    Add labels for categorization

    line 200
  6. Distinctive:

    Use PR templates if project has them

    line 201
  7. Distinctive:

    Keep PRs focused on single concern

    line 202

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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 - Create Pull Request

Generate a well-structured pull request.

Usage

/pr                    # Create PR for current branch
/pr [base-branch]      # Create PR targeting specific base
/pr main               # Create PR to main

Process

1. Gather Information

Before creating the PR:

# Check current branch and status
git branch --show-current
git status

# Review commits to include
git log main..HEAD --oneline

# Review all changes
git diff main..HEAD

2. Analyze Changes

Examine the changes to understand:

  • What features/fixes are included
  • What files were modified
  • Any breaking changes
  • Dependencies added/removed

3. Generate PR

Create PR using GitHub CLI:

gh pr create \
  --title "feat: Add user authentication" \
  --body "$(cat <<'EOF'
## Summary

Brief description of what this PR does and why.

## Changes

- Added OAuth integration with Google
- Created user session management
- Added login/logout endpoints

## Testing

- [ ] Unit tests added for auth service
- [ ] Integration tests for OAuth flow
- [ ] Manual testing completed

## Screenshots

[If applicable]

## Checklist

- [ ] Tests pass
- [ ] Documentation updated
- [ ] No breaking changes (or documented)
- [ ] Reviewed my own code

## Related Issues

Closes #123
EOF
)"

PR Title Format

Follow conventional commit format:

<type>: <description>

Types:
- feat:     New feature
- fix:      Bug fix
- docs:     Documentation only
- style:    Formatting, no code change
- refactor: Code change, no feature/fix
- perf:     Performance improvement
- test:     Adding tests
- chore:    Maintenance tasks

Examples:

feat: Add user authentication with OAuth
fix: Resolve cart calculation rounding error
docs: Update API documentation for v2
refactor: Extract payment processing to service

PR Body Template

## Summary

[1-2 sentences describing what this PR does]

## Motivation

[Why is this change needed? Link to issue/discussion]

## Changes

- [Change 1]
- [Change 2]
- [Change 3]

## Testing

Describe testing performed:
- [ ] Unit tests
- [ ] Integration tests
- [ ] Manual testing

### Test Instructions

1. [Step 1]
2. [Step 2]
3. [Expected result]

## Screenshots

[If UI changes, include before/after screenshots]

| Before | After |
|--------|-------|
| [img]  | [img] |

## Breaking Changes

[List any breaking changes and migration steps]

## Checklist

- [ ] Tests pass locally
- [ ] Code follows project style
- [ ] Self-reviewed
- [ ] Documentation updated
- [ ] No sensitive data exposed

## Related

- Closes #[issue]
- Related to #[issue]
- Depends on #[PR]

Size Guidelines

SizeLines ChangedReview Time
XS< 50Minutes
S50-200< 1 hour
M200-5001-2 hours
L500-1000Half day
XL> 1000Consider splitting

Prefer smaller PRs for faster reviews and easier rollbacks.

Draft PRs

For work in progress:

gh pr create --draft \
  --title "WIP: Feature X" \
  --body "Work in progress - not ready for review"

Convert to ready when complete:

gh pr ready

Tips

  • Link to related issues with "Closes #123"
  • Request specific reviewers if needed
  • Add labels for categorization
  • Use PR templates if project has them
  • Keep PRs focused on single concern

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.

Reviews can't be read right now.

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.