# woocommerce-dev-cycle

woocommerce-dev-cycle guides the WooCommerce development workflow, covering targeted PHP and JavaScript tests, code formatting, and branch linting before commit.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · ★ 10608 repo stars
- Author: woocommerce
- License: GPL-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/woocommerce/woocommerce/tree/HEAD/.ai/skills/woocommerce-dev-cycle/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/woocommerce-woocommerce-dev-cycle

## What it does

This skill guides contributors through the WooCommerce monorepo quality checks. Following changes, you run focused PHP tests using `pnpm run test:php:env -- --filter YourTestClass` and audit branch diffs via `pnpm --filter=@woocommerce/plugin-woocommerce lint:changes:branch`. The integrated testing harness configures WordPress and WooCommerce on its own.

Untracked files are skipped by the branch linter, requiring staged files with `git add` prior to the check. Automated fixing is available for PHP through `pnpm --filter=@woocommerce/plugin-woocommerce lint:php:fix`, whereas JavaScript formatting issues require manual intervention.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add woocommerce/woocommerce --skill woocommerce-dev-cycle -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/woocommerce-dev-cycle/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/woocommerce-dev-cycle/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add woocommerce/woocommerce --skill woocommerce-dev-cycle -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/woocommerce-dev-cycle/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add woocommerce/woocommerce --skill woocommerce-dev-cycle -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/woocommerce-dev-cycle/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install woocommerce/woocommerce .ai/skills/woocommerce-dev-cycle
```

2. **Manually: put the files in place**
- File: `.github/skills/woocommerce-dev-cycle/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add woocommerce/woocommerce --skill woocommerce-dev-cycle -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/woocommerce/woocommerce --path .ai/skills/woocommerce-dev-cycle
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/woocommerce-dev-cycle/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add woocommerce/woocommerce --skill woocommerce-dev-cycle -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/woocommerce/woocommerce/tree/HEAD/.ai/skills/woocommerce-dev-cycle/SKILL.md

## When to use it
- Run targeted PHP test suites for specific classes in WooCommerce
- Check branch code style before submitting pull requests to CI
- Automatically format PHP files to resolve linting violations
- Verify localization conventions in JavaScript and TypeScript files

## Example prompts
- Run PHP tests for the `WC_Order` test class in the local environment
- Lint all branch modifications targeting the WooCommerce plugin
- Fix PHP code style issues in changed plugin files

## Similar
- [woocommerce](https://affpapa.org/en/nevibecode/skills/woocommerce.md) — skill · 886 installs
- [woocommerce-webhooks](https://affpapa.org/en/nevibecode/skills/woocommerce-webhooks.md) — skill · 213 installs
- [WooCommerce Store Manager](https://affpapa.org/en/nevibecode/mcp/woocommerce-store-manager.md) — MCP server · 654 installs
- [wordpress-pro](https://affpapa.org/en/nevibecode/skills/wordpress-pro.md) — skill · 10400 installs
- [WooCommerce Automation](https://affpapa.org/en/nevibecode/skills/woocommerce-automation.md) — skill · 4900 installs
- [woocommerce-copy-guidelines](https://affpapa.org/en/nevibecode/skills/woocommerce-copy-guidelines.md) — skill · 381 installs

From the same set: [woocommerce/woocommerce](https://affpapa.org/en/nevibecode/by/woocommerce/woocommerce.md) — 9 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
