add-block
Installation
SKILL.md
Create a new Gutenberg block following WordPress best practices.
Pre-flight: Variation check
Before scaffolding a new block, run this check:
- Search existing blocks (
src/blocks/*) for anything conceptually similar. - Ask: would the new block differ from an existing one only by 1–3 attributes and share the same
save()output structure? - If yes → register a variation via
registerBlockVariation, not a new block. Variations have no migration cost and no deprecation debt. - If the save markup or inner-block structure actually differs → a new block is justified. Proceed.
See the "Variations vs. new blocks" section in .claude/claude.md for rationale and the consolidation pattern for sibling blocks.