Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

wp-block-development — Claude Code skill: Gutenberg blocks

A WordPress skill for Claude Code, Codex and Cursor that walks an agent through Gutenberg block work, from block.json metadata down to deprecations.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add WordPress/agent-skills --skill wp-block-development -a claude-code
Open on GitHub

What wp-block-development does

WP Block Development takes an agent through Gutenberg work: block.json metadata, registration via register_block_type with metadata, attributes and serialization, supports, dynamic rendering with render.php or render_callback, and the difference between viewScript and viewScriptModule. It starts with two scripts — list_blocks.mjs finds every block in the repo, detect_wp_project.mjs works out where you are.

Then come the steps: scaffold with @wordpress/create-block, move the block to apiVersion 3, pick a static or dynamic model, edit the metadata, register the block in PHP. Reference files in references/ back each step: attributes and serialization, wrapper props and supports, inner blocks, deprecations, tooling, debugging.

Build workflows follow whatever the repo already runs, usually @wordpress/scripts and wp-env. The agent needs bash and node, and some workflows want WP-CLI too. It targets WordPress 7.0+ with PHP 7.4.0+, and apiVersion 3 matters because the WordPress 7.0 post editor runs inside an iframe, where styles left out of the metadata never apply. On a full site, name the plugin or theme holding the block up front, or the edits land in the wrong block.json.

What it helps with

  • scaffold a new block with @wordpress/create-block instead of hand-rolling it
  • move a block to apiVersion 3 before the iframe editor arrives
  • fix attributes that stop saving after a block.json change
  • add server-side rendering through render.php or render_callback
  • add a deprecated version so old posts stop showing Invalid block

Example prompts for the agent

  • List every block in this repo and find the `block.json` for `my-plugin/hero`.
  • Add dynamic rendering to `my-plugin/hero` using `render.php`.
  • The block says Invalid block after I changed its markup — write the migration and the `deprecated` entry.

How to install wp-block-development

1Skills CLI (Vercel)

npx skills add WordPress/agent-skills --skill wp-block-development -a claude-code

2Manually: put the files in place

~/.claude/skills/wp-block-development/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wp-block-development/

From the same set8

The whole set →
wp-plugin-development WordPress This skill guides WordPress plugin work, from project structure and hooks to admin settings, security checks and release packaging. Claude Code CX Codex Cursor +1 7,900installs wp-performance WordPress Backend profiling skill for optimizing WordPress sites using WP-CLI, REST headers, and diagnostic scripts without browser access. Claude Code CX Codex Cursor +1 6,100installs wp-block-themes WordPress Guides the agent through building WordPress block themes, editing theme.json, and organizing templates. Useful when styles fail to apply in the Site Editor. Claude Code CX Codex Cursor +1 5,800installs wordpress-router WordPress Identifies the structure of a WordPress codebase and directs the agent to the appropriate workflow. Useful before starting work on plugins, themes, or core checkouts. Claude Code CX Codex Cursor +1 5,500installs wp-wpcli-and-ops WordPress A skill for WordPress operations through wp: move domains, export the database, install plugins, inspect cron. Useful when the agent has to touch a live site, not just theme files. Claude Code CX Codex Cursor +1 5,400installs wp-phpstan WordPress Sets up PHPStan static analysis in WordPress plugins and themes, while managing baselines and WordPress-specific PHPDoc types. Claude Code CX Codex Cursor +1 4,600installs wpds WordPress Feeds WordPress Design System docs to your agent through an MCP server, so UI work lands on real components and tokens instead of guesses. Claude Code CX Codex Cursor +1 4,000installs

Similar

svelte-code-writer sveltejs Fetches Svelte 5 documentation and analyzes components using autofixer. Useful when authoring or debugging .svelte and .svelte.ts files. Claude Code CX Codex Cursor +1 12,800installs react18-legacy-context official github This skill migrates React legacy context to createContext and coordinates the provider with every consumer. Use it for class component context migrations. GitHub Copilot 745installs react18-lifecycle-patterns official github Migrates unsafe class component lifecycle methods to React 18.3.1 patterns. Helps prepare legacy code for React 19 before breaking changes arrive. GitHub Copilot 743installs react18-string-refs official github Guides the move from string refs to React.createRef() in class components. Use it when preparing a project for React 18.3.1 or React 19. GitHub Copilot 741installs react18-enzyme-to-rtl official github Provides Enzyme to React Testing Library migration patterns for React 18 upgrades. Useful when rewriting shallow renders, mount calls, and state assertions into user behavior checks. GitHub Copilot 739installs typeui-fundamentals typeui.sh Provides design principles for visual hierarchy, a 4-point spacing grid, typography, and WCAG rules. Useful when the project design system leaves a gap. Claude Code CX Codex Cursor +1 2,200installs frontend-design official anthropics This skill guides intentional visual design for new interfaces and redesigns. Use it when a generic generated UI is not enough. Claude Code Claude.ai 1,025,790installs design-taste-frontend Leonxlnx This skill directs the design of public pages and work screens, then checks the result in a browser through screenshots. Use it when an interface feels generic or unfinished. Claude Code CX Codex Cursor +1 673,100installs

Questions about wp-block-development

How do I install wp-block-development in Claude Code?

Run npx skills add WordPress/agent-skills --skill wp-block-development -a claude-code. The skill lands in ~/.claude/skills/wp-block-development/SKILL.md.

What does wp-block-development do?

It gives the agent an ordered procedure for building and fixing Gutenberg blocks: metadata, registration, attributes, rendering, migrations. It falls back on canonical WordPress docs when upstream behaviour is unclear.

What do I need before using it?

Bash and node in the environment, plus WP-CLI for the workflows that call it. The skill targets WordPress 7.0+ with PHP 7.4.0+.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor