github:create-pr - Create a new pull request in a GitHub repository
Synopsis
/create-pr [arguments]
Description
Create a new pull request in a GitHub repository
Implementation
Create a new pull request with source and target branches.
Usage
/create-pr [owner/repo]
This command helps you create a pull request with all necessary details.
What This Command Does
Asks for the repository (owner/repo format)
Prompts for source branch name (head)
Requests target branch name (base)
Asks for PR title
Requests PR description (optional)
Creates the pull request using the GitHub MCP create_pull_request tool
Returns the PR number and URL
Prerequisites
GitHub MCP server must be installed and configured
You must have push access to the repository
Both source and target branches must exist
OAuth authentication must be completed
Example Interaction
User: /create-pr my-org/my-repo
Claude: I'll help you create a pull request. What's the source branch?
User: feature/user-authentication
Claude: What's the target branch?
User: main
Claude: What should the pull request title be?
User: Add JWT-based user authentication
Claude: Please provide a description (optional):
User: This PR implements JWT-based authentication for the API:
- User login and registration endpoints
- Token generation and validation middleware
- Password hashing with bcrypt
- Unit tests for auth flows
Closes #42
Claude: Should this be a draft PR?
User: No
Claude: Creating pull request...
Pull request created successfully!
#15 - Add JWT-based user authentication
https://github.com/my-org/my-repo/pull/15
Status: Open
Source: feature/user-authentication -> main
Tips
Link related issues using Closes #123 or Fixes #123 in the description
Use conventional commit prefixes in titles: feat:, fix:, refactor:
Include a testing checklist in the description
Consider creating a draft PR for work-in-progress
Ensure your branch is up to date with the target branch
Related Commands
/review-pr: Get a comprehensive review of your PR
/create-issue: Create an issue that this PR will resolve
/view-workflow: Check CI/CD status for the PR
1---2name: create-pr3description: Create a new pull request in a GitHub repository4---56# Create GitHub Pull Request
78## Name
910github:create-pr - Create a new pull request in a GitHub repository
1112## Synopsis
1314```
15/create-pr [arguments]
16```
1718## Description
1920Create a new pull request in a GitHub repository
2122## Implementation
2324Create a new pull request with source and target branches.
2526## Usage
2728```
29/create-pr [owner/repo]
30```
3132This command helps you create a pull request with all necessary details.
3334## What This Command Does
35361. Asks for the repository (owner/repo format)
372. Prompts for source branch name (head)
383. Requests target branch name (base)
394. Asks for PR title
405. Requests PR description (optional)
416. Creates the pull request using the GitHub MCP `create_pull_request` tool
427. Returns the PR number and URL
4344## Prerequisites
4546- GitHub MCP server must be installed and configured
47- You must have push access to the repository
48- Both source and target branches must exist
49- OAuth authentication must be completed
5051## Example Interaction
5253```
54User: /create-pr my-org/my-repo
5556Claude: I'll help you create a pull request. What's the source branch?
5758User: feature/user-authentication
5960Claude: What's the target branch?
6162User: main
6364Claude: What should the pull request title be?
6566User: Add JWT-based user authentication
6768Claude: Please provide a description (optional):
6970User: This PR implements JWT-based authentication for the API:
71- User login and registration endpoints
72- Token generation and validation middleware
73- Password hashing with bcrypt
74- Unit tests for auth flows
7576Closes #42
7778Claude: Should this be a draft PR?
7980User: No
8182Claude: Creating pull request...
8384Pull request created successfully!
85#15 - Add JWT-based user authentication
86https://github.com/my-org/my-repo/pull/15
8788Status: Open
89Source: feature/user-authentication -> main
90```
9192## Tips
9394- Link related issues using `Closes #123` or `Fixes #123` in the description
95- Use conventional commit prefixes in titles: `feat:`, `fix:`, `refactor:`
96- Include a testing checklist in the description
97- Consider creating a draft PR for work-in-progress
98- Ensure your branch is up to date with the target branch
99100## Related Commands
101102- `/review-pr`: Get a comprehensive review of your PR
103- `/create-issue`: Create an issue that this PR will resolve
104- `/view-workflow`: Check CI/CD status for the PR
Run npx skillmds add thebushidocollective/create-pr in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Create a new pull request in a GitHub repository It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Capability flags: makes network calls, reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
thebushidocollective (@thebushidocollective) published this skill. Their other Agent Skills are listed on their SkillMD profile.