agentleFS
alex-voloshin-devalex-voloshin-dev/ai-skills/.agents/skills/create-pr/SKILL.md

create-pr

Skill2 starsChanged 7 months agoMITView on GitHub

Create a pull request — collect diff, generate PR description with context, apply checklist, and push. Use when ready to submit code for review.

  • Commits and pushes

91 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use update-pr, create-issue and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    update-pr

    Update the pull request for the current session. Use when the user wants to push new changes to an existing PR.

    Also in 5 projects that use this

  • sahinSkill

    create-issue

    Also in 9 projects that use this

  • anderson-c-santosSkill

    merge-pr

    Merge a GitHub PR after all checks pass. Trigger for: /merge-pr, merge PR, approve and merge, squash merge, ship PR. Verifies CI, draft state, and approvals, then merges with the correct strategy based on branch type.

    Also in 3 projects that use this

  • SentrySkill

    fix-ci

    Diagnose and fix failing CI on a PR. Load repo-setup first.

    Also in 6 projects that use this

  • Microsoft AzureSkill

    review-pr

    Review a pull request for functional issues, coding guideline adherence, and best practices. Use this when asked to review, inspect, or provide feedback on a pull request (Azure DevOps or GitHub). Proposes comments for user approval before posting.

    Also in 21 projects that use this

  • 32103210Skill

    create-rule

    Create Cursor rules for persistent AI guidance. Use when you want to create a rule, add coding standards, set up project conventions, configure file-specific patterns, create RULE.md files, or asks about .cursor/rules/ or AGENTS.md.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 82 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Read AGENTS.md at the project root to identify:

    line 13
  2. Very specific:

    If uncommitted changes exist, suggest running /pre-commit first.

    line 35
  3. Distinctive:

    Add labels (feature, bugfix, priority)

    line 135
  4. Very specific:

    Run /code-review for self-review before requesting others

    line 138

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

Create Pull Request

Structured workflow for creating a well-documented pull request. Collects changes, generates description, applies quality checklist.

0. Gather Context

Read AGENTS.md at the project root to identify:

  • Git conventions (commit message format, branch naming)
  • PR template or description conventions
  • Required reviewers or review process

1. Verify Branch State

// turbo
git branch --show-current
// turbo
git status --short

Check:

  • Current branch is NOT main or master (never create PRs from default branch)
  • Working directory is clean (all changes committed)
  • Branch is up to date with remote

If uncommitted changes exist, suggest running /pre-commit first.

2. Collect Diff

// turbo
git log main..HEAD --oneline
// turbo
git diff main..HEAD --stat

Analyze the changes to understand:

  • What changed (files, modules, functions)
  • Why it changed (feature, bugfix, refactor, chore)
  • Scope (how many files, which areas of the codebase)
  • Risk (breaking changes, migration, infra changes)

3. Generate PR Description

Produce a structured PR description:

## Summary

[1-2 sentence summary of what this PR does and why]

## Changes

- [Bullet list of key changes, grouped by area]
- [Focus on WHAT and WHY, not HOW]

## Type

- [ ] Feature
- [ ] Bug fix
- [ ] Refactor
- [ ] Chore (deps, CI, docs)
- [ ] Breaking change

## Testing

- [How was this tested?]
- [Which test suites were run?]
- [Manual testing steps if applicable]

## Screenshots / Evidence

[If UI changes — before/after screenshots]
[If performance — benchmark results]

## Checklist

- [ ] Code follows project conventions
- [ ] Tests added/updated for new logic
- [ ] Documentation updated if needed
- [ ] No secrets or PII in code
- [ ] Breaking changes documented
- [ ] Migration steps documented (if applicable)

4. Determine PR Title

Format: <type>(<scope>): <description>

Types: feat, fix, refactor, chore, docs, test, perf, ci

Examples:

  • feat(auth): add OAuth2 login with Google
  • fix(api): handle null response from payment gateway
  • refactor(db): migrate from raw SQL to ORM queries

5. Push and Create

Present the PR description to the user for review.

After approval:

git push -u origin <branch-name>

⚠️ Do NOT run git push without user confirmation.

Provide the link format for creating the PR in the browser:

https://github.com/<owner>/<repo>/compare/main...<branch-name>

Or if using GitHub CLI:

gh pr create --title "<title>" --body "<description>" --base main

6. Post-Create

Suggest next steps:

  • Share PR link with reviewers
  • Add labels (feature, bugfix, priority)
  • Link to related issues
  • Request specific reviewers based on changed files
  • Run /code-review for self-review before requesting others

Integration

  • Preceded by: /pre-commit (quality gate passed)
  • Followed by: /code-review

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.