dr-robert-li/cowork-wordpress-expert/wp-patterns
Claude Code and agent skill by dr-robert-li/cowork-wordpress-expert
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Reviews WordPress architecture patterns including theme structure, plugin design, data modeling, and integration patterns. Use when evaluating custom themes/plugins architecture, data model choices, or integration design.
Install
npx vskill@latest install dr-robert-li/cowork-wordpress-expert/wp-patternsSKILL.md
The same SKILL.md was published earlier as dr-robert-li/cowork-wordpress-expert/wp-patterns.
WordPress Architecture Review
Theme Architecture
Child Theme Configuration
- Child theme properly configured (if extending a parent theme)
- Template hierarchy followed correctly
functions.phpnot bloated — heavy logic moved to includes/classes- Template parts used for reusable components
- Custom page templates registered properly
- Theme support declarations (
add_theme_support()) appropriate - Widget areas defined sensibly
- Navigation menus registered and used correctly
- Customizer settings sanitized and validated
Plugin Architecture
Main Plugin Structure
- Main plugin file structure follows WordPress conventions
- Activation/deactivation/uninstall hooks implemented
- Database tables created with
dbDelta()and proper versioning - Upgrade routines handle schema migrations gracefully
- Admin menu pages registered with appropriate capabilities
- Settings API used for options pages (not raw form handling)
- Plugin properly cleans up after itself on uninstall
- AJAX handlers properly registered and secured
- REST API endpoints follow WordPress conventions
- Shortcodes registered with proper escaping
Data Architecture
Data Model Choices
- Custom Post Types vs custom tables — appropriate choice for data model
- Post meta vs custom tables for high-volume structured data
- Taxonomies used correctly (not abused for arbitrary data)
- Options API not used for per-user or per-post data
- User meta appropriately scoped
- Multisite considerations for data isolation
Database Schema Best Practices
- Custom tables use
dbDelta()for creation and updates - Proper indexing on frequently queried columns
- Foreign key relationships documented (even if not enforced)
- Column types appropriate for data (not everything as TEXT)
- Charset and collation match WordPress standards (utf8mb4)
Integration Architecture
External API Integration
- External API calls use WordPress HTTP API (
wp_remote_get(),wp_remote_post()) - API responses cached with transients (with appropriate expiry)
- Webhook handlers properly secured and idempotent
- Background processing uses WP-Cron or Action Scheduler appropriately
- Email sending uses
wp_mail()with proper hooks for SMTP configuration - Timeout values set for all HTTP requests
- Error handling for failed API calls (network issues, rate limits)
- API credentials stored securely (not in database, use constants or environment variables)
WordPress HTTP API Patterns
Background Processing
- WP-Cron used for scheduled tasks (with consideration for traffic-based triggering)
- Action Scheduler used for reliable, scalable background processing
- Long-running processes split into batches
- Progress tracking for multi-step operations
- Proper cleanup of completed/failed jobs
WordPress CLI Diagnostics
Core Integrity
Plugin Management
Cron System Inspection
Database Optimization
Transient Cleanup
Rewrite Rules
Performance Queries
Common Architecture Anti-Patterns
What to Avoid
- Bloated functions.php — All business logic in theme's functions.php instead of organized classes
- Options abuse — Storing per-post or per-user data in wp_options table
- Meta query overload — Using meta_query without proper indexing for high-volume queries
- Direct SQL — Writing raw SQL instead of using $wpdb->prepare() or WordPress query APIs
- Template logic — Business logic mixed into template files instead of separated
- No cleanup — Plugins leaving data behind after uninstall
- Synchronous API calls — Blocking page load with external API requests
- Global namespace pollution — Functions and classes without proper namespacing or prefixing
- Hardcoded values — Paths, URLs, or configuration hardcoded instead of using WordPress constants
- Missing capability checks — Admin functionality accessible without proper permission verification
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/wp-patterns/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dr-robert-li/cowork-wordpress-expert/wp-patterns)