From dev-tools
Create a pull request with context-aware description based on conversation
How this command is triggered — by the user, by Claude, or both
Slash command
/dev-tools:create-prThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
**Arguments:** $ARGUMENTS Parse the arguments for any of the following options: - `--gif` or `gif`: Include a GIF section - search for an appropriate reaction GIF - `--screenshots` or `screenshots`: Include a Screenshots section (prompt user to add screenshots) - `--issue <ISSUE>` or `issue:<ISSUE>`: Link to a Jira issue (e.g., `--issue PROJ-1234` or `issue:PROJ-1234`) - `--sentry <ISSUE>` or `sentry:<ISSUE>`: Link to a Sentry issue (e.g., `--sentry PROJ-1ABC` or `sentry:PROJ-1ABC`) - Any other text: Treat as additional context for the PR description Examples: - `/create-pr --gif` - Inclu...
Arguments: $ARGUMENTS
Parse the arguments for any of the following options:
--gif or gif: Include a GIF section - search for an appropriate reaction GIF--screenshots or screenshots: Include a Screenshots section (prompt user to add screenshots)--issue <ISSUE> or issue:<ISSUE>: Link to a Jira issue (e.g., --issue PROJ-1234 or issue:PROJ-1234)--sentry <ISSUE> or sentry:<ISSUE>: Link to a Sentry issue (e.g., --sentry PROJ-1ABC or sentry:PROJ-1ABC)Examples:
/create-pr --gif - Include a GIF/create-pr --issue PROJ-1234 - Link to Jira issue PROJ-1234, prefix title with "PROJ-1234 "/create-pr --sentry PROJ-1ABC - Link to Sentry issue, prefix title with "PROJ-1ABC "/create-pr --gif --screenshots --issue PROJ-5000 - Include all optional sections/create-pr fixes the login bug - Additional context for the descriptionCreate a pull request for the current branch. Follow these steps:
Run git status to check for uncommitted changes. If there are uncommitted changes, warn the user and ask if they want to commit first.
Run git log main..HEAD --oneline to see all commits on this branch that will be included in the PR.
Run git diff main...HEAD to see the full diff of changes.
Analyze the changes and conversation history to understand:
Create the PR using gh pr create with the body format below. Use GitHub-flavored markdown throughout:
code, and other formatting to improve readability## Description
[1-3 concise sentences focused on WHAT changed and WHY. Be direct and reviewer-focused. Avoid restating what's obvious from the diff.]
[Optional: Include a mermaid diagram if the change involves complex flow, architecture, or state changes]
## Closes issue(s)
[Only include if --issue or --sentry argument provided]
- Jira: [<ISSUE>](https://<ORG>.atlassian.net/browse/<ISSUE>)
- Sentry: [<ISSUE>](https://<ORG>.sentry.io/issues/<ISSUE>/)
## How to test / repro / QA instructions
1. [Specific, actionable step]
2. [...]
3. [Expected result]
## Screenshots
[Only include if --screenshots argument provided]
[Placeholder for user to add screenshots]
## What GIF best describes this PR?
[Only include if --gif argument provided]
[Search for and embed an appropriate reaction GIF]
## Changes include
- [ ] Fix (non-breaking change that solves an issue/bug)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
## Changes to environment variables
[Note any changes to env vars or secrets, or "None"]
## Reminders / Checklist
- [x] All my tests have passed
- [x] Based feature branch off main (default branch)
- [x] I have pulled the latest version of main
- [ ] I have updated the README if needed
- [ ] I have updated environment variable documentation with any new variables
- [ ] I have updated the deployment environment with new environment variables
Conditional sections based on arguments:
--gif was provided: Use WebSearch to find an appropriate reaction GIF and include the "## What GIF best describes this PR?" section--screenshots was provided: Include the "## Screenshots" section with a placeholder--issue was provided: Prefix the PR title with the issue number and a space (e.g., "PROJ-1234 Fix bug..."), and include the "## Closes issue(s)" section with the Jira link--sentry was provided: Prefix the PR title with the Sentry issue ID and a space (e.g., "PROJ-1ABC Fix error..."), and include the "## Closes issue(s)" section with the Sentry linkAfter creating the PR, display the PR URL to the user.
Writing guidelines:
npx claudepluginhub amcclosky/skills --plugin dev-tools/create-prCreates a new branch from current changes, formats files with Biome, auto-splits into logical commits with descriptive messages, pushes branch, and creates pull request with summary.
/create-prCreates a new branch from current changes, formats files with Biome, auto-splits into logical commits with descriptive messages, pushes branch, and creates pull request with summary.
/create-prCreates a pull request by creating a new branch from changes, formatting files with Biome, splitting into logical commits with descriptive messages, pushing to remote, and adding summary and test plan.
/create-prCreates a pull request by handling branch creation, commits, and submission. Uses full conversation context and optional context argument.