Read [@/knowledge/acf-blocks/conventions.md](/knowledge/acf-blocks/conventions.md) and [@/knowledge/acf-blocks/fields.md](/knowledge/acf-blocks/fields.md), then:
Ask the user for:
- Block name — kebab-case slug, e.g.
hero-banner - Block title — human-readable, e.g.
Hero Banner - Block description — one sentence (optional)
- Needs frontend JS? — pass
--jsif yes - Needs admin preview? — pass
--adminif yes (interactive blocks only)
- Block name — kebab-case slug, e.g.
Run the script from the theme root:
node $(claude plugin path wp-blocks-dev)/scripts/create-block.js <name> --title="<title>" --description="<description>" [--js] [--admin]Show the script output, then remind:
- Add ACF fields in WordPress admin → Field Groups
- After editing
fields.json, rundate +%sand update themodifiedvalue - If
--jswas used, runpnpm ts-buildorpnpm ts-watch