Setup
Skill phucbm/skills/skills/wordpress/wp-acf-blocks/skills/setup
Set up a new WordPress theme with the wp-acf-blocks block development workflowFrom its SKILL.md
npx -y skills add phucbm/skills --skill setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 2 stars2 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
4.1 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
Read @/knowledge/acf-blocks/conventions.md before proceeding.
Step 1 — Collect project info
Ask for all answers before proceeding:
- Theme name — human-readable, e.g.
My Client Site - Theme slug / Text Domain — kebab-case, e.g.
my-client-site - Author — developer or agency name
- WordPress path — absolute path to the WordPress installation root (needed to copy mu-plugins)
Step 2 — Confirm optional features
Default yes for all:
- Tailwind v4 — CSS build pipeline with per-developer CSS support
- TypeScript + tsup — JS bundler for entry files and block scripts
Step 3 — Check for existing files
If a file already exists, ask whether to overwrite or skip. Never silently overwrite.
Step 4 — Copy and configure boilerplate
Copy the entire boilerplate/theme/ directory to themes/{slug}/:
cp -r "$(claude plugin path wp-acf-blocks)/boilerplate/theme" themes/{slug}
Then replace all placeholders throughout the copied files:
| Placeholder | Replace with |
|---|---|
{THEME_NAME} | Human-readable theme name |
{TEXT_DOMAIN} | Theme slug (kebab-case) |
{AUTHOR} | Author name |
Files containing placeholders: style.css, functions.php, package.json.
The scaffolded structure:
themes/{slug}/
├── style.css
├── index.php
├── functions.php THEME_NAME constant, DEV_CSS_MAP stub, requires
├── blocks.json { "blocks": [] }
├── inc/
│ ├── enqueue-assets.php
│ └── auto-include-components.php
├── helpers/
│ └── ui/
│ └── get-block-wrapper-attributes.php
├── blocks/
├── scripts/
│ └── tailwind.js
├── assets/
│ ├── js/
│ │ └── index.entry.ts
│ └── css/
│ └── index.css
├── acf-json/ empty dir tracked via .gitkeep; populated by ACF when saving field groups
├── tsup.config.ts
├── tsconfig.json
├── .gitignore
└── package.json
Step 5 — Install mu-plugins
Copy all three mu-plugins to the WordPress mu-plugins directory:
cp "$(claude plugin path wp-acf-blocks)/boilerplate/mu-plugins/wp-blocks-loader.php" {WP_PATH}/wp-content/mu-plugins/
cp "$(claude plugin path wp-acf-blocks)/boilerplate/mu-plugins/acf-local-json-router.php" {WP_PATH}/wp-content/mu-plugins/
cp "$(claude plugin path wp-acf-blocks)/boilerplate/mu-plugins/tailwind-theme-loader.php" {WP_PATH}/wp-content/mu-plugins/
What each does:
wp-blocks-loader.php— readsblocks.json, registers each block viaregister_block_type(), adds a project block category in the Gutenberg inserter (label fromTHEME_NAMEconstant), fixes WP 6.3+ defer strategy soviewScriptfiles load in footeracf-local-json-router.php— routes ACF field group saves toblocks/{slug}/fields.json(per-block) oracf-json/(all other groups); required for the per-blockfields.jsonworkflowtailwind-theme-loader.php— enqueues Tailwind-built CSS on frontend and inside Gutenberg editor iframe; supports per-developer CSS files viaDEV_CSS_MAP
Step 6 — If Tailwind selected
The boilerplate .gitignore already excludes .env.local and generated CSS files. For per-developer CSS, instruct each developer to create .env.local in the theme root:
TAILWIND_USER=theirlogin
Then map WP user IDs in functions.php:
define('DEV_CSS_MAP', [
1 => 'alice',
2 => 'bob',
]);
Step 7 — Install dependencies and build
cd themes/{slug}
pnpm install
pnpm build
Step 8 — Confirm completion
Print a summary of what was created and what was skipped. Next steps:
- Activate the theme in WordPress admin
- Confirm ACF plugin is active (required for block field groups)
- Use
/wp-acf-blocks:plan-blockto plan a block and create a GitHub issue - Use
/wp-acf-blocks:add-blockto scaffold the first block
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.
Gives 0 of the 12 instructions most project setup skills give in ~1.0k tokens
Counted across 1,553 of the 3,091 authors here whose files we hold, read 2026-09-06
- Write the configuration filein 36 of 1553
- Create the directory structurein 35 of 1553, across 33 files
- Verify the setupin 31 of 1553, across 28 files
- Run the setup scriptin 30 of 1553, across 29 files
- Pre-determine the required sample sizein 29 of 1553, across 12 files
- Check if the configuration already existsin 29 of 1553
- Document every testin 26 of 1553, across 10 files
- Start with a hypothesisin 26 of 1553, across 11 files
- Ask one question at a timein 22 of 1553
- Test a single variable per testin 21 of 1553, across 9 files
- Read product marketing context before asking questionsin 19 of 1553, across 8 files
- Do not peek and stop earlyin 18 of 1553, across 7 files
Said here and by no other author read
- Read the conventions file before proceeding
- Ask whether to overwrite or skip existing files
- Copy boilerplate theme directory to themes
- Copy all three mu-plugins to WordPress directory
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.