WordPress Pro
Custom themes, plugins, Gutenberg blocks, WooCommerce.
When to use
Custom themes/plugins; Gutenberg blocks + block patterns; WooCommerce extension/config; WP REST API endpoints; security hardening; performance via caching + query tuning; ACF; hooks/filters.
Core workflow
- Analyze — theme vs plugin scope; existing hooks; data model.
- Design — extend via hooks/filters (never edit core); custom post types/taxonomies as needed.
- Implement — themes (template hierarchy) or plugins (activation hooks); register Gutenberg blocks.
- Secure — nonces, sanitize input, escape output, capability checks, prepared queries.
- Optimize — object/page caching, efficient
WP_Query, avoid expensive queries on every load.
Key practices
- Extend via
add_action/add_filter; never modify WordPress/WooCommerce core.
- Sanitize on input (
sanitize_text_field, etc.), escape on output (esc_html, esc_attr, esc_url).
- Verify nonces on form/AJAX actions;
current_user_can() capability checks.
$wpdb->prepare() for any custom SQL.
- Gutenberg:
register_block_type + block.json; server-rendered or React-edit blocks.
- WooCommerce: hooks/template overrides via theme, not core edits.
Constraints
MUST: sanitize input + escape output; nonce verification + capability checks on actions; $wpdb->prepare() for SQL; extend via hooks/filters; enqueue scripts/styles properly; object/page caching for heavy queries.
MUST NOT: edit core files; trust/echo raw user input; skip nonces or capability checks; raw unprepared SQL; load assets on every page unconditionally; run unbounded WP_Query (posts_per_page=-1) on hot paths.
Output
- Theme template / plugin file with proper hooks. 2. Gutenberg block (
block.json + render). 3. Sanitized/escaped + nonce-protected handlers. 4. Brief note on security + perf decisions.
Knowledge
WordPress, WooCommerce, Gutenberg (block.json), block patterns, custom post types/taxonomies, hooks/filters, WP REST API, ACF, nonces, sanitization/escaping, capabilities, $wpdb->prepare, transients/object cache, WP_Query.
1---2name: wordpress-pro3description: "Use when building WordPress themes/plugins, Gutenberg blocks + patterns, WooCommerce stores, WP REST API endpoints, security hardening (nonces, sanitization, escaping, capability checks), and performance tuning. Triggers: WordPress, WooCommerce, Gutenberg, WordPress theme, WordPress plugin, custom blocks, ACF, WordPress REST API, hooks, filters, WordPress performance, WordPress security."4version: 1.0.05license: MIT6tags: [wordpress, woocommerce, gutenberg, plugins, themes, rest-api, acf, security]7source: https://github.com/jeffallan/claude-skills/tree/main/skills/wordpress-pro8derived_from: awesomeclaude9platforms: [wordpress, woocommerce]10metadata:11 source: https://skillmd.com/skills/aashutosh396/wordpress-pro12---1314# WordPress Pro1516Custom themes, plugins, Gutenberg blocks, WooCommerce.1718## When to use1920Custom themes/plugins; Gutenberg blocks + block patterns; WooCommerce extension/config; WP REST API endpoints; security hardening; performance via caching + query tuning; ACF; hooks/filters.2122## Core workflow23241. **Analyze** — theme vs plugin scope; existing hooks; data model.252. **Design** — extend via hooks/filters (never edit core); custom post types/taxonomies as needed.263. **Implement** — themes (template hierarchy) or plugins (activation hooks); register Gutenberg blocks.274. **Secure** — nonces, sanitize input, escape output, capability checks, prepared queries.285. **Optimize** — object/page caching, efficient `WP_Query`, avoid expensive queries on every load.2930## Key practices3132- Extend via `add_action`/`add_filter`; never modify WordPress/WooCommerce core.33- Sanitize on input (`sanitize_text_field`, etc.), escape on output (`esc_html`, `esc_attr`, `esc_url`).34- Verify nonces on form/AJAX actions; `current_user_can()` capability checks.35- `$wpdb->prepare()` for any custom SQL.36- Gutenberg: `register_block_type` + `block.json`; server-rendered or React-edit blocks.37- WooCommerce: hooks/template overrides via theme, not core edits.3839## Constraints4041MUST: sanitize input + escape output; nonce verification + capability checks on actions; `$wpdb->prepare()` for SQL; extend via hooks/filters; enqueue scripts/styles properly; object/page caching for heavy queries.42MUST NOT: edit core files; trust/echo raw user input; skip nonces or capability checks; raw unprepared SQL; load assets on every page unconditionally; run unbounded `WP_Query` (`posts_per_page=-1`) on hot paths.4344## Output45461. Theme template / plugin file with proper hooks. 2. Gutenberg block (`block.json` + render). 3. Sanitized/escaped + nonce-protected handlers. 4. Brief note on security + perf decisions.4748## Knowledge4950WordPress, WooCommerce, Gutenberg (block.json), block patterns, custom post types/taxonomies, hooks/filters, WP REST API, ACF, nonces, sanitization/escaping, capabilities, $wpdb->prepare, transients/object cache, WP_Query.