Claude Code · Slash command

/create-pr

Branch, commit (split into logical units automatically), push, and open a pull request in one command.

Version control & git·Apache-2.0Source: toyamarinyon (giselle)

549★ · part of Giselle, an open-source AI agentic-workflow builder (this file lives in a contributor's fork of it)

What this actually does for you

You finish a feature and just say "make a PR" — it branches, splits your changes into sensible commits, pushes, and opens the pull request with a real summary, instead of you doing five separate git commands.

Try it for: Pair it with /commit as your end-of-task ritual: /commit to wrap up, then /create-pr to hand it off for review — "done coding" to "PR open" in two commands instead of a dozen.

The command file

# Create Pull Request Command

Create a new branch, commit changes, and submit a pull request.

## Behavior
- Creates a new branch based on current 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

## 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

Formats changed files with Biome before committing — remove that step or swap in your own formatter if you don't use Biome.

How to add it

01

Copy the command file below.

02

Save it as .claude/commands/<name>.md in your project (create the folder if it doesn't exist).

03

Adjust anything project-specific (see the note below, if there is one).

04

Run the command in Claude Code by typing its name, e.g. it will appear in your / menu.

The linked repo is the source of truth — if the author updates it, the repo link stays current.

Want a whole automation, not just one command? Grab a working n8n template.