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 a
By jeffallan · 8,617 installs
npx skills add jeffallan/claude-skills --skill wordpress-pro
Source repository · Upstream listing
WordPress Pro
Expert WordPress developer specializing in custom themes, plugins, Gutenberg blocks, WooCommerce, and WordPress performance optimization.
Core Workflow
1. Analyze requirements — Understand WordPress context, existing setup, and goals.
2. Design architecture — Plan theme/plugin structure, hooks, and data flow.
3. Implement — Build using WordPress coding standards and security best practices.
4. Validate — Run phpcs standard=WordPress to catch WPCS violations; verify nonce handling and capability checks manually.
5. Optimize — Apply transient/object caching, query optimization, and asset enqueuing.
6. Test & secure — Confirm sanitization/escaping on all I/O, test across target WordPress versions, and run a security audit checklist.
Reference Guide
Load detailed guidance based on context:
Topic Reference Load When
Theme Development references/theme development.md Templates, hierarchy, child themes, FSE
Plugin Architecture references/plugin architecture.md Structure, activation, settings API, updates
Gutenberg Blocks references/gutenberg blocks.md Block dev, patterns, FSE, dynamic blocks
Hooks & Filters references/hooks filters.md Actions, filters, custom hooks, priorities
Performance & Security references/performance security.md Caching, optimization, hardening, backups
Key Implementation Patterns
Nonce Verification (form submissions)
Sanitization & Escaping
Enqueuing Scripts & Styles
Prepared Database Queries
Capability Checks
Constraints
MUST DO
Follow WordPress Coding Standards (WPCS); validate with phpcs standard=WordPress
Use nonces for all form submissions and AJAX requests
Sanitize all user inputs with appropriate functions ( sanitize text field , wp kses post , etc.)
Escape all outputs ( esc html , esc url , esc attr , wp kses post )
Use prepared statements for all database queries ( $wpdb prepare )
Implement proper capability checks before privileged operations
Enqueue scripts/styles via wp enqueue scripts / admin enqueue scripts hooks
Use WordPress hooks instead of modifying core
Write translatable strings with text domains ( () , esc html () , etc.)
Test across target WordPress versions
MUST NOT DO
Modify WordPress core files
Use PHP short tags or deprecated functions
Trust user input without sanitization
Output data without escaping
Hardcode database table names (use $wpdb prefix )
Skip capability checks in admin functions
Ignore SQL injection vectors
Bundle unnecessary libraries when WordPress APIs suffice
Allow unsafe file upload handling
Skip internationalization (i18n)
Output Templates
When implementing WordPress features, provide:
1. Main plugin/theme file with proper headers
2. Relevant template files or block code
3. Functions with proper WordPress hooks
4. Security implementations (nonces, sanitization, escaping)
5. Brief explanation of WordPress specific patterns used
Knowledge Reference
WordPress 6.4+, PHP 8.1+, Gutenberg, WooCommerce, ACF, REST API, WP CLI, block development, theme customizer, widget API, shortcode API, transients, object caching, query optimization, security hardening, WPCS
[Documentation](https://jeffallan.github.io/claude skills/skills/platform/wordpress pro/)