Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

wp-patterns

Skill by WordPress

Creates, updates and reviews WordPress block patterns, including starter pages, templates, template parts and Query Loop layouts. Built for WordPress theme and plugin developers.

  • Score 86
  • 2.4k stars
  • NOASSERTION
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install wp-patterns

Built from the published package, never by AI.

git clone --depth 1 https://github.com/WordPress/agent-skills /tmp/agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/agent-skills/skills/wp-patterns ~/.claude/skills/wp-patterns

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install wp-patterns in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

wp-patterns is an agent skill for creating, updating and reviewing WordPress block patterns. It covers starter pages, template patterns, template parts, Query Loop layouts, pattern registration, block markup, categories, accessibility, i18n and escaping. It also helps improve pattern design quality. Custom blocks are routed to wp-block-development, and frontend interactivity is routed to wp-interactivity-api.

The skill works in steps: it triages the project, makes design decisions, plans the block nesting tree, writes the PHP header and block markup, then checks design and technical validation. Patterns use block markup only, with preset slugs instead of inline styles, and local assets loaded through get_theme_file_uri(). It targets WordPress 7.0+ and PHP 7.4.0+, and verification uses WordPress Playground or a manual Code Editor check.

Written from the project's SKILL.md and checked against it.

What it can do

  • Pattern creationCreates block patterns for section, starter page, template and template part types.
  • Query Loop layoutsBuilds pattern layouts using Query Loop blocks, with guidance on fallbacks and pagination.
  • Registration reviewChecks PHP header fields, slugs, categories and template types for pattern registration.
  • Design quality checkReviews a pattern against a design quality checklist before validation.
  • Accessibility and i18nReviews heading levels, alt text, labels, translation and escaping in pattern markup.
  • Manual plugin registrationCovers registering patterns from plugin code on the init hook, with categories registered first.

What you need

  • WordPress 7.0 or later (target version)
  • PHP 7.4.0 or later
  • Node.js for the bash and node filesystem agent
  • WP-CLI for some workflows

Try asking

  • Create a hero section pattern for my block theme's patterns folder
  • Review my pattern file's header, slug and categories for registration issues
  • Build a Query Loop layout pattern that lists recent blog posts

Good to know

  • Pattern files run PHP once at registration, not at render time.
  • Changing a pattern file does not update content already inserted into posts or templates.
  • Theme-specific preset slugs must be verified against theme.json, or conservative core presets are used.
  • Some workflows require WP-CLI.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/wp-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/anti-patterns.md6 KB
  • references/block-markup-reference.md7 KB
  • references/design-with-tokens.md8 KB
  • references/example-prompts.md1 KB
Show all 8 files
  • references/pattern-categories-and-types.md5 KB
  • references/pattern-registration.md5 KB
  • references/visual-composition.md2 KB

Alternatives to wp-patterns

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

wp-patterns: common questions

Does wp-patterns support Query Loop patterns?

Yes. The skill includes a Query Loop patterns section and troubleshooting for core/post-template, pagination and core/query-no-results fallbacks.

Can wp-patterns add JavaScript or custom blocks to a pattern?

No. Patterns are static block markup with no JavaScript. Custom blocks are routed to the wp-block-development skill.

Will editing a pattern update pages that already use it?

No. Inserted pattern content is copied into posts and templates, so changes to the pattern file do not update that content.

How do I install wp-patterns?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is wp-patterns free?

The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.

Is wp-patterns safe to use?

It scores 86 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to wp-patterns?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

wp-patterns Install

Add to stack

Loading.