skills.vishalvoidskills/vishalvoid
Technical & DevelopmentIntermediate

wp-block-development

Gutenberg blocks: block.json, attributes, rendering, deprecations

Developer Setup

Setup & Installation

bash
npx skills add https://github.com/WordPress/agent-skills --skill wp-block-development

Overview

What This Skill Does

Gutenberg blocks: block.json, attributes, rendering, deprecations

Application

When to use this Skill

Documentation

Show Skills.md file

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
Lines 1 - 25 of 168

Recommendations

Explore other random skills

All skillsMy patterns