
Wp Block Development
wordpress/agent-skillsOfficial
Structured workflow for building WordPress Gutenberg blocks, covering block.json, registration, rendering, and migrations.
- skills.sh installs
- 6.1K
- GitHub stars
- 2.4K
- last updated
- Aug 21, 2026
What it does
- Covers the full block lifecycle: scaffolding, block.json metadata, registration, edit/save or render patterns, attributes, and deprecations
- Includes
list_blocks.mjsfor locating block roots anddetect_wp_project.mjsfor triage, plus reference guides for each step - Enforces
apiVersion: 3for WordPress 6.9+ and requires adeprecatedentry whenever saved markup changes, to avoid "Invalid block" errors - Designed for plugin and theme developers building static, dynamic, or interactive blocks with
@wordpress/scriptsandwp-env
Install
$ npx -y skills add wordpress/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/wordpress/agent-skills
- Categories
- PHP & Laravel, Frontend & UI Code
More from wordpress/agent-skills
All 17- Wp Playground5.3K
- Wp Phpstan5.1K
- Wp Abilities Api4.8K
- Wp Interactivity Api4.6K
- Wpds4.5K
- Blueprint4.1K
- Wp Plugin Directory Guidelines4.1K
- Wp Abilities Audit3.1K
- Wp Abilities Verify3K
- Wp Plugin Development9K
- Wp Performance7K
- Wp Rest Api6.6K
- Wp Block Themes6.5K
- Wordpress Router6.3K
- Wp Wpcli And Ops6.2K
- Wp Project Triage6.2K
Similar to Wp Block Development
More PHP & Laravel
wp-patternsWordPress/agent-skills2.7K installsGuide for creating and reviewing WordPress block patterns, covering registration, block markup, theme.json design tokens, and accessibility.
wp-block-themeswordpress/agent-skills6.5K installsFilesystem-based workflow for building WordPress block themes with theme.json, templates, patterns, and style variations.
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-skills484 installsModern WordPress FSE theme and custom block development covering theme.json, HTML templates, and block.json for WordPress 6.7+.
wordpress-plugin-developmentsickn33/agentic-awesome-skills125 installsWordPress plugin development workflow covering architecture, hooks, admin screens, REST endpoints, and WordPress 7.0 features.
wordpress-plugin-fundamentalsbobmatnyc/claude-mpm-skills439 installsModern WordPress plugin scaffolding with OOP structure, hooks, wpdb access, and Settings API guidance.