From data-liberation
Guides editing existing WordPress blocks: read all files first, make minimal targeted changes, update block.json/edit/save consistently, handle static-to-dynamic conversion and interactivity.
How this skill is triggered — by the user, by Claude, or both
Slash command
/data-liberation:editing-blocksThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Use this skill when modifying an existing block (files already exist in the workspace).
Use this skill when modifying an existing block (files already exist in the workspace). Do not use this skill when creating a new block from scratch.
edit tool for targeted changes; only use write when replacing more than 50% of a file"render": "file:./render.php" to block.json)"viewScript": "file:./view.js" to block.json, write view.js using plain JavaScript with standard DOM APIs (querySelector, addEventListener, classList, etc.) — never use the WordPress Interactivity APIBefore editing block files, read the relevant references from the references/ directory next to this skill file.
references/artefact-templates.md — read this to verify correct file structure, paths, and asset references (especially register_block_type path and block.json asset filenames)references/file-templates.md — additional guidelines for each block file typereferences/inner-blocks.md — read this if the block uses InnerBlocks or child blocksreferences/interactivity-api.md — read this when adding interactive behavior to a block that needs frontend JavaScriptnpx claudepluginhub automattic/data-liberation-agent --plugin data-liberationGenerates WordPress blocks from scratch using templates from reference files. Guides dynamic block creation with InnerBlocks, viewScript, and data-* attributes.
Refactors ACF Composer blocks along four axes: rendering model, field composition, block variants, and InnerBlocks adoption. Handles legacy migration, v2-to-v3 upgrades, and block evolution reports.
Generates or edits WordPress Gutenberg blocks for the Greenshift/GreenLight plugin and converts data or vanilla HTML+CSS+JS to WordPress blocks.