blueprint
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing,…
Use when developing WordPress (Gutenberg) blocks: block.json metadata, register_block_type(_from_metadata), attributes/serialization, supports, dynamic rendering (render.php/render_callback), deprecations/migrations, viewScript vs viewScriptModule, and
Claude Code
$ npx -y skills add WordPress/agent-skills --skill wp-block-development --agent claude-code
Codex
$ npx skills add WordPress/agent-skills --skill wp-block-development -a codex -y
Cursor
$ npx skills add WordPress/agent-skills --skill wp-block-development -a cursor -y
Gemini CLI
$ npx skills add WordPress/agent-skills --skill wp-block-development -a gemini-cli -y
GitHub Copilot
$ npx skills add WordPress/agent-skills --skill wp-block-development -a github-copilot -y
OpenCode
$ npx skills add WordPress/agent-skills --skill wp-block-development -a opencode -y
Windsurf
$ npx skills add WordPress/agent-skills --skill wp-block-development -a windsurf -y
name: wp-block-development description: "Use when developing WordPress (Gutenberg) blocks: block.json metadata, register_block_type(_from_metadata), attributes/serialization, supports, dynamic rendering (render.php/render_callback), deprecations/migrations, viewScript vs viewScriptModule, and @wordpress/scripts/@wordpress/create-block build and test workflows." compatibility: "Targets WordPress 7.0+ (PHP 7.4.0+). Filesystem-based agent with bash + node. Some workflows require WP-CLI."
Use this skill for block work such as:
1. Run triage:
2. List blocks (deterministic scan):
3. Identify the block root (directory containing `block.json`) you’re changing.
If this repo is a full site (`wp-content/` present), be explicit about *which* plugin/theme contains the block.
If you are creating a new block, prefer scaffolding rather than hand-rolling structure:
Read:
After scaffolding:
1. Re-run the block list script and confirm the new block root. 2. Continue with the remaining steps (model choice, metadata, registration, serialization).
WordPress 6.9 enforces `apiVersion: 3` in the block.json schema. Blocks with apiVersion 2 or lower trigger console warnings when `SCRIPT_DEBUG` is enabled.
**Why this matters:**
**Migration:** Changing from version 2 to 3 is usually as simple as updating the `apiVersion` field in `block.json`. However:
Read:
Make changes in the block’s `block.json`, then confirm registration matches metadata.
For field-by-field guidance, read:
Common pitfalls:
Prefer PHP registration using metadata, especially when:
Read and apply:
Follow wrapper attribute best practices:
Read:
If your block is a “container” that nests other blocks, treat Inner Blocks as a first-class feature:
Read:
Before changing attributes:
Read:
If you change saved markup or attributes:
1. Add a `deprecated` entry (newest → oldest). 2. Provide `save` for old versions and an optional `migrate` to normalize attributes.
Read:
Prefer whatever the repo already uses:
Read:
If something fail
Teach AI coding assistants how to build WordPress the right way. Agent Skills are portable bundles of instructions, checklists, and scripts that help AI assistants (Claude, Copilot, Codex, Cursor, etc.)
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing,…
Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you…
Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*,…
Audit a WordPress plugin's REST surface and produce a standardized audit document proposing Abilities API registrations. Produces…
Verify a WordPress plugin's Abilities API registrations: enumerate abilities, check that callback behavior matches each…
Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style…
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…
Ask which skill or flow fits your situation. A router over the skills in this repo.