wordpress avatar

Wp Block Development

This covers the full lifecycle of WordPress Gutenberg block development: scaffolding with @wordpress/create-block, managing block.json metadata, handling static versus dynamic rendering, and keeping blocks valid through deprecations and migrations. It enforces apiVersion 3 for WordPress 6.9+ iframe editor compatibility and walks you through registration patterns, attribute serialization pitfalls, and inner blocks. The skill includes deterministic scripts to locate blocks in your repo and triage tooling (wp-scripts, wp-env). Honest take: block development has a lot of gotchas around serialization and markup changes, and this systematically addresses the most common ways blocks break when you touch them.

skills.sh installs
5.9K
GitHub stars
2.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add wordpress/agent-skills --skill wp-block-development --agent claude-code

Installs into .claude/skills of the current project.

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 (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).

Procedure

0) Triage and locate blocks

  1. Run triage:
    • node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. List blocks (deterministic scan):
    • node skills/wp-block-development/scripts/list_blocks.mjs
  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.

1) Create a new block (if needed)

Sponsors

Details

Repository
github.com/wordpress/agent-skills
Categories
Testing & QA, DevOps & CI/CD, AI & Agent Building, PHP & Laravel

More from wordpress/agent-skills

All 17
1affaan-m avatarkotlin-coroutines-flowsaffaan-m/eccKotlin Coroutines and Flow patterns for Android and KMP — structured concurrency, Flow operators, StateFlow, error handling, and testing.5.9Kskills.sh installs
2jeffallan avatarprompt-engineerjeffallan/claude-skillsWrites, refactors, and evaluates prompts for LLMs — generating optimized prompt templates, structured output schemas, evaluation rubrics, and test suites. Use w5.9Kskills.sh installs
3forcedotcom avataragentforce-architecture-analyzeforcedotcom/sf-skillsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch5.9Kskills.sh installs
4affaan-m avatarui-demoaffaan-m/eccRecord polished UI demo videos using Playwright. Use when the user asks to create a demo, walkthrough, screen recording, or tutorial video of a web application.5.8Kskills.sh installs
5forcedotcom avataragentforce-observeforcedotcom/sf-skillsAnalyze production Agentforce agent behavior using session traces and Data Cloud. TRIGGER when: user queries STDM session data or Data Cloud trace records; inve5.8Kskills.sh installs
6getsentry avatarcode-reviewgetsentry/skillsPerform code reviews following Sentry engineering practices. Use when reviewing pull requests, examining code changes, or providing feedback on code quality. Co5.7Kskills.sh installs