Wp Block Development
Step-by-step guide for developing WordPress Gutenberg blocks, from block.json metadata through rendering and migrations.
- CCM score
- 54 of 100
- skills.sh installs
- 492
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Own this skill? Claim it
What it does
- Covers block creation,
block.jsonchanges, server registration, edit/save/render patterns, inner blocks, attributes, and deprecations - Includes a triage step, a block scan via
list_blocks.mjs, and reference guides for each stage of block work - Enforces
apiVersion: 3for WordPress 6.9+ and warns that changing saved markup without adeprecatedentry causes "Invalid block" - Designed for plugin and theme developers building static, dynamic, or interactive blocks with
@wordpress/scriptsandwp-env
Install
$ npx -y skills add automattic/agent-skills --skill wp-block-development -yInstalls into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.
Files
WP Block Development
When to use
Use this skill for block work such as:
- creating a new block, or updating an existing one
- changing
block.json(scripts/styles/supports/attributes/render/viewScriptModule) - fixing “block invalid / not saving / attributes not persisting”
- adding dynamic rendering (
render.php/render_callback) - block deprecations and migrations (
deprecatedversions) - build tooling for blocks (
@wordpress/scripts,@wordpress/create-block,wp-env)
Inputs required
- Repo root and target (plugin vs theme vs full site).
- The block name/namespace and where it lives (path to
block.jsonif known). - Target WordPress version range (especially if using modules /
viewScriptModule).
Procedure
0) Triage and locate blocks
- Run triage:
node skills/wp-project-triage/scripts/detect_wp_project.mjs
- List blocks (deterministic scan):
node skills/wp-block-development/scripts/list_blocks.mjs
- 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.
1) Create a new block (if needed)
Details
- Repository
- github.com/automattic/agent-skills
- Categories
- PHP & Laravel, Frontend & UI Code
- First seen
- Jun 3, 2026
Questions
What does the wp-block-development skill help with?
It guides an agent through WordPress Gutenberg block work, including block.json metadata, attributes and serialization, dynamic rendering with render.php or render_callback, and deprecations and migrations. It also covers the @wordpress/scripts and @wordpress/create-block build and test workflows. The skill is aimed at developers building or fixing blocks for WordPress 6.9 and later.
How do I install the wp-block-development skill?
Run npx -y skills add automattic/agent-skills --skill wp-block-development -y in your project. Once installed, the agent follows the block development procedure when you ask it to create or change a WordPress block.
Which skills does wp-block-development rank alongside in PHP and Laravel?
On Claude Marketplaces it sits in the PHP & Laravel category and ranks in the top 100 there. Other skills listed in that category include laravel-specialist, php-pro, laravel-patterns, laravel-verification and laravel-plugin-discovery. This skill focuses on WordPress block development rather than Laravel.
More from automattic/agent-skills
All 12Similar to Wp Block Development
More PHP & Laravelwp-block-themesautomattic/agent-skills563 installsFilesystem-based workflow for building WordPress block themes, covering theme.json, templates, patterns, and style variations.
wp-plugin-developmentautomattic/agent-skills566 installsWordPress plugin development guidance covering architecture, lifecycle hooks, Settings API, and security baseline.
wp-patternsWordPress/agent-skills3K installsGuide for creating and reviewing WordPress block patterns, covering registration, block markup, theme.json design tokens, and accessibility.
wordpress-theme-developmentsickn33/agentic-awesome-skills195 installsStructured WordPress theme development workflow covering templates, block editor support, and WordPress 7.0 features.
wordpress-block-editor-fsebobmatnyc/claude-mpm-skills493 installsModern WordPress FSE theme and custom block development covering theme.json, HTML templates, and block.json for WordPress 6.7+.
shopify-liquidshopify/shopify-ai-toolkit13.2K installsDeprecated Shopify Liquid skill, superseded by the consolidated shopify skill.