10up-block-patterns

Create and manage reusable WordPress block patterns with PHP registration and YAML metadata.

87|32|Updated Jul 3, 2015
One-click install
npx skills add https://github.com/petenelson/wp-rest-api-log --skill 10up-block-patterns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 10up-block-patterns
Source: https://github.com/petenelson/wp-rest-api-log/tree/main/.claude/skills/10up-block-patterns
Command: npx skills add https://github.com/petenelson/wp-rest-api-log --skill 10up-block-patterns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Create and maintain standardized, reusable WordPress block patterns and synced patterns to ensure consistency across themes and sites.

Core Features & Use Cases

  • PHP file-based pattern registration for modular and maintainable templates
  • Pattern metadata management, including categories, keywords, and bindings
  • Support for synced patterns to propagate updates globally
  • Use cases include building layout components, content templates, and starter patterns for new sites

Quick Start

Place PHP pattern files under patterns/, ensure each has a proper header with Title/Slug/Description, and verify the patterns appear in the inserter.

Frequently Asked Questions about 10up-block-patterns

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

FAQPage Schema
How do I create reusable WordPress block patterns using PHP?

To create reusable WordPress block patterns, place PHP pattern files under a patterns/ directory and include a header with Title, Slug, and Description metadata for proper registration in the block inserter.

What are synced WordPress block patterns and when do I need them?

Synced WordPress block patterns are templates that propagate content updates globally across all instances. You need them to ensure standardized layout consistency across themes and sites without manual re-editing.

Can I use YAML frontmatter for WordPress pattern registration metadata?

Yes, you can use YAML frontmatter to define the name and description metadata for WordPress block patterns. This pairs with PHP-based registration to manage categories, keywords, and dynamic content bindings.

What's the best way to manage pattern categories and bindings for dynamic content?

The best way to manage pattern categories and bindings is through file-based PHP pattern registration, allowing modular and maintainable templates that support standardized metadata for dynamic content integration.

Do I need to manage assets and scripts separately when building block patterns?

You do not need to load assets and scripts upfront; the block patterns system supports optional resources like scripts and references for on-demand access during your theme or plugin development workflow.