agentleFS
AvinashPAvinashP/AgentsAtlas/skills/creating-pr/SKILL.md

creating-pr

Skill7 starsChanged 9 months agoMITView on GitHub

Creates pull requests with quality descriptions. Use when asked to create a PR, open a pull request, or ship code for review. Requires test verification before PR creation.

  • Commits and pushes

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 5

    Distinctive

    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:

    Create pull requests with clear descriptions that enable efficient reviews.

    line 8
  2. Distinctive:

    Before creating any PR, verify tests pass.

    line 16
  3. Distinctive:

    Keep under 72 characters. Use imperative mood.

    line 79
  4. Distinctive:

    Add screenshots for UI changes

    line 174
  5. Distinctive:

    Create PR with failing tests

    line 177

“Common” is measured: kept by at least 6 in 10 of the 3 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.

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

Creating PR Skill

Create pull requests with clear descriptions that enable efficient reviews.

The Iron Law

NO PR WITHOUT PASSING TESTS

Before creating any PR, verify tests pass. No exceptions.

Workflow

1. Verify Tests Pass (MANDATORY)

Run full test suite before anything else:

# Run tests and verify output
npm test        # or pytest, go test, etc.

# Check exit code
echo $?         # Must be 0

If tests fail: Fix them first. Do not proceed to PR.

2. Verify Branch State

# Check current branch
git branch --show-current

# Ensure all changes committed
git status

# Check commits to be included
git log main..HEAD --oneline

# Check diff against target branch
git diff main...HEAD --stat

3. Push Branch

# Push and set upstream
git push -u origin <branch-name>

4. Analyze Changes

Understand the full scope:

  • What commits are included?
  • What files changed?
  • What's the user-visible impact?
# View all commits
git log main..HEAD

# View full diff
git diff main...HEAD

5. Write PR Description

Title format:

<type>: <short description>

Keep under 72 characters. Use imperative mood.

Description structure:

## Summary
Brief explanation of what this PR does and why.

## Changes
- Bullet point of key changes
- Another change
- Third change

## Testing
How to test this PR:
1. Step one
2. Step two
3. Expected result

## Verification
- [x] All tests pass
- [x] Linting passes
- [ ] Manual testing completed

## Notes for Reviewers
- Any specific areas to focus on
- Known limitations

6. Create the PR

gh pr create --title "type: description" --body "$(cat <<'EOF'
## Summary
What and why.

## Changes
- Change 1
- Change 2

## Testing
1. How to test
2. Expected result

## Verification
- [x] All tests pass
EOF
)"

Quick Reference

PR Title Prefixes

PrefixWhen to Use
feat:New feature
fix:Bug fix
refactor:Code restructuring
docs:Documentation
test:Test changes
chore:Maintenance
perf:Performance

Good vs Bad Titles

# Good
feat: add user profile settings page
fix: prevent duplicate form submissions
refactor: extract authentication to middleware

# Bad
Update code
WIP
Fixes
John's changes

Pre-PR Checklist

Before creating PR:

  • Tests pass locally
  • Linting passes
  • No merge conflicts with target branch
  • Commits are clean and well-messaged
  • PR description is complete

Description Tips

Do:

  • Lead with "why" not "what"
  • Include testing instructions
  • Note breaking changes
  • Reference issues/tickets
  • Add screenshots for UI changes

Don't:

  • Create PR with failing tests
  • Repeat the diff in prose
  • Leave empty description
  • Forget to mention risks

Linking Issues

## Summary
Implement user preferences dashboard.

Closes #123
Fixes #456
Related to #789

Draft PRs

Use drafts when:

  • Work in progress
  • Want early feedback
  • CI needs to run first
gh pr create --draft --title "WIP: feature name"

PR Templates

Feature PR

## Summary
Add [feature] to allow users to [benefit].

## Changes
- Add [component/module]
- Update [existing code]
- Add [tests/docs]

## Testing
1. Navigate to [location]
2. Click [action]
3. Verify [expected behavior]

## Verification
- [x] Tests pass
- [x] Linting passes
- [ ] Manual testing done

## Checklist
- [ ] Tests added
- [ ] Documentation updated
- [ ] No console errors

Bug Fix PR

## Summary
Fix [bug] that caused [problem] when [condition].

## Root Cause
[Explanation of why the bug occurred]

## Solution
[How this PR fixes it]

## Testing
1. Previously: [reproduce bug]
2. Now: [verify fix]
3. Regression: [verify no side effects]

## Verification
- [x] Tests pass (including new regression test)
- [x] Bug no longer reproducible

Fixes #[issue-number]

Refactoring PR

## Summary
Refactor [area] to [improvement].

## Motivation
- [Why this refactoring is needed]
- [What problems it solves]

## Changes
- Extract [X] into [Y]
- Rename [A] to [B]
- Consolidate [duplicated code]

## Verification
- [x] All existing tests pass
- [x] No functional changes
- [x] Performance unchanged

## Notes
This is a pure refactoring with no behavioral changes.

See Also

  • templates.md - More PR templates by scenario

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.