wp-patterns

wp-patterns is a skill for Claude Code, Codex from sutchan/Agent-Skills-Hub. It costs 84 tokens per session (2,195 once invoked), scanned A, original, MIT.

A workflow for creating and updating WordPress block patterns, which are reusable layouts made from the block editor's content blocks. It also reviews their registration, accessibility, translations, and safe use of theme design settings.

In plain words
What is it for?
Use it to create starter pages, sections, templates, template parts, and Query Loop layouts in a theme or plugin. It can also help review or improve an existing pattern.
Why use it?
It reduces errors in reusable WordPress layouts, such as invalid block markup, incorrect categories, inaccessible content, or designs that ignore the theme's available settings.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to create starter pages, sections, templates, template parts, and Query Loop layouts in a theme or plugin. It can also help review or improve an existing pattern.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sutchan/agent-skills-hub/wp-patterns
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sutchan/Agent-Skills-Hub --skill wp-patterns
Clone the repo
git clone --depth 1 https://github.com/sutchan/Agent-Skills-Hub

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wp-patterns

README.md
[![agentmods](https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/wp-patterns/github.svg)](https://agentmods.dev/skills/sutchan/agent-skills-hub/wp-patterns)
Your own site
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/wp-patterns"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/wp-patterns/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wp-patterns

Your own site · 80×15
<a href="https://agentmods.dev/skills/sutchan/agent-skills-hub/wp-patterns"><img src="https://agentmods.dev/badge/skills/sutchan/agent-skills-hub/wp-patterns.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 84 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,195 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00084 $0.02195
Opus 5.5 $0.00034 $0.00878
Sonnet 5.5 $0.00017 $0.00439
Haiku 4.5 $0.00008 $0.00219

Measured today against content hash b8f88fb30fd4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

wp-patterns scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/wp-patterns/SKILL.md · 167 lines

How it starts

The opening of the file, as written. The whole thing — 167 lines — stays where its author put it; the contents beside it link to each section on GitHub.

WordPress Block Patterns

Inputs required

  • Repo root and target theme/plugin directory.
  • Pattern type: section, starter page, template, template part, or manually registered plugin pattern.
  • Theme/plugin slug, pattern slug, and text domain.
  • Pattern title, categories, keywords, block types, template types, and inserter visibility.
  • Target WordPress version if it differs from this repo's compatibility contract.
  • Available theme.json presets for colors, typography, spacing, layout, and gradients.
  • Asset paths for images/icons, including whether assets are decorative or informational.
  • Verification environment: WordPress Playground, wp-env, local WordPress, or manual Code Editor check.
  • If updating an existing pattern: current slug, current file path, and whether existing inserted content must remain compatible.
  • For child themes: child theme slug, text domain, and asset root; do not reuse the parent namespace unless explicitly intended.

Guardrails

  1. Block markup only — express all visual design through block comment attributes and preset slugs. No inline <style> tags, no custom CSS classes, no arbitrary HTML outside of block wrappers. Read references/design-with-tokens.md for the core principle.

  2. No JavaScript — patterns are static block markup. For interactivity, use blocks that natively support it (Navigation, Search, Query Loop).

  3. Registration-time PHP — pattern files execute PHP once during registration, not at render. Read references/pattern-registration.md for safe output functions, i18n, and functions to avoid.

  4. Valid nesting — read references/block-markup-reference.md for comment syntax and nesting rules.

  5. Native blocks for behavior — use Query Loop, Search, Navigation, Social Icons, or an existing form block instead of custom PHP/HTML behavior. For newsletter, donation, payment, or map behavior, create a CTA/placeholder or use an existing block/plugin.

  6. Local assets — use get_theme_file_uri() with esc_url(); no external placeholder URLs unless the user approves. Read references/pattern-registration.md and references/anti-patterns.md for examples.

Read the full file on GitHub · 167 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed b8f88fb30fd4
  2. 11d ago Changed · +1 lines e49cf6b09c29
  3. 17d ago First seen · 166 lines · 84 tokens per session scan A 15f39ab053b2

Subscribe to this mod's changes

wp-patterns is a skill published in the GitHub repository sutchan/Agent-Skills-Hub (2 stars, last pushed yesterday), licensed MIT. It adds 84 tokens to every session and 2,195 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other skills, from other repositories

design-system-architect

Expert guide for designing, building, and maintaining scalable UI design systems with design tokens, headless primitives, Material Design 3 (M3), Tailwind v4 @theme, and WCAG 2.2 accessibility.

roedyrustam/vibes-plug · 50 tokens

website-design-cloner

Analyzes and reverse-engineers website designs directly from a target URL, extracting layout structures, design tokens (colors, typography, spacing), component hierarchies, visual assets, and responsive behaviors to enable full 1:1 duplication into modern code (Tailwind CSS v4, React/Next.js, HTML/CSS). / Mempelajari…

roedyrustam/vibes-plug · 129 tokens

screenshot-to-code-expert

Expert guide for converting UI screenshots, mockups, Figma frames, and whiteboard sketches into production-ready frontend code using vision-capable frontier models (Gemini 4 Pro, Claude 5.5, GPT Astra 6) — multi-pass visual extraction, component decomposition, responsive generation, and design token mapping / Panduan…

roedyrustam/vibes-plug · 129 tokens

svg-animation-motion-expert

Expert guide for web animations: SVG manipulation, Framer Motion 12+, GSAP 3, CSS Scroll-Driven Animations, and View Transitions API / Panduan ahli animasi web.

roedyrustam/vibes-plug · 46 tokens

multimodal-spatial-video-cloner

Expert guide for reverse-engineering UI/UX interactions from screen-recordings and spatial video, extracting animation spring curves, and generating pixel-perfect Tailwind CSS v4 and Framer Motion code / Panduan ahli rekayasa balik interaksi UI/UX dari rekaman layar dan video spasial, ekstraksi kurva pegas animasi…

roedyrustam/vibes-plug · 94 tokens

visual-ui-auditor

Expert guide for multimodal vision UI auditing (Gemini 4 Pro / Flash Vision, Claude 3.7 / 5.1 Sonnet, GPT-5 Vision) against Anti-Slop Pillar 7, 1px crisp borders, 3-tier radius scales, tabular numerals, and WCAG 2.2 AA / Panduan ahli audit visual UI berbasis vision multimodal.

roedyrustam/vibes-plug · 89 tokens