# woocommerce-email-editor

woocommerce-email-editor — a skill for building the WooCommerce block email editor. Use it when working on transactional emails and templates.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 1 install · ★ 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-email-editor/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-email-editor

## What it does

The skill sets up the environment for the WooCommerce email editor: starts `wp-env`, runs a watcher to build JS and sync the PHP package, enables the editor in settings. To test sending, it configures Mailpit as a local SMTP server — emails appear at `http://localhost:8025`.

It includes commands to run PHP package tests, PHPStan and PHPCS linters, and rebuild the JS package. Paths to the Email Editor packages (PHP and JS) and the `.wp-env.override.json` config are in the instructions.

Without Docker and Composer, tests and linters will not run. If port 8888 is taken, `wp-env` assigns another — check `wp-env info` output.

## Install

### Claude Code (native platform)

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

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

### Codex

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

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

### Cursor

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

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

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install woocommerce/woocommerce .ai/skills/woocommerce-email-editor
```

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

### Gemini CLI

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

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

### Windsurf (Devin Desktop)

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

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add woocommerce/woocommerce --skill woocommerce-email-editor -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-email-editor/SKILL.md

## When to use it
- set up environment for WooCommerce email editor development
- configure local SMTP to test transactional emails
- run tests and linters for the Email Editor PHP package
- rebuild the editor JS package after changes
- sync PHP and JS changes during development

## Example prompts
- Set up the WooCommerce email editor environment
- Configure Mailpit to test email sending
- Run tests for the Email Editor PHP package

## Similar
- [woocommerce](https://affpapa.org/en/nevibecode/skills/woocommerce.md) — skill · 886 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
- [wordpress-block-editor-fse](https://affpapa.org/en/nevibecode/skills/wordpress-block-editor-fse.md) — skill · 482 installs
- [wordpress-claude-stack](https://affpapa.org/en/nevibecode/rules/wordpress-claude-stack.md) — rule · ★ 41178 repo stars

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
