wordpress avatar

Wp Block Themes

Handles the full filesystem layer of WordPress block theme development: theme.json editing for global settings and styles, template and template part HTML, pattern registration, and style variations. It triages your project to locate theme roots, then guides you through the correct folders and schema depending on your WordPress version target. The skill is opinionated about the style hierarchy (core defaults, theme.json, child theme, user customizations) and explicitly calls out the most common footgun: user customizations in the database silently overriding your theme.json changes. If you're debugging "why aren't my styles applying" or need to add a template part without breaking the Site Editor, this walks you through the filesystem structure and WordPress 6.9+ expectations.

skills.sh installs
6.3K
GitHub stars
2.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/wordpress/agent-skills
Categories
Code Review & Quality, AI & Agent Building, Debugging, PHP & Laravel

More from wordpress/agent-skills

All 17
1affaan-m avatardjango-patternsaffaan-m/eccDjango architecture patterns, REST API design with DRF, ORM best practices, caching, signals, middleware, and production-grade Django apps.6.2Kskills.sh installs
2jeffallan avatarnestjs-expertjeffallan/claude-skillsCreates and configures NestJS modules, controllers, services, DTOs, guards, and interceptors for enterprise-grade TypeScript backend applications. Use when buil6.2Kskills.sh installs
3jimliu avatarbaoyu-image-cardsjimliu/baoyu-skillsGenerates infographic image card series with 12 visual styles, 8 layouts, and 3 color palettes. Breaks content into 1-10 cartoon-style image cards optimized for6.2Kskills.sh installs
4affaan-m avatarjava-coding-standardsaffaan-m/eccJava coding standards for Spring Boot and Quarkus services: naming, immutability, Optional usage, streams, exceptions, generics, CDI, reactive patterns, and pro6.2Kskills.sh installs
5affaan-m avatarspringboot-patternsaffaan-m/eccSpring Boot architecture patterns, REST API design, layered services, data access, caching, async processing, and logging. Use for Java Spring Boot backend work6.1Kskills.sh installs
6vinvcn avatartddvinvcn/mattpocock-skills-zh-cn测试驱动开发。适用于用户想用先写测试的方式构建功能或修复缺陷、提到 “red-green-refactor”,或需要集成测试时。6.1Kskills.sh installs