PluginBench
Skill
Official
Review
Audit score 70

wp-project-triage

wordpress/agent-skills

Deterministic inspection of WordPress repositories with structured JSON reports for workflow guidance.

What is wp-project-triage?

Analyzes a WordPress repository (plugin, theme, block theme, WP core, Gutenberg, or full site) to identify project kind, tooling, tests, and version hints. Outputs a structured JSON report to guide workflows and enforce guardrails before making changes.

  • Detects project kind (plugin, theme, block theme, WP core, Gutenberg, full site)
  • Identifies installed tooling (PHP, Node, build systems, test frameworks)
  • Reports presence and type of tests (unit, integration, e2e)
  • Extracts version hints from package.json, composer.json, and plugin/theme headers
  • Generates structured JSON output matching triage.schema.json contract
  • Provides signals for workflow selection and guardrail enforcement

How to install wp-project-triage

npx skills add https://github.com/wordpress/agent-skills --skill wp-project-triage
Prerequisites
  • Node.js runtime available
  • Bash shell access
  • WP-CLI (optional, required for some workflows)
  • WordPress 6.9+ target compatibility (PHP 7.2.24+)
Claude Code
Cursor
Windsurf
Cline

How to use wp-project-triage

  1. 1.Run the detector from repo root: node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. 2.Capture the JSON output printed to stdout
  3. 3.Parse the JSON and check project.kind, signals, and tooling fields
  4. 4.Reference skills/wp-project-triage/references/triage.schema.json to understand the output contract
  5. 5.Use the report to select appropriate workflow guardrails and commands for your changes
  6. 6.Re-run after structural changes (adding theme.json, block.json, or build config)

Use cases

Good for
  • Before modifying a WordPress plugin to understand its test setup and build tooling
  • Analyzing a theme repository to determine if it's a block theme and what PHP/Node dependencies exist
  • Inspecting WP core or Gutenberg checkouts to identify version and testing conventions
  • Automating repository assessment in CI/CD pipelines to select appropriate workflows
  • Guiding agent decision-making on which commands and conventions to follow
Who it's for
  • AI agents (Claude Code, Cursor) working on WordPress projects
  • Developers automating WordPress repository analysis
  • CI/CD pipelines requiring deterministic project classification
  • Teams enforcing consistent workflows across multiple WordPress repositories

wp-project-triage FAQ

What if the detector reports 'unknown'?

Verify that you are running the command from the correct repository root. If the root is correct, the repository may not match recognized WordPress project patterns.

Why is scanning slow?

Large repositories with many files may take time to scan. You can optimize by adding or extending ignore directories in the detect_wp_project.mjs script.

Do I need WP-CLI installed?

WP-CLI is optional. The detector runs with bash and Node, but some workflows that use the triage report may require WP-CLI.

When should I re-run the detector?

Re-run after changes that affect project structure or tooling, such as adding theme.json, block.json, or modifying build configuration.

What versions of WordPress does this support?

The skill targets WordPress 6.9+ with PHP 7.2.24+. It can analyze repositories for those versions and above.

Full instructions (SKILL.md)

Source of truth, from wordpress/agent-skills.


name: wp-project-triage description: "Use when you need a deterministic inspection of a WordPress repository (plugin/theme/block theme/WP core/Gutenberg/full site) including tooling/tests/version hints, and a structured JSON report to guide workflows and guardrails." compatibility: "Targets WordPress 6.9+ (PHP 7.2.24+). Filesystem-based agent with bash + node. Some workflows require WP-CLI."

WP Project Triage

When to use

Use this skill to quickly understand what kind of WordPress repo you’re in and what commands/conventions to follow before making changes.

Inputs required

  • Repo root (current working directory).

Procedure

  1. Run the detector (prints JSON to stdout):
    • node skills/wp-project-triage/scripts/detect_wp_project.mjs
  2. If you need the exact output contract, read:
    • skills/wp-project-triage/references/triage.schema.json
  3. Use the report to select workflow guardrails:
    • project kind(s)
    • PHP/Node tooling present
    • tests present
    • version hints and sources
  4. If the report is missing signals you need, update the detector rather than guessing.

Verification

  • The JSON should parse and include: project.kind, signals, and tooling.
  • Re-run after changes that affect structure/tooling (adding theme.json, block.json, build config).

Failure modes / debugging

  • If it reports unknown, check whether the repo root is correct.
  • If scanning is slow, add/extend ignore directories in the script.