create-pr

Solid

Creates a well-structured pull request with product-focused summary, change highlights, and test steps. Auto-detects base branch, links Linear issues from branch name, and pushes if needed. Use when ready to open a PR or when asking to create a pull request.

AI & Automation 4 stars 0 forks Updated yesterday MIT

Install

View on GitHub

Quality Score: 83/100

Stars 20%
23
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Create PR Create a well-structured, product-focused pull request. ## Preferences _Read `~/.claude/skills/create-pr/preferences.md` using the Read tool. If not found, no preferences are set._ ## Context _On startup, use Bash to detect: current branch (`git branch --show-current`), upstream branch, commits ahead of upstream, and repo name (`gh repo view --json nameWithOwner -q .nameWithOwner`). Skip any that fail._ ## Command routing Check `$ARGUMENTS`: - **`help`** → display help then stop - **`config`** → interactive setup then stop - **`reset`** → delete `~/.claude/skills/create-pr/preferences.md`, confirm, stop - **anything else** (including empty) → create PR ### Flags Parse from `$ARGUMENTS`: - **`--base <branch>`** — override base branch - **`--draft`** — create as draft PR - **`--no-linear`** — skip Linear integration - **Remaining text** — treated as Linear issue ID if it matches pattern (e.g., `AIS-810`) ### Help ``` PR — Create a well-structured pull request Usage: /create-pr Create PR from current branch /create-pr <issue-id> Create PR and link Linear issue /create-pr --base develop Override base branch /create-pr --draft Create as draft /create-pr --no-linear Skip Linear linking /create-pr config Set PR preferences /create-pr reset Clear preferences /create-pr help This help Examples: /pr /create-pr AIS-...

Details

Author
mostafa-drz
Repository
mostafa-drz/claude-skills
Created
7 months ago
Last Updated
yesterday
Language
HTML
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category