Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
wordpress avatar

Wp Block Themes

  • 3.4k installs
  • 1.9k repo stars
  • Updated July 27, 2026
  • wordpress/agent-skills

wp-block-themes is a WordPress skill that guides block theme.json, templates, patterns, and style variation work so developers can fix Site Editor and frontend style mismatches.

About

wp-block-themes is a WordPress agent skill for block theme work on WordPress 6.9+ with PHP 7.2.24+, bash, node, and optional WP-CLI. Procedure zero triages the repo with detect_wp_project.mjs then detect_block_themes.mjs to scope edits to one theme root when multiple themes exist. It covers theme.json settings versus styles, templates under templates/*.html, template parts in parts/*.html without nested subfolders, patterns under patterns/*.php, and style variations in styles/*.json. Creating new themes defers to references/creating-new-block-theme.md with explicit minimum WordPress version notes because theme.json schema versions differ by core release. Debugging references explain style hierarchy from core defaults through theme.json, child themes, and user customizations that can make theme edits appear ignored. Verification checks Site Editor, post editor, and frontend rendering plus whether user overrides mask theme defaults. Failure modes include wrong inactive theme root, invalid theme.json shape, and nested template parts paths. Developers reach for wp-block-themes when FSE presets, patterns, or editor versus live styles diverge.

  • Triage with detect_wp_project.mjs and detect_block_themes.mjs before scoped edits.
  • Covers theme.json settings/styles, templates, parts, patterns, and style variations.
  • Documents style hierarchy and user customization overrides causing ignored edits.
  • Targets WordPress 6.9+ with filesystem agent using bash and node; some flows need WP-CLI.
  • References dedicated markdown files per topic including debugging and theme-json.

Wp Block Themes by the numbers

  • 3,413 all-time installs (skills.sh)
  • +202 installs in the week ending Jul 28, 2026 (Skillselion tracking)
  • Ranked #142 of 2,277 Frontend Development skills by installs in the Skillselion catalog
  • Security screen: MEDIUM risk (skills.sh audit)
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

wp-block-themes capabilities & compatibility

Capabilities
detect wordpress project and block theme roots · edit theme.json settings and styles safely · manage templates, parts, patterns, and style var · debug style hierarchy and user override issues
From the docs

What wp-block-themes says it does

node skills/wp-project-triage/scripts/detect_wp_project.mjs
SKILL.md
npx skills add https://github.com/wordpress/agent-skills --skill wp-block-themes

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs3.4k
repo stars1.9k
Security audit2 / 3 scanners passed
Last updatedJuly 27, 2026
Repositorywordpress/agent-skills

Why are my WordPress block theme.json or template changes not showing in the Site Editor or on the live site?

Develop and debug WordPress block themes including theme.json, templates, patterns, and Site Editor style issues.

Who is it for?

Developers maintaining WordPress 6.9+ block themes who edit theme.json, templates, parts, patterns, or style variations.

Skip if: Skip for classic PHP themes without block theme.json, templates, or Site Editor workflows.

When should I use this skill?

User edits theme.json, block templates, patterns, style variations, or reports Site Editor style hierarchy problems.

What you get

Scoped theme edits with triaged theme root, valid theme.json and template files, and verified editor and frontend rendering.

  • Updated theme.json
  • Templates, parts, or patterns
  • Debugging notes for style hierarchy

By the numbers

  • Targets WordPress 6.9+ with PHP 7.2.24+ compatibility
  • Covers theme.json, templates/*.html, parts/*.html, and patterns/*.php

Files

SKILL.mdMarkdownGitHub ↗

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

  • Prefer starting from a known-good scaffold (or exporting from a WP environment) rather than guessing file layout.
  • Be explicit about the minimum supported WordPress version because theme.json schema versions differ.

Read:

  • references/creating-new-block-theme.md

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

2) Confirm theme type and override expectations

  • Block theme indicators:
  • theme.json present
  • templates/ and/or parts/ present
  • Remember the style hierarchy:
  • core defaults → theme.json → child theme → user customizations
  • user customizations can make theme.json edits appear “ignored”

Read:

  • references/debugging.md (style hierarchy + fastest checks)

3) Make theme.json changes safely

Decide whether you are changing:

  • settings (what the UI allows): presets, typography scale, colors, layout, spacing
  • styles (how it looks by default): CSS-like rules for elements/blocks

Read:

  • references/theme-json.md

4) Templates and template parts

  • Templates live under templates/ and are HTML.
  • Template parts live under parts/ and must not be nested in subdirectories.

Read:

  • references/templates-and-parts.md

5) Patterns

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

Read:

  • references/patterns.md

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:

  • references/style-variations.md

Verification

  • Site Editor reflects changes where expected (Styles UI, templates, patterns).
  • Frontend renders with expected styles.
  • If styles aren’t changing, confirm whether user customizations override theme defaults.
  • Run the repo’s build/lint scripts if assets are involved (fonts, custom JS/CSS build).

Failure modes / debugging

Start with:

  • references/debugging.md

Common issues:

  • wrong theme root (editing an inactive theme)
  • user customizations override your defaults
  • invalid theme.json shape/typos prevent application
  • templates/parts in wrong folders (or nested parts)

Escalation

If upstream behavior is unclear, consult canonical docs:

  • Theme Handbook and Block Editor Handbook for theme.json, templates, patterns, and style variations.

Related skills

How it compares

Choose wp-block-themes over generic CSS skills when debugging FSE theme.json hierarchy and Site Editor overrides.

FAQ

How does wp-block-themes pick the correct theme directory?

Run detect_wp_project.mjs then detect_block_themes.mjs and scope all changes to one detected theme root.

Why might theme.json edits look ignored?

User customizations in the style hierarchy can override theme defaults even after file changes.

What WordPress version does the skill target?

WordPress 6.9 or newer with PHP 7.2.24+, using bash and node; some workflows require WP-CLI.

Is Wp Block Themes safe to install?

skills.sh reports 2 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.