--- name: wp-patterns description: "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." compatibility: "Targets WordPress 7.0+ (PHP 7.4.0+). Filesystem-based agent with bash + node. Some workflows require WP-CLI." --- # 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 `