/flavian:scaffold-block <block-name> [--namespace ns] [--attributes "name:type[:default],..."] [--dynamic]from Flavian
Scaffolds a WordPress Gutenberg custom block plugin with block.json, edit/save JS, optional PHP render callback, and PHPUnit stub.
Ships in Flavian. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generate a self-contained, activatable custom block plugin under
plugins/<block-name>/ using scripts/scaffold-block.sh. No build step is
required — the generated index.js uses the WordPress runtime globals and
index.asset.php declares the package dependencies.
$ARGUMENTS
The generator accepts three core inputs from the v2.0.0 milestone. If any are
missing from $ARGUMENTS and cannot be sensibly defaulted, ask the user with
AskUserQuestion:
pricing-table.--namespace, default flavian) — becomes the block.json
name as <namespace>/<block-name>.--attributes) — comma-separated
name:type[:default]. Types: string, number, boolean, array,
object. Example: heading:string:Our Plans,count:number:3,featured:boolean.Optional: --dynamic (server-rendered render.php; otherwise a static
save()), --title, --description, --category, --icon, --keywords,
--text-domain, --author, --php-namespace, --version, --dest,
--force, --dry-run.
Parse $ARGUMENTS. Identify the block name, namespace, and attributes.
Decide static vs dynamic: choose --dynamic when the block's output depends
on PHP/server data (latest posts, current user, options); otherwise leave it
static. If the choice is ambiguous, ask.
Preview with --dry-run so the user can confirm the file list:
bash scripts/scaffold-block.sh <block-name> --namespace <ns> \
--attributes "<spec>" [--dynamic] --dry-run
Generate by re-running without --dry-run (or via
pnpm run scaffold:block <block-name> -- --namespace <ns> ...).
Report the created tree and the generated block name
<namespace>/<block-name>.
Offer the smoke test (requires the Docker stack running):
docker compose up -d wordpress db
bash scripts/smoke-block.sh <block-name> --namespace <ns>
This scaffolds, validates assets, activates the plugin, asserts the block is registered, and renders it on a throwaway page.
plugins/<block-name>/
├── <block-name>.php # Plugin header + register_block_type()
├── blocks/<block-name>/
│ ├── block.json # Metadata, attributes, supports
│ ├── index.js # edit() + save() (no build step)
│ ├── index.asset.php # Script dependencies + version
│ ├── editor.css / style.css # Styles
│ └── render.php # Dynamic render callback (--dynamic only)
├── tests/<BlockClass>Test.php # PHPUnit stub
├── tests/bootstrap.php # Lightweight WP stubs
├── phpunit.xml.dist
└── README.md
See docs/blocks/README.md for the full reference.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pmdevsolutions/flavian --plugin flavian16 skills in this plugin
/block-pattern-creationUse when creating WordPress block patterns, registering patterns, organizing pattern categories, or building reusable UI components with blocks. Keywords: block patterns, register_block_pattern, pattern category, InnerBlocks, WordPress patterns, reusable blocks/canva-to-fse-autonomous-workflowUse when converting Canva HTML/CSS exports to WordPress FSE block themes. Orchestrates autonomous workflow from CSS token extraction through template generation. Keywords: Canva to WordPress, FSE conversion, HTML export, CSS design tokens, autonomous template generation/create-blog-articleCreate an SEO-optimized blog article for a Claude Code component with AI-generated cover image/figma-to-fse-autonomous-workflowUse when converting Figma designs to WordPress FSE block themes. Orchestrates autonomous workflow from design token extraction through pixel-perfect template generation. Keywords: Figma to WordPress, FSE conversion, design tokens, autonomous template generation, pixel-perfect FSE/fse-block-theme-developmentUse when creating FSE block themes, working with theme.json, creating templates or template parts, or building block patterns. Keywords: FSE, Full Site Editing, block theme, theme.json, templates, patterns, WordPress theme development/fse-pattern-first-architectureEnforces pattern-first architecture for WordPress FSE themes - use PHP patterns for images, not inline HTML. Auto-triggered when creating FSE templates with images.Other plugins' skills for the same job