block-pattern-creation

Create and register WordPress block patterns via PHP or block.json.

16|5|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/PMDevSolutions/Flavian --skill block-pattern-creation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: block-pattern-creation
Source: https://github.com/PMDevSolutions/Flavian/tree/main/.claude/skills/block-pattern-creation
Command: npx skills add https://github.com/PMDevSolutions/Flavian --skill block-pattern-creation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Patterns enable developers to ship reusable, discoverable WordPress block layouts for themes and plugins, reducing duplication and ensuring design consistency.

Core Features & Use Cases

  • Create and register block patterns for themes or plugins using PHP (register_block_pattern) or block.json.
  • Organize patterns into categories and expose them in the Block Inserter for easy discovery.
  • Support InnerBlocks-based flexibility and pattern transformations to adapt patterns to different layouts.

Quick Start

Create a new pattern by adding a PHP file under patterns/ with a proper header and content payload

Frequently Asked Questions about block-pattern-creation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I register WordPress block patterns using PHP and block.json?

To register WordPress block patterns, use the register_block_pattern() PHP function or define metadata and content in a block.json file. This enforces standardized fields like title, slug, categories, and keywords for frontend-ready patterns.

What are InnerBlocks-based block patterns and when do I need them?

InnerBlocks-based block patterns are reusable WordPress layouts that support nested content flexibility and pattern transformations. You need them to ship discoverable, adaptable block structures for themes or plugins while reducing layout duplication.

Can I organize block patterns into categories for the WordPress Block Inserter?

Yes, you can categorize block patterns during registration to expose them in the WordPress Block Inserter. By assigning categories and keywords in the pattern metadata, users can easily discover and insert your custom layouts.

What's the best way to create reusable block layouts for a WordPress theme?

The best way to create reusable block layouts is registering block patterns via a PHP file under the patterns/ directory with a proper header, or using block.json. This ensures design consistency and reduces duplication across themes.

Does block pattern registration require specific metadata fields?

Block pattern registration enforces standardized metadata fields including title, slug, categories, and keywords. These fields are required to properly register the pattern and ensure it is discoverable within the WordPress Block Inserter.