Create PR
Create a pull request from the current branch following project conventions. Uses the branch name to find the Jira ticket, generates a PR with the standard template, audits publication artifacts, pushes to origin, and closes the associated bead.
Install
npx skills add flurdy/agent-skills --skill create-prgit clone --depth 1 https://github.com/flurdy/agent-skills.git /tmp/agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/agent-skills/skills/create-pr ~/.claude/skills/create-prPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Create Pull Request
Create a pull request from the current branch using project conventions.
## Usage
```
/create-pr # Resolve recorded/default base
/create-pr {base-branch} # Explicit base, including a stacked parent
/create-pr --draft {base-branch} # Create a draft PR against that base
```
## Instructions
Parse optional `--draft` plus at most one `{base-branch}`. Reject unknown or duplicate arguments.
Expand `{draft-flag}` to `--draft` when requested and to nothing otherwise.
### 1. Gather context
Get the current branch and working-copy state:
```bash
git branch --show-current
git status -sb
```
If the branch is empty, stop: HEAD is detached. Preserve the commit on a branch before attempting
to push or create a PR.
### 2. Resolve the PR base
Use the first available source:
1. explicit `{base-branch}` argument;
2. `git config --get branch.{branch-name}.gh-merge-base` (recorded by `/stack-branch`);
3. the default branch from `origin/HEAD`, falling back to local `main`, then `master`.
If the result is empty, equals the head branch, or does not resolve to a commit, ask rather than
guessing. Fetch the selected base, then use it consistently for context and PR creation:
```bash
git fetch origin {base-branch}
git log origin/{base-branch}..HEAD --oneline
git diff origin/{base-branch}...HEAD --stat
```
### 3. Extract Jira Ticket from Branch Name
Parse the branch name to find the ticket number:Details
- Skill name
create-pr- Repository
- flurdy/agent-skills
- Path
skills/create-pr/SKILL.md- License
- MIT
- Repo updated
- 17 November 2026
FAQ
What does the Create PR skill do?
Create a pull request from the current branch following project conventions. Uses the branch name to find the Jira ticket, generates a PR with the standard template, audits publication artifacts, pushes to origin, and closes the associated bead.
How do I install the Create PR skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add flurdy/agent-skills --skill create-pr. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Create PR popular?
It lives in flurdy/agent-skills, which has 9 GitHub stars and 0 forks.
Related skills
Architect
9flurdy/agent-skills
Architecture and implementation planning gate for complex or high-blast-radius work. Produces evidence-backed decisions, reviewable slices, acceptance evidence, and conditional human review ownership without editing code.
Artifact Hygiene
9flurdy/agent-skills
Run a local-only, read-only advisory audit of publishable working-tree files and unpublished branch history with redaction-safe findings.
Backlog Groom
9flurdy/agent-skills
Auto-detects workspace unfinished backlogs across unique stores; otherwise local open beads. Flags thin prose, missing labels, drift, lifecycle and duplicates. Report-only; mutations need approval, destructive ones individually.
Jira Ticket
9flurdy/agent-skills
Look up Jira ticket details including summary, type, and description. Use this to fetch ticket context for branch naming, PR creation, or understanding requirements.
Circleci Status
9flurdy/agent-skills
Check CircleCI build status and failed job logs for the current GitHub repository. Use when asked whether CircleCI is green, failing, pending, or when needing CircleCI job logs.
Name Session
9flurdy/agent-skills
Derive a conventional session name from the branch ticket, active bead, open PR, and current work, then print the paste-ready rename command for the active client. Use when a session's auto-name is generic.
Browse the most popular Claude skills, all git & code review skills, or write your own with the skills generator.