with one click
init
// Initialize a new WordPress theme with the wp-blocks-dev block development workflow
// Initialize a new WordPress theme with the wp-blocks-dev block development workflow
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | init |
| description | Initialize a new WordPress theme with the wp-blocks-dev block development workflow |
Read [@/knowledge/acf-blocks/conventions.md](/knowledge/acf-blocks/conventions.md), [@/knowledge/tailwind/build-pipeline.md](/knowledge/tailwind/build-pipeline.md), and [@/knowledge/typescript/tsup-setup.md](/knowledge/typescript/tsup-setup.md), then:
Ask for all answers before proceeding:
My Client Sitemy-client-siteDefault yes for all:
If a file already exists, ask whether to overwrite or skip. Never silently overwrite.
Create under themes/{slug}/:
themes/{slug}/
āāā style.css Theme header (Name, Author, Text Domain, Version)
āāā index.php <?php // Silence is golden.
āāā functions.php require register-blocks + enqueue-assets, PX_PROJECT_NAME constant
āāā blocks.json []
āāā QUICKSTART.md
āāā blocks/
āāā inc/
ā āāā register-blocks.php
ā āāā enqueue-assets.php
āāā helpers/
āāā assets/
āāā js/
āāā css/
QUICKSTART.md content:
# Quick Start
- `/wp-blocks-dev:create-block <name>` ā scaffold a new block
- `/wp-blocks-dev:audit-blocks` ā audit all blocks against conventions
Follow knowledge/tailwind/build-pipeline.md. Copy the template:
mkdir -p themes/{slug}/scripts themes/{slug}/assets/css
cp $(claude plugin path wp-blocks-dev)/templates/tailwind.js themes/{slug}/scripts/tailwind.js
Remind user to copy tailwind-theme-loader.php into mu-plugins/.
Follow knowledge/typescript/tsup-setup.md. Create tsup.config.ts, tsconfig.json, and assets/js/index.entry.ts.
Print a summary of what was created and what was skipped. Next steps:
pnpm install && pnpm build if Tailwind or TS was selected/wp-blocks-dev:create-block to add the first block