wp-block-development

Installation
Summary

WordPress block development for Gutenberg: metadata, registration, rendering, and build workflows.

  • Covers block creation, block.json configuration, static vs. dynamic rendering, and server-side PHP registration with register_block_type_from_metadata()
  • Enforces apiVersion: 3 for WordPress 6.9+ compatibility, including iframe editor support and style isolation
  • Handles attribute serialization, deprecations/migrations to prevent "Invalid block" errors, and inner blocks composition
  • Includes tooling guidance for @wordpress/scripts, @wordpress/create-block, and wp-env workflows; requires WordPress 6.9+, PHP 7.2.24+, and WP-CLI for some tasks
SKILL.md

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 (deprecated versions)
  • 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.json if known).
  • Target WordPress version range (especially if using modules / viewScriptModule).
Related skills

More from wordpress/agent-skills

Installs
1.6K
GitHub Stars
1.5K
First Seen
Feb 1, 2026