/create-pr
Create and push PR with auto-generated title and description
Overview
Automates pull request creation with intelligent title and description generation.
Usage
BASH
/create-prWorkflow
- Branch Safety - Ensures not on main/master (creates new branch if needed)
- Push Changes - Pushes current branch to remote with tracking
- Analyze Changes - Reviews diff against base branch
- Generate PR - Creates PR with concise title and bullet-point summary
- Return URL - Displays created PR link
PR Format
MARKDOWN
## Summary
• Main change or feature
• Secondary changes
• Any fixes included
## Type
[feat/fix/refactor/docs/chore]Features
- Auto-detects base branch (main/master/develop)
- Branch name generation from staged changes
- Prevents direct commits to protected branches
- Returns existing PR URL if already created
- Uses Haiku model for fast execution
Rules
- NO verbose descriptions
- NO "Generated with" signatures
- Clarity over completeness
- Scannable and actionable PRs