Skip to content
automattic avatar

Wordpress Router

Routes WordPress repos to the right workflow by classifying plugins, themes, block themes, and core checkouts first.

CCM score
50 of 100
skills.sh installs
475
GitHub stars
211
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the first step of most WordPress tasks: classifying the codebase as plugin, classic or block theme, WP core checkout, or full site
  • Runs detect_wp_project.mjs triage, then reads the output for project kind, available tooling, present test suites, and version hints
  • Points to a decision tree for choosing among blocks, theme.json, REST API, WP-CLI, performance, security, testing, and release workflows
  • Designed for agents working on WordPress 6.9+ (PHP 7.2.24+) repos, with some workflows requiring WP-CLI

Install

$ npx -y skills add automattic/agent-skills --skill wordpress-router -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

WordPress Router

When to use

Use this skill at the start of most WordPress tasks to:

  • identify what kind of WordPress codebase this is (plugin vs theme vs block theme vs WP core checkout vs full site),
  • pick the right workflow and guardrails,
  • delegate to the most relevant domain skill(s).

Inputs required

  • Repo root (current working directory).
  • The user’s intent (what they want changed) and any constraints (WP version targets, WP.com specifics, release requirements).

Procedure

  1. Run the project triage script:
    • node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. Read the triage output and classify:
    • primary project kind(s),
    • tooling available (PHP/Composer, Node, @wordpress/scripts),
    • tests present (PHPUnit, Playwright, wp-env),
    • any version hints.
  3. Route to domain workflows based on user intent + repo kind:
    • For the decision tree, read: skills/wordpress-router/references/decision-tree.md.
  4. Apply guardrails before making changes:
    • Confirm any version constraints if unclear.
    • Prefer the repo’s existing tooling and conventions for builds/tests.

Verification

Details

Repository
github.com/automattic/agent-skills
Category
PHP & Laravel
First seen
Jun 3, 2026

Questions

What does the wordpress-router skill do?

It classifies a WordPress codebase, such as a plugin, theme, block theme, WP core checkout or full site, and routes the task to the right workflow or domain skill. It runs a project triage script first, then reads a decision tree to pick the right next step. It targets WordPress 6.9+ with PHP 7.2.24+.

How do I install the wordpress-router skill?

Run npx -y skills add automattic/agent-skills --skill wordpress-router -y inside your project. Once installed, the agent uses it at the start of WordPress tasks to identify the repo type before making changes.

Which other skills are in the PHP & Laravel category?

wordpress-router ranks in the top 100 on the PHP & Laravel category page. Other skills that lead that category include laravel-specialist, php-pro, laravel-patterns, laravel-verification and laravel-plugin-discovery. This skill focuses on WordPress repo routing rather than Laravel or general PHP work.

Does wordpress-router require any tools?

The skill works as a filesystem-based agent with bash and node. Some of the workflows it routes to need WP-CLI.

More from automattic/agent-skills

All 12

Similar to Wordpress Router

More PHP & Laravel