一键导入
create-block
Scaffold a new ACF Gutenberg block with block.json, fields.json, and render.php
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new ACF Gutenberg block with block.json, fields.json, and render.php
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | create-block |
| description | Scaffold a new ACF Gutenberg block with block.json, fields.json, and render.php |
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:
hero-bannerHero Banner--js if yes--admin if yes (interactive blocks only)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:
fields.json, run date +%s and update the modified value--js was used, run pnpm ts-build or pnpm ts-watchDeep AI audit of all blocks — runs structural checks first, then uses AI to review content quality, descriptions, grammar, admin render justification, wrapper usage, and empty-state messages.
Fast structural audit of all blocks — checks required files, wrapper attributes, fields.json timestamp, preview.png. No AI, runs instantly via script.
Initialize a new WordPress theme with the wp-blocks-dev block development workflow