Automated summary
Automates opening a pull request in the WooCommerce iOS repository while enforcing the project's conventions: branch check, PR template, labels and milestone.
Strengths
- Checks the current branch and the non-test diff size before pushing, pre-empting the 300-line limit flagged by Danger.
- Builds the PR body from .github/PULL_REQUEST_TEMPLATE.md and reminds about RELEASE-NOTES.txt for user-facing changes.
- Adds type, feature, priority and category labels in a single call, including status: feature-flagged when relevant.
- Picks the right milestone by reading the Code Freeze dates of open milestones, distinguishing trunk targets from release/X.Y branches.
Limitations
- Tightly bound to woocommerce/woocommerce-ios: trunk base, milestones API and label taxonomy are hardcoded, so it is not portable to other repos.
- Requires an authenticated gh CLI and push access to the repository.
- Feature label inference can be wrong, in which case the skill asks the user to confirm.
- Milestone selection relies on milestone descriptions containing a 'Code Freeze:' date.
Use it when work on a WooCommerce iOS branch is finished and you need a properly templated, labeled and milestoned PR opened in one pass.
Avoid it for other repositories, or when labels and milestone must be chosen manually outside the project's conventions.
Security analysis
SafeThe skill performs standard git and GitHub CLI operations (branch check, diff, push, PR creation, label/milestone assignment) for a legitimate development workflow. It does not include destructive commands, exfiltration, obfuscation, or unsafe network calls. The explicit instruction to avoid Linear links is privacy-conscious, not a security risk.
No concerns found
How this analysis is madeExamples
Create the pull request for my current branch against trunk — check the non-test diff size, follow the PR template, add the right labels, and set the milestone.Open a PR for this feature-flagged change, add the feature-flagged status label, and remind me if I need a RELEASE-NOTES.txt entry.I just finished the order details fix; create the PR and infer the type, feature and priority labels from the diff and branch name.name: pr description: Create a pull request following WooCommerce iOS conventions user-invocable: true allowed-tools: "Bash, Read, Grep, Glob"
Create a pull request following WooCommerce iOS conventions.
Steps:
- Verify the current branch is not
trunk:
git branch --show-current
- Check the diff against trunk:
git log trunk..HEAD --oneline
git diff trunk...HEAD --stat
- Check non-test diff size (should be under 300 lines):
git diff trunk...HEAD --stat -- . ':!*Tests*' ':!*Test*' ':!*.generated.*'
-
Review the changes to write an accurate description. Read modified files if needed.
- Never include actual Linear issue links (e.g.,
https://linear.app/...) in PR descriptions — Linear is an internal resource. Only reference the issue ID (e.g.,WOOMOB-2485).
- Never include actual Linear issue links (e.g.,
-
Determine if RELEASE-NOTES.txt needs updating. If the change is user-facing, remind about adding a release note entry.
-
Push the branch:
git push -u origin HEAD
- Create the PR. The description must follow the template in
.github/PULL_REQUEST_TEMPLATE.md:
gh pr create --base trunk --title "<concise title>" --body "$(cat <<'EOF'
## Description
<description of changes — why and what>
## Test Steps
<how to test>
## Screenshots
N/A
---
- [ ] I have considered if this change warrants user-facing release notes and have added them to `RELEASE-NOTES.txt` if necessary.
EOF
)"
-
Add labels. After creating the PR, add all labels in a single call using multiple
--add-labelflags:gh pr edit <number> --add-label "<label1>" --add-label "<label2>". Pick labels from these categories:- Type (pick one):
type: bug,type: crash,type: enhancement,type: task,type: technical debt,type: documentation,type: question - Feature (pick one if applicable): match the changed area to a
feature: *label (e.g.,feature: POS,feature: order list,feature: order details,feature: product details,feature: login,feature: dashboard,feature: analytics hub,feature: coupons,feature: shipping labels,feature: order creation,feature: notifications,feature: Blaze,feature: CIAB Mobile Experience,feature: subscriptions,feature: app settings, etc.) - Priority (pick one if known):
priority: low,priority: medium,priority: high,priority: critical - Category (pick any that apply):
category: accessibility,category: design,category: performance,category: tracks,category: unit tests,category: ui tests,category: tooling,category: parity,category: i18n,category: dark mode,category: tablet, etc. - If the feature is behind a flag, also add
status: feature-flagged - Infer labels from the diff and branch name. If unsure about the feature label, ask the user.
- Type (pick one):
-
Set milestone. After creating the PR, assign the correct milestone:
- List open milestones:
gh api repos/woocommerce/woocommerce-ios/milestones --jq '.[] | "\(.title)\t\(.description)"' - Each milestone description contains a
Code Freeze:date. - If the PR targets
trunk: pick the earliest milestone whose code freeze date has not yet passed (i.e., the next unfrozen milestone). - If the PR targets a
release/X.Ybranch: use milestoneX.Y(the frozen release milestone). - Apply with:
gh pr edit <number> --milestone "<milestone title>"
- List open milestones:
-
Report the PR URL.
If non-test diff exceeds 300 lines, warn that Danger will flag it and suggest splitting.
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/create-a-pull-request-woocommerce-ios-mt9mglkr/download' --output '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md.part' && mv '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md.part' '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Bash, Read, Grep, Glob
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md' && test -s '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/pr' && cp -R '.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr' '.claude/skills/pr'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr'openskills read 'create-a-pull-request-woocommerce-ios-mt9mglkr'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/create-a-pull-request-woocommerce-ios-mt9mglkr/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.