Skip to main content
skill CX Codex

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

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add woocommerce/woocommerce --skill woocommerce-git-draft-pr -a claude-code
Open on GitHub

What 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 of trunk
  • 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-code

2Manually: put the files in place

~/.claude/skills/woocommerce-git-draft-pr/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/woocommerce-git-draft-pr/

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.

Similar skills

All skills for Git and GitHub →

From the same set9

woocommerce-backend-dev woocommerce-backend-dev is a Claude Code skill for WooCommerce PHP that follows project standards when creating classes, changing backend code, or writing unit tests. CX Codex +1 2,400installs woocommerce-code-review woocommerce-code-review is a Claude Code skill that inspects WooCommerce code changes against project coding standards. It runs during local branch checks and automated pull request reviews. CX Codex +1 1,900installs woocommerce-performance woocommerce-performance flags database and caching bottlenecks in WooCommerce PHP code. Useful when writing custom SQL queries or rendering catalog lists. CX Codex +1 372installs woocommerce-store-api This skill guides WooCommerce Store API route work, from schema design to cart and checkout integrations. Use it when adding or changing /wc/store/v1/ endpoints. CX Codex +1 251installs woocommerce-git-commit woocommerce-git-commit prepares clean Git commits following WooCommerce conventions, splits changelog entries, and stages specific files without pushing. CX Codex +1 121installs woocommerce-dev-cycle woocommerce-dev-cycle guides the WooCommerce development workflow, covering targeted PHP and JavaScript tests, code formatting, and branch linting before commit. CX Codex +1 ★ 10,608repo stars woocommerce-markdown The woocommerce-markdown skill applies WooCommerce’s Markdown conventions when you write or edit documentation, README files, and other Markdown content. CX Codex +1 1installs woocommerce-email-editor woocommerce-email-editor — a skill for building the WooCommerce block email editor. Use it when working on transactional emails and templates. CX Codex +1 1installs

Project sponsors

Companies that keep this analytics open