blueprint
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing…
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
$ npx -y skills add WordPress/agent-skills --skill wp-block-development --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/wp-block-developmentContext preview
The summary Claude sees to decide when to auto-load this skill.
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
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.)
Repo: WordPress/agent-skills
Use when the deliverable is WordPress Playground Blueprint JSON or a Blueprint bundle, including creating, editing, reviewing, validating schema keys, choosing…
Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you need to quickly classify the repo…
Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, /wp-json/wp-abilities/v1/*, @wordpress/abilities)…
Audit a WordPress plugin's REST surface and produce a standardized audit document proposing Abilities API registrations. Produces a markdown doc with a YAML…
Verify a WordPress plugin's Abilities API registrations: enumerate abilities, check that callback behavior matches each annotation's claim (the adversarial…
Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor…