wordpress-router
Use when the user asks about WordPress codebases (plugins, themes, block themes, Gutenberg blocks, WP core checkouts) and you need to quickly classify the repo and route to the correct workflow/skill (blocks, theme.json, REST API, WP-CLI, performance, security, testing, release packaging).
Security Assessment
About wordpress-router
The wordpress-router skill serves as an intelligent entry point for WordPress development tasks, automatically detecting the type of WordPress project you're working with and routing you to the appropriate specialized workflow. When you start working on a WordPress codebase—whether it's a plugin, classic theme, block theme, Gutenberg block, or WordPress core checkout—this skill runs diagnostic scripts to classify your repository structure, identify available tooling, and determine which domain-specific skills and guardrails should be applied.
The skill examines your project's configuration files (composer.json, package.json, style.css, block.json, theme.json), build tooling (@wordpress/scripts, PHP/Composer, Node.js), and testing infrastructure (PHPUnit, Playwright, wp-env) to build a complete picture of your WordPress environment. It then uses this information to make intelligent routing decisions based on your stated intent, directing you to specialized workflows for block development, theme.json configuration, REST API implementation, WP-CLI operations, performance optimization, security hardening, testing setup, or release packaging.
This skill is designed for WordPress developers working across the ecosystem—from plugin authors needing to implement REST endpoints, to theme developers building block themes, to core contributors working on WordPress itself. By automating project classification and workflow selection, it eliminates guesswork about which tools and approaches are appropriate for your specific WordPress context, ensuring that development follows WordPress best practices and respects version compatibility constraints (WordPress 6.9+ with PHP 7.2.24+).
FAQ
When should I use the wordpress-router skill?
Use this skill at the start of most WordPress development tasks. It's particularly valuable when you're uncertain about the project structure, when working with an unfamiliar WordPress codebase, or when you need to ensure you're using the right tools and workflows for your specific WordPress project type.
What WordPress versions and environments does this skill support?
The skill targets WordPress 6.9+ with PHP 7.2.24 or higher. It works with filesystem-based projects using bash and Node.js. Some workflows it routes to may require WP-CLI to be installed in your environment.
What types of WordPress projects can this skill detect?
The skill can identify plugins, classic themes, block themes, Gutenberg blocks, WordPress core checkouts, and full site repositories. It examines configuration files, directory structures, and tooling setup to classify your project accurately.
What happens if the skill can't determine my project type?
If the triage script reports the project kind as 'unknown', the skill will inspect key files like composer.json, package.json, style.css, block.json, theme.json, and wp-content/ directory. If classification remains ambiguous, it will ask you directly whether your project is intended to be a plugin, theme (classic or block), or full site repo.
Does this skill make changes to my code?
No, the wordpress-router skill itself is primarily diagnostic and routing-focused. It detects your project structure and routes you to appropriate domain-specific skills that handle actual code changes. It applies guardrails to ensure any subsequent workflows respect your project's conventions and version constraints.
Install wordpress-router
Quick Setup:
- Copy the skill folder to
.claude/skills/ - Claude will automatically detect and use the skill
Repository
wordpress/agent-skills