
Wp Block Themes
This handles WordPress block theme development: editing theme.json for global settings and styles, managing templates and template parts, adding patterns and style variations, and debugging when the Site Editor doesn't reflect your changes. It's built for filesystem-based workflows on WordPress 6.9+ and includes triage scripts to detect theme roots and validate structure. The debugging guidance around style hierarchy is especially useful because user customizations silently override theme defaults, which trips up everyone at least once. If you're touching anything in a block theme beyond plugin logic, this covers the surface area.
- skills.sh installs
- 509
- GitHub stars
- 211
- last updated
- Jun 3, 2026
Install
$ npx -y skills add automattic/agent-skills --skill wp-block-themes --agent claude-codeInstalls 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
- Run triage:
node skills/wp-project-triage/scripts/detect_wp_project.mjs
- 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/automattic/agent-skills
- Category
- AI & Agent Building
- First seen
- Jun 3, 2026