Create a pull request following project conventions. An agent skill from woocommerce/woocommerce-android.

GPL-2.0Auto-check: notesDevelopment

Install PR

skills CLI
$ npx skills add woocommerce/woocommerce-android --skill pr -a claude-code

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

GitHub CLI
$ gh skill install woocommerce/woocommerce-android 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/woocommerce/woocommerce-android.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pr .claude/skills/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
pr
GitHub stars
319
Token cost
~1.3k tokens
SKILL.md length
704 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
GPL-2.0

At a glance

Create a pull request following project conventions. An agent skill from woocommerce/woocommerce-android.

  • Works in 11 steps: Verify branch. Confirm you are NOT on… → Check for uncommitted changes. Run git… → Analyze the diff. Run git diff… → …
  • Any request to create
  • SKILL.md covers Steps, Image Formatting in PR Body and Troubleshooting
  • Calls gh and git

What it does

PR is an agent skill from woocommerce/woocommerce-android. Create a pull request following project conventions. Triggers on any request to create, open, make, submit, file, send, push, spin up, put up, draft, raise, or prepare a PR/pull request.

Its SKILL.md is about 1.3k 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 WooCommerce and Git. The repository describes itself as: WooCommerce Android app. The licence is GPL-2.0.

When your agent uses it

  • Any request to create
  • Prepare a PR/pull request

Example prompts

  • “/pr”

Requirements

  • Pre-approved tools (allowed-tools): Bash, Read, Grep, Glob

Workflow steps

11 steps, taken from the first numbered list in SKILL.md.

  1. Verify branch. Confirm you are NOT on trunk. If on trunk, stop and ask the user to create a feature branch first.
  2. Check for uncommitted changes. Run git status. If there are uncommitted changes, stop and ask the user whether to commit them first.
  3. Analyze the diff. Run git diff trunk...HEAD to understand ALL changes that will be in the PR. Also run git log --oneline trunk..HEAD to…
  4. Check diff size. Count non-test lines changed. If the diff is very large, mention it to the user.
  5. Review changes. Scan for
  6. Check RELEASE-NOTES.txt. If changes are user-facing, remind the user to update RELEASE-NOTES.txt. Use [Internal] for non-user-facing…
  7. Push the branch. Run git push -u origin .
  8. Create the PR. Read .github/PULL_REQUEST_TEMPLATE.md and use it as the body. Strip the HTML comments and fill in each section, following…
  9. Add labels. Add labels using gh pr edit --add-label "". Infer labels from the diff and branch name using the categories in the guidelines…
  10. Set milestone. Find the closest open milestone and assign it
  11. Report the PR URL to the user.

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Grep
    • Glob

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • gh
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use gh and git, which can reach the network depending on how they are called.

    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

PR loads about 1.3k tokens when it runs. Until then it costs about 47 tokens; SKILL.md has 704 words of instructions outside code blocks.

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

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: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Grep, Glob

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 woocommerce/woocommerce-android at commit 5a55038, republished under its GPL-2.0 licence (© woocommerce). 704 words, ~1,340 tokens.

Download SKILL.mdSave it as .claude/skills/pr/SKILL.md (or your agent's skills folder).
name
pr
description
Create a pull request following project conventions. Triggers on any request to create, open, make, submit, file, send, push, spin up, put up, draft, raise, or prepare a PR/pull request.
allowed-tools
Bash, Read, Grep, Glob
user-invocable
true

Create Pull Request

Create a pull request following the project's PR conventions.

@docs/pull-request-guidelines.md

Steps

IMPORTANT: Follow ALL steps in order. Do not skip any step, even if the PR seems simple.

  1. Verify branch. Confirm you are NOT on trunk. If on trunk, stop and ask the user to create a feature branch first.

  2. Check for uncommitted changes. Run git status. If there are uncommitted changes, stop and ask the user whether to commit them first.

  3. Analyze the diff. Run git diff trunk...HEAD to understand ALL changes that will be in the PR. Also run git log --oneline trunk..HEAD to see all commits.

  4. Check diff size. Count non-test lines changed. If the diff is very large, mention it to the user.

  5. Review changes. Scan for:

    • Architecture compliance (MVVM layers, Hilt DI, Compose patterns)
    • Missing tests for new logic
    • Any FIXME, !!, wildcard imports, or other violations
    • Whether RELEASE-NOTES.txt needs updating (user-facing changes)
  6. Check RELEASE-NOTES.txt. If changes are user-facing, remind the user to update RELEASE-NOTES.txt. Use [Internal] for non-user-facing changes.

  7. Push the branch. Run git push -u origin <branch-name>.

  8. Create the PR. Read .github/PULL_REQUEST_TEMPLATE.md and use it as the body. Strip the HTML comments and fill in each section, following the conventions from the guidelines doc above:

    • Description: start with Fixes WOOMOB-XYZ on its own line, then a short summary of what changed and why.
      • Keep it to what a reviewer needs: what was wrong, what this changes, and anything they can't see in the diff. A couple of sentences of plain prose is usually right — no section headers beyond the template's. If the PR fixes several distinct things, one line each is fine.
      • The conversation that produced the PR is not the PR. Don't retell the investigation — no debugging path, no narrative of how you got there, no measurements unless the measurement is the reason for the change.
      • Do pre-empt what a reviewer would actually raise: a decision they'd disagree with, or an obvious alternative they'd ask "why not X?" about. A sentence or a clause each, in prose. The bar is "they'd bring this up in review", not "this was interesting to figure out". Most PRs have nothing that clears it; if you end up with a list, you're padding.
      • Write so a reviewer who never saw this branch can follow it — carry the context, not the derivation.
      • References the reviewer can follow (a Linear issue, a linked Slack thread, a prior PR) are fine. What's not fine is referencing things the reviewer has no access to: the Claude session, findings-by-number from a private review ("HIGH-#2"), or severity labels from a one-off discussion. If you write "as discussed," make sure "discussed" is a link the reviewer can open.
    • Test Steps: numbered manual verification steps — a reviewer tapping through the app or reproducing a scenario. Do NOT include "run the unit tests" (or any ./gradlew test* invocation) as a step — CI already runs them, so they add noise without helping the reviewer.
    • Images/gif: include if applicable, otherwise N/A.
    • Keep the release-notes checkbox line as-is.

    Pass the filled template via a HEREDOC:

    bash
    gh pr create --draft --title "[WOOMOB-XYZ] <concise title>" --body "$(cat <<'EOF'
    <filled template content here>
    EOF
    )"
  9. Add labels. Add labels using gh pr edit <number> --add-label "<label>". Infer labels from the diff and branch name using the categories in the guidelines. If unsure about feature label, ask the user.

  10. Set milestone. Find the closest open milestone and assign it:

    • List open milestones (single-quote the URL to prevent shell & interpretation):
      gh api 'repos/{owner}/{repo}/milestones?state=open&sort=due_on&direction=asc'
    • Pick the one with the earliest due_on date that is still in the future
    • Assign it: gh api repos/{owner}/{repo}/issues/{number} -X PATCH -F milestone={milestone_number}
    • If the milestone due date is less than 1 day away, warn the user (e.g., "Heads up: milestone X closes in <N hours> — let me know if you'd prefer a different one.")
  11. Report the PR URL to the user.

Show full SKILL.md (66 more words)Show less

Image Formatting in PR Body

  • Before/after pair: Use a comparison table with | Before | After | headers
  • Multiple images: Use a table with appropriate column headers
  • Single image or video: Embed directly (e.g., ![Screenshot](url-or-path))
  • Constrain image width to 400px using HTML: <img src="url" width="400" />
  • If no images provided, use "N/A"

Troubleshooting

If gh pr edit fails with a GraphQL Projects (classic) error, fall back to the REST API:

bash
gh api repos/{owner}/{repo}/pulls/{number} -X PATCH -f body='...'
gh api repos/{owner}/{repo}/pulls/{number} -X PATCH -f title='...'
gh api repos/{owner}/{repo}/issues/{number}/labels -X POST --input - <<< '{"labels":["label1","label2"]}'

© woocommerce, 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/pr of woocommerce/woocommerce-android.

Open the folder on GitHubat commit 5a55038

Compare with similar skills

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.

PR compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
PR this skillwoocommerce/woocommerce-android319—~1.3kAutomated safety check: NotesGPL-2.0
WooCommerce Draft PR Creatorwoocommerce/woocommerce11k—~1.1kAutomated safety check: PassCustom licence
Create PRAutomattic/woocommerce-services112—~2.7kAutomated safety check: PassGPL-2.0
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Understand Diff AnalysisEgonex-AI/Understand-Anything85k1 repos~1.4kAutomated safety check: PassMIT
WooCommerce Code Reviewwoocommerce/woocommerce11k3 repos~1.1kAutomated safety check: PassCustom licence

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
  • Create PR

    Automattic/woocommerce-services

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

    112 GitHub stars~2.7k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Understand Diff Analysis

    Egonex-AI/Understand-Anything

    Reads your git changes or a pull request against a prebuilt knowledge graph of the project to explain what changed, which components are affected and what is risky.

    85k GitHub starsUsed in 1 repo~1.4k tokens
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    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

More from woocommerce/woocommerce-android

All 8 skills in this repo
  • PR Feedback

    woocommerce/woocommerce-android

    Address PR reviewer feedback by evaluating comments, proposing fixes, and executing after user approval.

    319 GitHub stars~1.3k tokensUpdated today
    Auto-check: notes
  • UI Review

    woocommerce/woocommerce-android

    Generate screenshot coverage for screen-level Compose previews from the current diff or a specific target, check required visual and data variations, and produce a compact visual report

    319 GitHub stars~3.1k tokensUpdated today
    Auto-check passed
  • Review

    woocommerce/woocommerce-android

    Review code changes against project architecture, style, and conventions

    319 GitHub stars~600 tokensUpdated today
    Auto-check: notes
  • Verify On Device

    woocommerce/woocommerce-android

    Build, install, and visually verify the app on an Android emulator or device.

    319 GitHub stars~10k tokensUpdated today
    Auto-check: notes
  • Woo AI Smoke

    woocommerce/woocommerce-android

    Run the Android AI Assistant headless smoke regression harness without launching UI.

    319 GitHub stars~2.5k tokensUpdated today
    Auto-check passed
  • Pos Tests

    woocommerce/woocommerce-android

    POS unit testing patterns (WooPosCoroutineTestRule, runTest, advanceUntilIdle, mockito-kotlin, event bus mocking, analytics verification).

    319 GitHub stars~216 tokensUpdated today
    Auto-check: notes

Works with

Categories

Questions about PR

What does PR do?

Create a pull request following project conventions. An agent skill from woocommerce/woocommerce-android. PR is an agent skill from woocommerce/woocommerce-android. Create a pull request following project conventions.

When should I use PR?

PR fits situations like: any request to create; prepare a PR/pull request.

How do I install PR in Claude Code?

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

How do I install PR in Codex?

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

Can I use 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 woocommerce/woocommerce-android --skill 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/pr, .gemini/skills/pr, .github/skills/pr and .opencode/skills/pr in your project.

What does PR need to run?

Going by SKILL.md and its folder, PR needs the command-line tools its instructions call (gh and git). Its frontmatter pre-approves these tools: Bash, Read, Grep, Glob.

Does PR access the network?

SKILL.md contains no URLs. Its commands use gh and git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is PR safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does PR use?

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 PR use?

About 1.3k tokens (SKILL.md is roughly 5.4k 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 PR?

Skills that share tags, products or a category with PR: WooCommerce Draft PR Creator (woocommerce/woocommerce, 11k stars), Create PR (Automattic/woocommerce-services, 112 stars), Finishing a Development Branch (obra/superpowers, 296k stars) and Understand Diff Analysis (Egonex-AI/Understand-Anything, 85k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains PR?

woocommerce (a GitHub organization) maintains it in woocommerce/woocommerce-android, which has 319 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 7, 2026.

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