Creates high-quality PRs with conventional commit standards and automated descriptions.

Install

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

Installs to .claude/skills/create-pr-rainerseventeen

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.

Automate GitHub Pull Request creation for this Astro blog project. Use when changes are committed and you need to create a PR with an auto-generated conventional-commit title and a concise description.
201 chars✓ has a “when” trigger
Intermediate

Key capabilities

  • Automate GitHub Pull Request creation
  • Validate branch state before PR creation
  • Gather PR context from git history
  • Generate conventional-commit compliant PR titles
  • Create PR descriptions using a template

How it works

The skill automates GitHub Pull Request creation by validating the branch state, gathering context from git history, and generating a conventional-commit compliant title and a templated description. It then uses the GitHub MCP tool to create the PR.

Inputs & outputs

You give it
Committed changes on a non-default git branch
You get back
A GitHub Pull Request with an auto-generated conventional-commit title and a concise description

When to use create-pr

  • Creating a PR
  • Opening a draft pull request
  • Automating PR creation workflow
  • Linking PRs to commits

About this skill

Create PR

Automatically create a high-quality GitHub Pull Request after the current branch is ready.

When to Use

Trigger when the user asks to create a PR, for example:

  • "Create a PR"
  • "Help me open a pull request"
  • "Create PR for current branch"
  • "Push this branch and open a draft PR"

Prerequisites:

  • Code changes are committed to a git branch
  • Current branch is not the default branch (main or master)
  • Branch has commits not yet merged into the base branch
  • Branch is pushed to the remote, or can be pushed first

Workflow

Step 1: Validate branch state

Use Bash to inspect the current git state:

git branch --show-current
git status -sb
git log origin/main..HEAD --oneline
git diff origin/main...HEAD --stat
git remote -v

Validation checklist:

  • Current branch is not main or master
  • Branch contains unique commits
  • Base branch should usually be main
  • If the branch is not pushed, push it before creating the PR

Step 2: Gather PR context

Collect the information needed for a good title and body:

git log origin/main..HEAD --format="%h %s%n%b"
git diff origin/main...HEAD --stat

When available, use GitHub MCP tools for commit context:

mcp__github__list_commits owner=<owner> repo=<repo> sha=<current_branch>

Extract:

  • Main purpose of the change
  • Affected areas or modules
  • Testing that was run
  • Related issue references

Step 3: Generate PR title and description

Title format must follow conventional commits:

<type>(<scope>): <summary>
  • Type: feat, fix, perf, test, docs, refactor, build, ci, chore, revert
  • Scope is optional
  • Title must be in English
  • Summary must start with a lowercase letter
  • Use imperative present tense
  • Do not end with a period
  • For breaking changes, add ! before the colon
  • To exclude from changelog, add (no-changelog) suffix

Validation regex:

^(feat|fix|perf|test|docs|refactor|build|ci|chore|revert)(\([a-zA-Z0-9 /_-]+\))?!?: [a-z].+[^.]$

PR body template:

## Summary

<1-2 paragraphs describing what changed and why>

### Changes

- <change 1>
- <change 2>
- <change 3>

## Testing

- Tests performed: <description>
OR
- Not run (not requested)
OR
- Not run (content-only changes)

## Related Issues

<issue references such as "Closes #123" or "N/A">

## Notes

<optional caveats or follow-up items>

Step 4: Create the PR

Use the GitHub MCP tool:

mcp__github__create_pull_request \
  owner=<owner> \
  repo=<repo> \
  title="<conventional_commit_title>" \
  head=<current_branch> \
  base=<base_branch> \
  body="<pr_description>"

Optional parameters:

  • draft=true
  • maintainer_can_modify=true

Step 5: Confirm result

Report:

  • PR number and URL
  • PR title
  • Head and base branches
  • Short summary of changed files or scope

Project-Specific Conventions

For this Momo / Astro blog repository, prefer these scopes when they fit:

  • content - blog posts, pages, and content structure
  • config - site config and collection config
  • ui - Astro components, layouts, and styles
  • i18n - locale routing and translation files
  • comment - comment components and integration
  • build - Astro, pagefind, CI, and deployment

Examples:

  • feat(content): add related post backlinks
  • fix(i18n): correct fallback locale route
  • docs(config): update blog publishing guide
  • refactor(ui): simplify post card layout

Error Handling

Common issues:

  1. Branch not pushed
  • Run git push -u origin <branch>
  1. No unique commits
  • Report that the current branch has no changes relative to the base branch
  1. GitHub MCP failure
  • Report the tool failure clearly and stop before inventing a PR URL
  1. Title format invalid
  • Rewrite the title to match the conventional-commit rules before creating the PR

When not to use it

  • When code changes are not committed to a git branch
  • When the current branch is the default branch (`main` or `master`)
  • When the branch has no unique commits relative to the base branch

Limitations

  • Requires code changes to be committed to a git branch
  • Current branch must not be the default branch (`main` or `master`)
  • Branch must have commits not yet merged into the base branch

How it compares

This skill simplify the PR creation process by automating branch validation, context gathering, and conventional commit formatting, which is more efficient and consistent than manual PR creation.

Compared to similar skills

create-pr side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
create-pr (this skill)03moReviewIntermediate
resolve-conflicts818moReviewIntermediate
openspec-onboard106moReviewBeginner
codex-cli-bridge99moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry