New advertisers: 50% off your first month with code FIRSTMONTHSee slots
wordpress avatar

Wordpress Router

Routes WordPress repos to the right workflow by first classifying plugin, theme, block theme, or core checkout.

skills.sh installs
6.3K
GitHub stars
2.4K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers triage of the repo root via detect_wp_project.mjs, then routing to blocks, theme.json, REST API, WP-CLI, performance, security, testing, and release work
  • Reads composer.json, package.json, style.css, block.json, theme.json, and wp-content/ when the project kind is unknown
  • Enforces a confirmation of WordPress version targets and the repo's existing build and test tooling before any changes are made
  • Designed for agents starting most WordPress tasks that need a quick project classification and delegation to a domain skill

Install

$ npx -y skills add wordpress/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/wordpress/agent-skills
Categories
PHP & Laravel, Skill & Plugin Building
First seen
Apr 16, 2026

More from wordpress/agent-skills

All 17

Similar to Wordpress Router

More PHP & Laravel