woocommerce-git-draft-pr — Claude Code skill: draft PRs from a branch
woocommerce-git-draft-pr turns the current branch into a draft pull request: reads commits and diff, fills the repo template, pushes and opens the PR.
GPL-2.0 119 installs ★ 10,608 updated 2026-10-25
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a claude-codeWhat woocommerce-git-draft-pr does
The skill looks at your branch, the commits ahead of trunk, diff stats and .github/PULL_REQUEST_TEMPLATE.md, then works through the template section by section. Titles stay under 70 characters and open with a verb like Fix or Add. Conventional-commit prefixes are not used.
Base branch is release/* when the work started there, trunk otherwise. Change type and significance come out of the diff, and the skill works out whether the code ships to users, because milestone and changelog choices follow from that. Changelog files already present in the diff get marked as written by hand.
A dirty working tree halts the run: the skill pushes but never commits. You see the proposed title and body first, then git push -u origin and gh pr create --draft run. Template headings and HTML comments are left untouched — repo automation reads those markers.
What it helps with
- open a draft PR from the current branch
- fill the repo PR template section by section
- classify the change for the changelog entry
- pick
release/*as the base instead oftrunk - trace the PR that introduced a bug
Example prompts for the agent
- Create a draft PR from this branch against
trunk - Push the branch and open a draft PR using the repo template
- Open the PR with no changelog entry, this change does not ship to users
How to install woocommerce-git-draft-pr
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a claude-code2Manually: put the files in place
~/.claude/skills/woocommerce-git-draft-pr/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/woocommerce-git-draft-pr/
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a codex2Manually: put the files in place
.agents/skills/woocommerce-git-draft-pr/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a cursor2Manually: put the files in place
.cursor/skills/woocommerce-git-draft-pr/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install woocommerce/woocommerce .ai/skills/woocommerce-git-draft-pr2Manually: put the files in place
.github/skills/woocommerce-git-draft-pr/SKILL.md1Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a gemini-cli2Platform CLI
gemini skills install https://github.com/woocommerce/woocommerce --path .ai/skills/woocommerce-git-draft-prManually: put the files in place
.devin/skills/woocommerce-git-draft-pr/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about woocommerce-git-draft-pr
How to install woocommerce-git-draft-pr in Claude Code?
Run npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a claude-code. The skill lands at ~/.claude/skills/woocommerce-git-draft-pr/SKILL.md.
What does woocommerce-git-draft-pr do?
Builds a draft pull request from the current branch: title, template body, changelog entry, then pushes and runs gh pr create --draft.
Which base branch does it use?
release/* if the branch was cut from one. Otherwise trunk.