Wordpress Pro
Develops custom WordPress themes and plugins, builds Gutenberg blocks and patterns, configures WooCommerce, implements REST API endpoints.
Before & after
Same prompt, same agent — the only difference is the skill.
You can build a product filter in WooCommerce pretty easily. There are some plugins that do it already, but if you want custom code, you'd write a shortcode or block that queries products. You'd probably use the REST API to get the filters dynamically. You might need to handle the user interaction somehow, maybe with JavaScript. Do you want it to use AJAX to update the products without reloading? And should it be a sidebar widget or inline on the page? Let me know more details about your setup.
CUSTOM FILTER WIDGET: ProductFilter.php
REGISTERATION (gutenberg block)
register_block_type('custom/product-filter', array(
'render_callback' => 'render_product_filter',
'attributes' => array(
'taxonomy' => 'pa_color',
'maxResults' => 500
)
));
FILTER LOGIC
• Query: WC_Product_Query with tax_query for pa_color and pa_size
• Sanitize inputs: sanitize_text_field() on $_GET['color'], validate against registered attributes
• Escape output: wp_kses_allowed_html() on frontend, never trust user input
REST API ENDPOINT (AJAX alternative)
GET /wp-json/custom/v1/products?color=red&size=large
• Nonce verification on every call
• Rate limit: 30 requests/minute per IP (prevent scraping)
• Cache: 1 hour Redis TTL for popular filter combinations
SECURITY HARDENING
• No SELECT * queries; fetch only ID, name, price, image URL
• Prepared statements for all database queries
• Check user capabilities before exposing private product data
• Escape all echoed values wp_kses_post() for attribute output
PERFORMANCE TUNING
• Index: wp_postmeta(meta_key='pa_color') for fast lookups
• Lazy load color swatches (first 12 options, paginate via AJAX)
• Compress SVG color swatches to data URIs (no extra HTTP requests)
CROSS-SELL INTEGRATION
• If user filters to 1 product: show "similar items in red size M" upsell below
About this skill
name: wordpress-pro description: Use when Develops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress REST API endpoints, applies security har...
Wordpress Pro
Develops custom WordPress themes and plugins, creates and registers Gutenberg blocks and block patterns, configures WooCommerce stores, implements WordPress REST API endpoints, applies security hardening (nonces, sanitization, escaping, capability checks), and optimizes performance through caching and query tuning. Use when building WordPress themes, writing plugins, customizing Gutenberg blocks, extending WooCommerce, working with ACF, using the WordPress REST API, applying hooks and filters, or improving WordPress performance and security.
What you get
- Public GitHub repo
- the skills/wordpress-pro folder with SKILL.md and references.
Customize your output
- Fork the repo and extend the skill's reference files for your own stack conventions.
Example output
Activates on a matching request (e.g. building or reviewing Wordpress Pro code) and can chain with other skills in the pack.
Best for
Full-stack developers and engineering teams using Claude Code.
SKILL.md preview
---
name: wordpress-pro
description: Use this skill when building WordPress themes or plugins, working with Gutenberg blocks, configuring WooCommerce, or hardening and optimizing a WordPress site.
version: 1.0.0
category: Development / Languages
author: AgentVolt
license: proprietary
tags:
- development
- languages
---
# Wordpress Pro
Develops custom WordPress themes and plugins, builds Gutenberg blocks and patterns, configures WooCommerce, implements REST API endpoints, and applies security hardening and performance tuning.
## When to use
… (sign up to view the full skill)More development skills
View all Development skills →SQL Pro
Optimizes SQL queries, designs database schemas, and troubleshoots performance issues.
Csharp Developer
Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps.
Rust Engineer
Writes, reviews, and debugs idiomatic Rust code with memory safety and zero-cost abstractions.
PHP Pro
Use when building PHP applications with modern PHP 8.3+ features, Laravel, or Symfony frameworks.