creating-pull-requests

1gy's avatarfrom 1gy

Creates pull requests with generated descriptions. Triggered when: PR creation, pull request, merge request, code review preparation.

⭐0stars🔀0forks📁View on GitHub🕐Updated Jan 4, 2026

When & Why to Use This Skill

This Claude skill automates the end-to-end process of creating pull requests, from pushing local branches to generating structured PR descriptions. By integrating with Git and the GitHub CLI (gh), it ensures that every PR follows a consistent format including summaries and test plans, significantly reducing manual overhead and improving the quality of the code review workflow.

Use Cases

  • Automated PR Creation: Streamline the transition from local development to remote review by pushing branches and opening PRs with a single automated workflow.
  • Standardized Documentation: Ensure all pull requests contain high-quality descriptions and test plans, helping teams maintain clear project history and faster review cycles.
  • Efficient Code Review Preparation: Automatically assign reviewers, add labels, and set target branches to organize the development pipeline without manual GitHub UI interaction.
  • Draft PR Management: Quickly initialize draft pull requests for early feedback or work-in-progress visibility while maintaining a professional documentation structure.
namecreating-pull-requests
description>
Triggered whenPR creation, pull request, merge request, code review preparation.
allowed-toolsBash(git:*), Bash(gh:*)

Pre-check

git branch --show-current
git status
git log --oneline <main-branch>..HEAD  # Check CLAUDE.md for main branch name

Push to Remote

git push -u origin <branch-name>

PR Description Format

## Summary

- [Change 1]
- [Change 2]

## Test plan

- [ ] [Test item 1]
- [ ] [Test item 2]

Create PR

gh pr create \
  --title "<title>" \
  --body "$(cat <<'EOF'
## Summary

- Changes...

## Test plan

- [ ] Test items...
EOF
)"

Options

Option Usage
--draft Draft PR
--base <branch> Target branch
--assignee @me Self-assign
--label <label> Add label

Completion Report

  • PR URL
  • Title
  • Target branch