New advertisers: 50% off your first month with code FIRSTMONTHSee slots
wordpress avatar

Wp Block Themes

Filesystem-based workflow for building WordPress block themes with theme.json, templates, patterns, and style variations.

skills.sh installs
6.5K
GitHub stars
2.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers theme.json settings and styles, templates and template parts, patterns, style variations, and Site Editor troubleshooting
  • Includes detection scripts (detect_wp_project.mjs, detect_block_themes.mjs) and reference guides for each authoring area
  • Explains the style hierarchy so that theme.json edits overridden by user customizations are diagnosed quickly
  • Designed for developers targeting WordPress 7.0+ who need to build or debug block themes

Install

$ npx -y skills add wordpress/agent-skills --skill wp-block-themes -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WP Block Themes

When to use

Use this skill for block theme work such as:

  • editing theme.json (presets, settings, styles, per-block styles)
  • adding or changing templates (templates/*.html) and template parts (parts/*.html)
  • adding patterns (patterns/*.php) and controlling what appears in the inserter
  • adding style variations (styles/*.json)
  • debugging “styles not applying” / “editor doesn’t reflect theme.json”

Inputs required

  • Repo root and which theme is targeted (theme directory if multiple exist).
  • Target WordPress version range (theme.json version and features vary by core version).
  • Where the issue manifests: Site Editor, post editor, frontend, or all.

Procedure

0) Triage and locate block theme roots

  1. Run triage:
    • node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. Detect theme roots + key folders:
    • node skills/wp-block-themes/scripts/detect_block_themes.mjs

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):

Details

Repository
github.com/wordpress/agent-skills
Categories
PHP & Laravel, Frontend & UI Code

More from wordpress/agent-skills

All 17

Similar to Wp Block Themes

More PHP & Laravel