Skip to main content
skill CX Codex

wp-patterns — Claude Code skill: what it does, how to install

Creates and updates WordPress block patterns, then checks registration and markup. Useful for templates, starter pages, and Query Loop layouts.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add WordPress/agent-skills --skill wp-patterns -a claude-code
Open on GitHub

What wp-patterns does

This skill helps create and update WordPress block patterns for sections, starter pages, templates, template parts, and Query Loop layouts. It can review pattern registration, categories, inserter visibility, accessibility, i18n, and escaping. For behavior, it points to native blocks instead of adding JavaScript or arbitrary HTML.

The workflow locates the project and theme, plans the block tree, builds a PHP file with block markup, and runs design and technical checks. Local images use get_theme_file_uri() with esc_url(), while visual choices are expressed through block attributes and preset values. Verification can run in WordPress Playground, wp-env, or the WordPress Code Editor.

The practical catch is that the agent environment needs bash and node, while some workflows also use WP-CLI. The skill targets WordPress 7.0+ and PHP 7.4.0+. A project also needs its theme or plugin root, slug, text domain, and available theme.json presets before pattern work begins.

What it helps with

  • create a block pattern for a starter page
  • update a template or template part
  • review pattern registration and block nesting
  • set categories, accessibility, and i18n
  • validate a Query Loop layout

Example prompts for the agent

  • Create a starter-page pattern for the theme in this repository and first run node skills/wp-project-triage/scripts/detect_wp_project.mjs.
  • Update the existing wp-patterns Query Loop pattern, keep already inserted content compatible, and review its block markup.
  • Test the new pattern in WordPress Playground with npx @wp-playground/cli@latest server --auto-mount and fix block validation errors.

How to install wp-patterns

1Skills CLI (Vercel)

npx skills add WordPress/agent-skills --skill wp-patterns -a claude-code

2Manually: put the files in place

~/.claude/skills/wp-patterns/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/wp-patterns/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about wp-patterns

How do I install wp-patterns in Claude Code?

Run npx skills add WordPress/agent-skills --skill wp-patterns -a claude-code, then run npx skills add WordPress/agent-skills --skill wp-patterns -a claude-code again. Check ~/.claude/skills/wp-patterns/SKILL.md afterward.

What does wp-patterns do?

It creates and updates WordPress block patterns, including templates, template parts, starter pages, and Query Loop layouts. It also reviews registration, block markup, categories, accessibility, and i18n/escaping.

What does wp-patterns need before it can work?

Prepare the repository root, target theme or plugin, slugs, text domain, pattern type, and a way to verify the result. The agent setup uses bash and node, and some workflows require WP-CLI.

Similar skills

Everything for Design →

From the same set19

wp-abilities-api A skill for WordPress Abilities API work: registering abilities and categories in PHP, exposing them over REST, reading them in JS. Useful when a client can't see an ability. CX Codex +1 4,300installs wp-interactivity-api Guides AI agents through WordPress Interactivity API implementation and debugging. Helps configure directives, connect script modules, and eliminate hydration mismatches. CX Codex +1 4,200installs wpds Feeds WordPress Design System docs to your agent through an MCP server, so UI work lands on real components and tokens instead of guesses. CX Codex +1 4,000installs blueprint Create and inspect JSON Blueprints for WordPress Playground with this skill. Use it to configure an environment as a Blueprint file, rather than just launch or share one. CX Codex +1 3,700installs wp-plugin-directory-guidelines Audits WordPress plugins against 18 WordPress.org Directory guidelines, verifying GPL license compatibility and freemium rules before submission. CX Codex +1 3,600installs wp-abilities-audit This skill reviews a WordPress plugin’s REST surface and writes a planning document for proposed Abilities API registrations. CX Codex +1 2,700installs wp-abilities-verify Verifies WordPress plugin Abilities API registrations, flags hidden database writes in readonly callbacks, and validates schemas. CX Codex +1 2,600installs wp-env Configures and manages Docker-based WordPress environments using @wordpress/env. Useful when you need a real MySQL database, WP-CLI, or PHPUnit testing. CX Codex +1 679installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor