.claude/skills/wp-block-themes/SKILL.md
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).
npx skillsauth add javiercasares/wpvulnerability wp-block-themesInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill for block theme work such as:
theme.json (presets, settings, styles, per-block styles)templates/*.html) and template parts (parts/*.html)patterns/*.php) and controlling what appears in the inserterstyles/*.json)node skills/wp-project-triage/scripts/detect_wp_project.mjsnode skills/wp-block-themes/scripts/detect_block_themes.mjsIf multiple themes exist, pick one and scope all changes to that theme root.
If you are creating a new block theme from scratch (or converting a classic theme):
theme.json schema versions differ.Read:
references/creating-new-block-theme.mdAfter creating the theme root, re-run detect_block_themes and continue below.
theme.json presenttemplates/ and/or parts/ presentRead:
references/debugging.md (style hierarchy + fastest checks)theme.json changes safelyDecide whether you are changing:
Read:
references/theme-json.mdtemplates/ and are HTML.parts/ and must not be nested in subdirectories.Read:
references/templates-and-parts.mdPrefer filesystem patterns under patterns/ when you want theme-owned patterns.
Read:
references/patterns.mdStyle 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.mdStart with:
references/debugging.mdCommon issues:
theme.json shape/typos prevent applicationIf upstream behavior is unclear, consult canonical docs:
theme.json, templates, patterns, and style variations.tools
Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export/import, plugin/theme/user/content management, cron, cache flushing, multisite, and scripting/automation with wp-cli.yml.
tools
Use when you need a deterministic inspection of a WordPress repository (plugin/theme/block theme/WP core/Gutenberg/full site) including tooling/tests/version hints, and a structured JSON report to guide workflows and guardrails.
tools
Use when developing WordPress plugins: architecture and hooks, activation/deactivation/uninstall, admin UI and Settings API, data storage, cron/tasks, security (nonces/capabilities/sanitization/escaping), and release packaging.
tools
Use for WordPress Playground workflows: fast disposable WP instances in the browser or locally via @wp-playground/cli (server, run-blueprint, build-snapshot), auto-mounting plugins/themes, switching WP/PHP versions, blueprints, and debugging (Xdebug).