pr-create
Create pull request from feature branch
When & Why to Use This Skill
This Claude skill automates the GitHub pull request process by analyzing feature branch changes and generating professional, structured documentation. It streamlines the transition from coding to review by automatically drafting comprehensive summaries, implementation details, and testing notes based on git commit history and diffs, while ensuring repository cleanliness by removing development-specific files.
Use Cases
- Standardizing PR quality: Automatically generate consistent, high-quality pull request descriptions across a development team to improve code review efficiency.
- Workflow automation: Use the GitHub CLI integration to create PRs directly from the chat interface after finishing a feature branch.
- Documentation assistance: Generate technical summaries and implementation architecture notes for complex changes that might be tedious to write manually.
- Repository maintenance: Automatically identify and remove temporary development files like 'plan.md' or workflow notes before submitting code to the main branch.
| name | "pr-create" |
|---|---|
| description | "Create pull request from feature branch" |
Creates a professional pull request when a feature is complete and ready for review.
Optional PR title/description hint from user input
"$ARGUMENTS"
Process
Step 1: Analyze Feature Branch
- Compare to origin/main:
git log origin/main..HEAD --oneline
git diff origin/main...HEAD --stat
- Erase
plan.mdand any other dev/workflow related files and commit. If not sure, ask user for directions.
Step 2: Generate PR Title and Body
Create professional PR content:
Title Format: Feature: [Descriptive title based on plan.md and commits]
Body Structure:
## Summary
- Key functionality delivered
- Major components implemented
- Value provided to users
## Implementation Details
- Technical approach and architecture decisions
- Integration points with existing codebase
- Notable patterns or utilities used
## Testing
- Unit tests added for core functionality
- Integration tests for end-to-end workflows
- Manual testing performed
Step 3: Create Pull Request
gh pr create --title "Feature: [Generated title]" --body "$(cat <<'EOF'
[Generated PR body]
EOF
)"
Step 4: PR Success Confirmation
- Display created PR URL