Wp Patterns
Pattern: create or update WordPress block patterns (starter pages, templates, template...
Install
npx skills add WordPress/agent-skills --skill wp-patterns -g -a claude-code -y- Repository
- WordPress/agent-skills2.3k
- Category
- Design
- Updated
- 10d ago
- License
- See repository
- Context cost
- Mediumabout 2,336 tokens
- Runs scripts
- No, instructions only
What it does
Pattern: create or update WordPress block patterns (starter pages, templates, template parts, Query Loop layouts), review pattern registration, block markup, categories, accessibility, or i18n/escaping, or improve pattern design quality. Route custom blocks to wp-block-development; route frontend interactivity to wp-interactivity-api.
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.jsonpresets 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
-
Block markup only, express all visual design through block comment attributes and
presetslugs. No inline<style>tags, no custom CSS classes, no arbitrary HTML outside of block wrappers. Readreferences/design-with-tokens.mdfor the core principle. -
No JavaScript, patterns are static
block markup. For interactivity, use blocks that natively support it (Navigation, Search, Query Loop). -
Registration-time PHP, pattern files execute PHP once during registration, not at render. Read
references/pattern-registration.mdfor safe output functions, i18n, and functions to avoid. -
Valid nesting, read
references/block-markup-reference.mdfor comment syntax and nesting rules. -
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.


