Generate PR description using repository's PR template and current branch changes, copy to clipboard

GPL-2.0Auto-check passedDevelopment

Install Create PR

skills CLI
$ npx skills add Automattic/woocommerce-services --skill create-pr -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Automattic/woocommerce-services create-pr --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Automattic/woocommerce-services.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/create-pr .claude/skills/create-pr && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
create-pr
GitHub stars
112
Token cost
~2.7k tokens
SKILL.md length
816 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
GPL-2.0

At a glance

Generate PR description using repository's PR template and current branch changes, copy to clipboard

  • Works in 7 steps: Identify Repository → Gather Branch Information → Find and Read PR Template → …
  • Tasks that involve Pull requests
  • SKILL.md covers When to Use, Important, Workflow and Repository-Specific Patterns, plus 5 more sections
  • Calls git; reaches github.com

What it does

Create PR is an agent skill from Automattic/woocommerce-services. Generate PR description using repository's PR template and current branch changes, copy to clipboard

Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Pull requests. It works with GitHub, WooCommerce and Git. The repository describes itself as: WooCommerce Services is a feature plugin that integrates hosted services into WooCommerce (3.0+), and currently includes automated tax rates and the ability to purchase and print… The licence is GPL-2.0.

When your agent uses it

  • Tasks that involve Pull requests

Example prompts

  • “/create-pr”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Identify Repository
  2. Gather Branch Information
  3. Find and Read PR Template
  4. Analyze Changes
  5. Fill PR Template
  6. Generate Final Output
  7. Copy to Clipboard and Display

What it can do on your machine

Read from SKILL.md and the folder at commit 1f63ee8. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Create PR loads about 2.7k tokens when it runs. Until then it costs about 28 tokens; SKILL.md has 816 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~28
When it runs · the whole SKILL.md, loaded when a task matches
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Automattic/woocommerce-services at commit 1f63ee8, republished under its GPL-2.0 licence (© Automattic). 816 words, ~2,722 tokens.

Download SKILL.mdSave it as .claude/skills/create-pr/SKILL.md (or your agent's skills folder).
name
create-pr
description
Generate PR description using repository's PR template and current branch changes, copy to clipboard

Create PR

Generate GitHub pull request descriptions using the PR template at .github/PULL_REQUEST_TEMPLATE.md and referencing changes in the current branch. Outputs markdown and copies to clipboard.

When to Use

Activate this skill when the user:

  • Uses /create-pr command with or without a repo name
  • Says "create a PR description", "generate PR body", "make a pull request"
  • Wants a PR description for their current branch

Important

This skill does NOT:

  • ❌ Commit changes
  • ❌ Push to remote
  • ❌ Create the actual PR on GitHub

This skill ONLY:

  • ✅ Generates PR title and description
  • ✅ Outputs as markdown
  • ✅ Copies to clipboard (platform-specific: pbcopy on macOS, xclip/xsel on Linux, clip.exe on Windows)

Workflow

Step 1: Identify Repository

If repo name is provided:

  • Use the specified repository

If no repo name is provided:

  • Check for .git in current workspace
  • If multiple git repositories detected in workspace, ask user to specify which one

Validation:

  • Verify the repository has a remote on GitHub
  • Confirm current branch is not main, master, or the default branch
Step 2: Gather Branch Information

Run these commands in the repository directory:

bash
# Get current branch name
git branch --show-current

# Get the base branch (usually main or master)
git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'

# Get commit history since divergence from base
git log {base-branch}..HEAD --oneline

# Get full diff since divergence
git diff {base-branch}...HEAD
Step 3: Find and Read PR Template

Look for PR template in these locations (in order):

  1. .github/PULL_REQUEST_TEMPLATE.md
  2. .github/pull_request_template.md
  3. docs/PULL_REQUEST_TEMPLATE.md
  4. docs/pull_request_template.md
  5. PULL_REQUEST_TEMPLATE.md
  6. pull_request_template.md

CRITICAL: If template found:

  • Read the template file using the Read tool
  • Use the EXACT template structure - do not restructure or rename sections
  • Preserve HTML comments (<!-- ... -->) - they provide context for reviewers
  • Keep all checkbox items exactly as defined in the template
  • Only fill in the content areas between section headers
  • Do not add sections that don't exist in the template
  • Do not remove sections - leave them empty or with "N/A" if not applicable

If no template found:

  • Use a generic structure:
    markdown
    ## Summary
    
    ## Changes
    
    ## Testing
    
    ## Related Issues
Step 4: Analyze Changes

Based on the git diff and commit history:

  1. Categorize changes:

    • New features
    • Bug fixes
    • Refactoring
    • Documentation
    • Tests
    • Chores
  2. Identify key files changed:

    • List the most significant file changes
    • Note any breaking changes or migrations
  3. Extract commit messages:

    • Review commit messages for context
    • Identify patterns and themes
Step 5: Fill PR Template

Title Generation:

  • Create concise title (50-70 characters max)
  • Format: [Type] Brief description
  • Types: feat, fix, refactor, docs, test, chore

Body Generation:

IMPORTANT: Follow the repository's template structure exactly.

  1. Copy the entire template as the starting point
  2. Keep all HTML comments - they guide reviewers and may be used by automation
  3. Fill in content below each section header, after any HTML comments
  4. For checkbox sections:
    • Mark applicable items with [x]
    • Leave others as [ ]
    • Do NOT remove any checkbox items
  5. For text sections, fill based on:
    • Summary/Description: High-level overview of what changed and why
    • Changes: Bulleted list of key changes from the diff
    • Testing: How to test/verify the changes (use numbered steps)
    • Related Issues: Extract from commit messages or branch names. Use short IDs (e.g., "Fixes WOOSHIP-456") NOT full URLs
    • Screenshots: Add if UI changes, otherwise write "N/A" or "N/A - Logic fix, no visual changes"
Step 6: Generate Final Output

Format the complete PR content:

markdown
## Title

{Generated PR title}

## Description

{Filled PR template body}
Show full SKILL.md (466 more words)Show less
Step 7: Copy to Clipboard and Display
  1. Display the generated PR description to the user in a markdown code block

  2. Copy to clipboard using the appropriate platform-specific command:

    macOS:

    bash
    echo "{PR title and body}" | pbcopy

    Linux:

    bash
    # Using xclip (install: apt-get install xclip or yum install xclip)
    echo "{PR title and body}" | xclip -selection clipboard
    
    # Or using xsel (install: apt-get install xsel or yum install xsel)
    echo "{PR title and body}" | xsel --clipboard --input

    Windows (Git Bash/WSL):

    bash
    echo "{PR title and body}" | clip.exe

    Cross-platform detection example:

    bash
    # Detect OS and use appropriate clipboard command
    if command -v pbcopy > /dev/null; then
        echo "{PR title and body}" | pbcopy
    elif command -v xclip > /dev/null; then
        echo "{PR title and body}" | xclip -selection clipboard
    elif command -v xsel > /dev/null; then
        echo "{PR title and body}" | xsel --clipboard --input
    elif command -v clip.exe > /dev/null; then
        echo "{PR title and body}" | clip.exe
    else
        echo "⚠️  No clipboard utility found. Please copy manually."
    fi
  3. Confirm to user:

    ✅ PR description generated and copied to clipboard!
    
    Next steps:
    1. Push your branch: git push -u origin HEAD
    2. Create PR on GitHub
    3. Paste from clipboard

Repository-Specific Patterns

WooCommerce/woocommerce
  • Look for changelog entries
  • Check for version bumps
  • Verify coding standards compliance
Automattic/woocommerce-connect-server
  • Note API changes
  • Check for database migrations
  • Verify environment variable updates
Automattic/ciab-admin
  • Note UI/component changes
  • Check for new dependencies
  • Verify integration with WC Shipping
woocommerce/woocommerce-shipping
  • Check for UDM module changes
  • Note carrier integrations
  • Verify backward compatibility

Error Handling

No remote configured:
Error: No GitHub remote found. Please configure origin remote first.
Suggestion: git remote add origin https://github.com/{org}/{repo}.git
On default branch:
Error: Cannot create PR from default branch (main/master).
Suggestion: Create a feature branch first: git checkout -b feature/your-branch-name
No changes:
Error: No commits found on this branch compared to {base-branch}.
Suggestion: Make some commits first, or check if you're on the right branch.

Examples

Example 1: Simple Feature PR
User: /create-pr woocommerce-shipping

[Skill analyzes branch: feature/add-scanform-ui]
[Base branch: main]
[Commits: 3 commits adding ScanForm UI components]
[Template found: .github/PULL_REQUEST_TEMPLATE.md]

Agent outputs:

✅ PR description generated and copied to clipboard!

---

## Title
feat: Add ScanForm UI for USPS bulk label printing

## Description

### Summary
Implements the ScanForm UI to allow merchants to generate USPS ScanForms for bulk label printing.

### Changes
- Added ScanFormModal component with form validation
- Integrated ScanForm API endpoint
- Added ScanForm history table to settings page
- Updated tests for new components

### Testing
1. Enable USPS in WooCommerce Shipping
2. Purchase multiple USPS labels
3. Navigate to Settings > Shipping Labels > ScanForm
4. Generate a new ScanForm
5. Verify history shows in table

### Related Issues
Closes WOOSHIP-1761

---

Next steps:
1. Push your branch: git push -u origin HEAD
2. Create PR on GitHub
3. Paste description from clipboard
Example 2: Multiple Repos Detected
User: /create-pr

[Skill detects 3 git repos in workspace]

Response:
I found multiple repositories in your workspace:
1. woocommerce-shipping
2. ciab-admin
3. woocommerce-connect-server

Which repository do you want to create a PR for?
Example 3: Bug Fix PR
User: /create-pr

[Skill analyzes branch: fix/null-shipment-ids]
[Single commit: "Fix critical error when opening orders with null shipment IDs"]

Agent outputs:

✅ PR description generated and copied to clipboard!

---

## Title
fix: Handle null shipment item IDs in older orders

## Description

### Summary
Fixes critical error when opening older orders that have null shipment item IDs.

### Changes
- Added null check in shipment data retrieval
- Updated error handling for legacy order data
- Added defensive coding for missing shipment metadata

### Testing
1. Create an order with WooCommerce Shipping 1.x
2. Upgrade to 2.x
3. Open the order in admin
4. Verify no fatal error occurs

### Related Issues
Fixes #1395

---

Content is in your clipboard - paste into GitHub PR form!

Best Practices

  1. Be specific: Reference actual code changes, not generic descriptions
  2. Include context: Why was this change needed? What problem does it solve?
  3. Testing instructions: Make them actionable and specific
  4. Link issues: Extract Linear issue IDs and GitHub issue numbers from commits
  5. Clean output: Format as clean markdown suitable for GitHub

Output Format

Always output in this structure:

markdown
## Title
{Generated title}

## Description

{Filled template body}

Then run the appropriate clipboard command for the user's platform (see Step 7 for cross-platform options):

bash
# macOS
echo "{full content}" | pbcopy

# Linux (xclip)
echo "{full content}" | xclip -selection clipboard

# Windows
echo "{full content}" | clip.exe

And tell the user:

✅ PR description generated and copied to clipboard!

Next steps:
1. Push your branch: git push -u origin HEAD
2. Create PR on GitHub
3. Paste description from clipboard

Notes

  • This skill does NOT create the PR - it only generates the description
  • User must manually push branch and create PR on GitHub
  • ALWAYS read the repository's PR template first - do not assume a structure
  • Follow the template EXACTLY - preserve HTML comments, section headers, and checkbox items
  • Some repos use issue templates in .github/ISSUE_TEMPLATE/ - don't confuse with PR templates
  • If commits or branch names reference Linear issues (WOOSHIP-1234, WOO13-143), use the short ID format in "Closes" - NOT the full linear.app URL
  • Use platform-appropriate clipboard command (pbcopy on macOS, xclip/xsel on Linux, clip.exe on Windows)
  • The clipboard content should be the PR body only (not wrapped in code blocks) - ready to paste directly into GitHub

© Automattic, GPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/create-pr of Automattic/woocommerce-services.

Open the folder on GitHubat commit 1f63ee8

Compare with similar skills

Create PR next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Create PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Create PR this skillAutomattic/woocommerce-services112—~2.7kAutomated safety check: PassGPL-2.0
WooCommerce Draft PR Creatorwoocommerce/woocommerce11k—~1.1kAutomated safety check: PassCustom licence
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0
Pull Request Title and Body Writeropeninterpreter/openinterpreter69k2 repos~1.1kAutomated safety check: PassApache-2.0
PR Review State Fetchprisma/orm48k—~767Automated safety check: PassApache-2.0

Similar skills

  • WooCommerce Draft PR Creator

    woocommerce/woocommerce

    Opens a concise draft pull request for the current branch, working out change type, base branch, title and body from the commits and diff.

    11k GitHub stars~1.1k tokensUpdated today
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Pull Request Title and Body Writer

    openinterpreter/openinterpreter

    Rewrites the title and body of one or more pull requests with gh, leading with why the change was made, then what changed, and describing only the net result.

    69k GitHub starsUsed in 2 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Official

    Fetches a pull request's canonical review state as JSON, validates it, and renders markdown, a text summary and triage target files from it using bundled scripts.

    48k GitHub stars~767 tokensUpdated today
    DevelopmentAuto-check passed
  • Official

    Generate a clear, concise GitHub PR title and description from the diff between two local git branches, and save it to prDescription.md in the repo root.

    12k GitHub stars~838 tokensUpdated today
    DevelopmentAuto-check passed

Categories

Questions about Create PR

What does Create PR do?

Generate PR description using repository's PR template and current branch changes, copy to clipboard. Create PR is an agent skill from Automattic/woocommerce-services.

When should I use Create PR?

Create PR fits situations like: tasks that involve Pull requests.

How do I install Create PR in Claude Code?

Run `npx skills add Automattic/woocommerce-services --skill create-pr -a claude-code`. Or copy the skill folder (.agents/skills/create-pr in Automattic/woocommerce-services) into .claude/skills/create-pr in your project. Claude Code loads it when a task matches its description.

How do I install Create PR in Codex?

Run `npx skills add Automattic/woocommerce-services --skill create-pr -a codex`. Or copy the skill folder (.agents/skills/create-pr in Automattic/woocommerce-services) into .agents/skills/create-pr in your project. Codex loads it when a task matches its description.

Can I use Create PR in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Automattic/woocommerce-services --skill create-pr -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/create-pr, .gemini/skills/create-pr, .github/skills/create-pr and .opencode/skills/create-pr in your project.

What does Create PR need to run?

Going by SKILL.md and its folder, Create PR needs the command-line tools its instructions call (git).

Does Create PR access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Create PR safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Create PR use?

Create PR is published under the GPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Create PR use?

About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Create PR?

Skills that share tags, products or a category with Create PR: WooCommerce Draft PR Creator (woocommerce/woocommerce, 11k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars), Create Pull Request (cline/cline, 70k stars) and Pull Request Title and Body Writer (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Create PR?

Automattic (a GitHub organization) maintains it in Automattic/woocommerce-services, which has 112 GitHub stars. The repository was last updated on October 8, 2026.

Source: Automattic/woocommerce-services on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.