Wp block themes

From wpgaurav/WordPress-skills · View interactive version

Wp block themes is an AI agent skill from the GitHub repository wpgaurav/WordPress-skills. Use when developing WordPress block themes: theme.json (global settings/styles), templates and template parts, patterns, style variations, and Site Editor troubleshooting (style hierarchy, overrides, caching).

How to use this skill

Skill file

From Agent Skills for WordPress. Copyright (C) 2026 WordPress Contributors, licensed under GPL-2.0-or-later. Changed from upstream: the compatibility: frontmatter line was dropped when this copy was made in March 2026, and license frontmatter plus this notice were added on 2026-10-24. See NOTICE.md.

WP Block Themes

When to use

Use this skill for block theme work such as:

Inputs required

Procedure

0) Triage and locate block theme roots

  1. Run triage:
  1. Detect theme roots + key folders:

If multiple themes exist, pick one and scope all changes to that theme root.

1) Create a new block theme (if needed)

If you are creating a new block theme from scratch (or converting a classic theme):

Read:

After creating the theme root, re-run detect_block_themes and continue below.

2) Confirm theme type and override expectations

Read:

3) Make `theme.json` changes safely

Decide whether you are changing:

Read:

4) Templates and template parts

Read:

5) Patterns

Prefer filesystem patterns under patterns/ when you want theme-owned patterns.

Read:

6) Style variations

Style variations are JSON files under styles/. Note: once a user picks a style variation, that selection is stored in the DB, so changing the file may not “update what the user sees” automatically.

Read:

Verification

Failure modes / debugging

Start with:

Common issues:

Escalation

If upstream behavior is unclear, consult canonical docs:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.