wordpress-router

Úsalo cuando el usuario pregunte sobre bases de código de WordPress (plugins, temas, temas de bloques, bloques de Gutenberg, checkouts del núcleo de WP) y necesites clasificar rápidamente el repositorio…

npx skills add https://github.com/automattic/agent-skills --skill wordpress-router

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

  • Re-run the triage script if you create or restructure significant files.
  • Run the repo’s lint/test/build commands that the triage output recommends (if available).

Failure modes / debugging

  • If triage reports kind: unknown, inspect:
    • root composer.json, package.json, style.css, block.json, theme.json, wp-content/.
  • If the repo is huge, consider narrowing scanning scope or adding ignore rules to the triage script.

Escalation

  • If routing is ambiguous, ask one question:
    • “Is this intended to be a WordPress plugin, a theme (classic/block), or a full site repo?”

Más skills de automattic

testing-js
automattic
Directrices para verificar archivos JavaScript en busca de errores de sintaxis
setup
automattic
Verifica que la CLI de dn esté instalada y configurada. Úsalo cuando el usuario instale por primera vez el plugin de nombres de dominio, o cuando un comando dn falle porque la CLI está…
studio-cli
automattic
Usa la CLI de Studio para gestionar sitios locales de WordPress, autenticación y sitios de vista previa. Invoca esta habilidad cuando necesites ejecutar comandos de Studio CLI, gestionar…
dn-info
automattic
Obtén información detallada sobre un dominio registrado usando la CLI de dn. Úsalo cuando el usuario quiera ver detalles del dominio como fecha de expiración, servidores de nombres, contactos,…
qa
automattic
Compara el contenido extraído de WXR con la página del sitio fuente original, página por página. Encuentra texto, encabezados, imágenes y enlaces faltantes. Corrige parcheando el WXR o…
add-skill
automattic
Añade una nueva skill al plugin a8c-design. Úsalo cuando hayas creado una skill de Claude Code y quieras contribuirla al plugin compartido de Automattic a8c-design —…
design-foundations
automattic
Construye un JSON de fundamentos de diseño coherente a partir de un sitio liberado: roles semánticos de color/tipografía/espaciado con rastros de evidencia. Consume el andamiaje parcial…
wp-phpstan
automattic
Úsalo al configurar, ejecutar o corregir el análisis estático de PHPStan en proyectos de WordPress (plugins/temas/sitios): configuración de phpstan.neon, líneas base,…