wordpress avatar

Wordpress Router

Before you touch a WordPress repo, this skill figures out what you're actually working with. It runs a triage script that detects whether you've got a plugin, theme, block theme, or core checkout, checks what tooling is present (Composer, @wordpress/scripts, PHPUnit, wp-env), then routes you to the right workflow based on your intent. The decision tree lives in a reference doc, so routing is consistent. Honestly, this is just good hygiene for any WordPress automation. If you skip classification and guess wrong, you'll waste time running the wrong build commands or missing required tests. One clarifying question beats ten minutes of backtracking.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
5
skills.sh installs
6K
GitHub stars
2.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add wordpress/agent-skills --skill wordpress-router --agent claude-code

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/wordpress/agent-skills
Categories
Backend & APIs, Testing & QA, Security, AI & Agent Building, Release Management, Debugging, Automation & Workflows, CLI & Terminal, PHP & Laravel
First seen
Apr 16, 2026

More from wordpress/agent-skills

All 17
1grafana avatargrafana-ossgrafana/skillsConfigure Grafana OSS — provisions dashboards from YAML, sets up data sources (Prometheus / Loki / Tempo / Pyroscope), writes dashboard JSON with template varia6Kskills.sh installs
2affaan-m avatarjira-integrationaffaan-m/eccUse this skill when retrieving Jira tickets, analyzing requirements, updating ticket status, adding comments, or transitioning issues. Provides Jira API pattern6Kskills.sh installs
3jeffallan avatarfullstack-guardianjeffallan/claude-skillsBuilds security-focused full-stack web applications by implementing integrated frontend and backend components with layered security at every level. Covers the 5.9Kskills.sh installs
4aws avataramazon-elasticacheaws/agent-toolkit-for-awsActivate when developers have latent caching needs: slow API responses, database read bottlenecks, DynamoDB throttling or cost, RDS/Aurora scaling pressure, Bed5.9Kskills.sh installs
5vintasoftware avatardjango-expertvintasoftware/django-ai-pluginsExpert Django backend development guidance. Use when creating Django models, views, serializers, or APIs; debugging ORM queries or migrations; optimizing databa5.9Kskills.sh installs
6forcedotcom avataragentforce-architecture-analyzeforcedotcom/sf-skillsDeclared architecture snapshot for one Agentforce agent: planner, topics, actions, flows, Apex, prompt templates, and NGA plugins. Renders a human-readable arch5.9Kskills.sh installs