Automates the GitHub PR workflow by linting, formatting, testing, committing changes, and opening a pull request with a summary.

Install

mkdir -p .claude/skills/auto-pr && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17424" && unzip -o skill.zip -d .claude/skills/auto-pr && rm skill.zip

Installs to .claude/skills/auto-pr

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

auto_pr — an agent skill by splendidsummer.
43 chars · catalog descriptionno explicit “when” trigger
Intermediate

Key capabilities

  • Run `ruff check .` and fix issues
  • Run `black .` for code formatting
  • Run `pytest -q` to ensure tests pass
  • Create a feature or fix branch with a specific naming convention
  • Commit changes with conventional commit messages
  • Push the branch to GitHub and open a pull request

How it works

This skill automates the process of creating a GitHub pull request by running linters, formatters, tests, creating a branch, committing changes, and pushing to GitHub.

Inputs & outputs

You give it
Current code changes in a local repository
You get back
A GitHub pull request with branch name, commit hash, title, and URL

When to use auto_pr

  • Create a pull request for a new feature
  • Open a PR for a bug fix after verifying tests
  • Format code and run linting before pushing changes
  • Draft a structured PR summary based on changes

About this skill

Skill: auto_pr

Goal

Create a clean GitHub PR for the current changes using MCP GitHub.

Rules

  • Keep PR small and focused.
  • Ensure all tests pass.
  • Ensure formatting (ruff/black) passes.
  • PR must contain a clear title and bullet-point summary.

Steps

  1. Run ruff check . and fix issues.
  2. Run black ..
  3. Run pytest -q and ensure green.
  4. Create a branch: feature/<short-name> or fix/<short-name>.
  5. Commit with message:
    • feat: ...
    • fix: ...
    • test: ...
    • docs: ...
  6. Push branch.
  7. Use MCP GitHub to open PR.
  8. Fill PR template:
    • What changed
    • Why
    • How tested

Output format

  • Branch name
  • Commit hash
  • PR title
  • PR URL

When not to use it

  • When the goal is not to create a GitHub pull request for current changes

Limitations

  • Requires changes to be small and focused for the PR
  • Requires all tests to pass before opening a PR
  • Requires formatting checks to pass

How it compares

This skill automates the entire pull request workflow, including linting, formatting, and testing, providing a structured and consistent approach compared to manual steps.

Compared to similar skills

auto_pr side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
auto_pr (this skill)05moNo flagsIntermediate
dev25moReviewAdvanced
testing01moReviewAdvanced
ci-pr-helper06moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry