wordpress-fse-generator_skill

This skill generates WordPress Full Site Editing blocks and theme files, guiding block.json, theme.json, and PHP registrations for seamless FSE development.

2

GitHub Stars

1

Bundled Files

2 months ago

Catalog Refreshed

4 months ago

First Indexed

Readme & install

Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.

Installation

Preview and clipboard use veilstrat where the catalogue uses aiagentskills.

npx veilstrat add skill wesleysmits/agent-skills --skill wordpress-fse-generator

  • SKILL.md3.8 KB

Overview

This skill generates production-ready WordPress Full Site Editing (FSE) blocks and theme files. It scaffolds block.json, React edit/save components, PHP registration, and theme.json configuration so you can build, test, and ship Gutenberg blocks and FSE themes quickly.

How this skill works

Provide the block or theme requirements and the skill outputs a complete file structure: block.json, edit/save (JSX/TSX), styles, registration code, and optional render.php for dynamic blocks. It also offers theme.json snippets, functions.php hooks, and validation checks to ensure the block appears and builds correctly.

When to use it

  • When a user asks to create or scaffold a Gutenberg block
  • When building or updating a Full Site Editing theme or theme.json
  • When you need block.json attributes, supports, or asset references
  • When implementing dynamic server-rendered blocks with PHP
  • When creating block templates, patterns, or template parts

Best practices

  • Choose block type (static, dynamic, interactive, inner blocks) before scaffolding
  • Define clear attributes and defaults in block.json and match save output to stored content
  • Use InspectorControls in the edit component for editable settings
  • Register and enqueue assets via functions.php and name blocks with a unique namespace
  • Run build and lint scripts (npm run build, lint:js, lint:css) and validate block.json schema

Example use cases

  • Scaffold a simple static text block with attributes and editor styles
  • Create an interactive block with client-side behavior and bundled JS
  • Build a dynamic testimonials block with render.php for server-side content
  • Add a new block category and register multiple blocks in functions.php
  • Generate theme.json entries for palette, typography, spacing, and block styles

FAQ

Static, dynamic (server-rendered), interactive (client JS), and inner blocks with nested content.

How do I ensure a block appears in the inserter?

Confirm block.json name matches registration, category exists, and build assets are enqueued.

How do I validate block.json?

Use the official block.json schema and run your build/lint pipelines to catch schema issues.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational