Slash Command80 repo starsupdated 1mo ago
create-pr
Create PR from current or specified branch
Install in Claude Code
Copymkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Weaverse/.agents/HEAD/commands/create-pr.md -o ~/.claude/commands/create-pr.mdThen start a new Claude Code session; the slash command loads automatically.
Definition
create-pr.md
# Create Pull Request Command Create a pull request from one branch to another. ## Usage - `create-pr` - Create PR from current branch changes (creates new feature branch) - `create-pr dev main` - Create PR from dev branch to main branch - `create-pr feature/xyz dev` - Create PR from feature/xyz branch to dev branch ## Behavior ### Default (Feature Branch Mode) - Creates a new branch based on current uncommitted changes - Formats modified files using Biome - Analyzes changes and automatically splits into logical commits when appropriate - Each commit focuses on a single logical change or feature - Creates descriptive commit messages for each logical unit - Pushes branch to remote - Creates pull request with proper summary and test plan ### Branch-to-Branch Mode When specifying source and target branches (e.g., `create-pr dev main`): - Uses existing source branch instead of creating new one - Ensures source branch is up to date: `git pull origin <source-branch>` - Reviews all changes: `git diff <target-branch>...<source-branch>` - Creates PR with comprehensive summary of all changes - For dev→main PRs specifically: - Include release notes section in PR description - List all breaking changes if any - Ensure all tests pass before creating PR ## Guidelines for Automatic Commit Splitting - Split commits by feature, component, or concern - Keep related file changes together in the same commit - Separate refactoring from feature additions - Ensure each commit can be understood independently - Multiple unrelated changes should be split into separate commits
More from this repository
create-taskSlash Command
Create a GitHub issue with project board integration
explainSlash Command
Explain recent code changes in simple terms a junior dev can understand
fix-prSlash Command
Fetch and resolve unresolved PR comments
formatSlash Command
Auto-format code and fix TypeScript issues
handoffSkill
Capture current work context for handoff to another agent/developer. Gathers git state, todos, and modified files into a structured handoff document saved to the related spec folder.
review-changesSlash Command
Review uncommitted changes and suggest improvements
shipSlash Command
Create a release PR to main with version bump and draft a GitHub release
ultrathinkSlash Command
Deep analysis and multi-dimensional problem solving