بنقرة واحدة
init
Initialize a new WordPress theme with the wp-blocks-dev block development workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Initialize a new WordPress theme with the wp-blocks-dev block development workflow
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Deep 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.
Scaffold a new ACF Gutenberg block with block.json, fields.json, and render.php
| 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