PluginBench
Skill
Official
Review
Audit score 70

wp-project-triage

wordpress/agent-skills

Deterministic WordPress repository inspection with structured JSON output 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 type, tooling, tests, and version hints. Use this before making changes to understand the codebase structure and select appropriate workflows and guardrails.

  • Detects project kind (plugin, theme, block theme, WP core, Gutenberg, full site)
  • Identifies installed tooling and build systems (PHP, Node, etc.)
  • Reports presence and type of test suites
  • Extracts version hints and sources from metadata files
  • Outputs structured JSON report conforming to a defined schema
  • Guides workflow selection and safety guardrails based on project signals

How to install wp-project-triage

npx skills add https://github.com/wordpress/agent-skills --skill wp-project-triage
Prerequisites
  • Node.js installed
  • Bash shell available
  • WP-CLI (optional, for some workflows)
  • Target repository with WordPress 7.0+ and PHP 7.4.0+
Claude Code
Cursor
Windsurf
Cline

How to use wp-project-triage

  1. 1.Install the skill: npx skills add https://github.com/wordpress/agent-skills --skill wp-project-triage
  2. 2.Navigate to the WordPress repository root directory
  3. 3.Run the detector: node skills/wp-project-triage/scripts/detect_wp_project.mjs
  4. 4.Review the JSON output for project.kind, signals, and tooling fields
  5. 5.Consult skills/wp-project-triage/references/triage.schema.json if you need the exact output contract
  6. 6.Use the report to select appropriate workflow guardrails and commands
  7. 7.Re-run the detector after structural changes (adding theme.json, block.json, build config)

Use cases

Good for
  • Quickly assess a WordPress plugin before making modifications or running tests
  • Determine the correct build and test commands for a theme or block theme
  • Identify PHP and Node tooling requirements before automating changes
  • Verify project structure and tooling after adding new files like theme.json or block.json
  • Generate a baseline report to guide multi-step agent workflows
Who it's for
  • WordPress developers automating code changes or refactoring
  • AI agents (Claude Code, Cursor) working in WordPress repositories
  • CI/CD pipelines needing deterministic project classification
  • Teams standardizing WordPress project inspection workflows

wp-project-triage FAQ

What if the detector reports 'unknown'?

Verify that the repo root (current working directory) is correct. The detector may not recognize the project structure if run from a subdirectory or non-WordPress location.

Why is scanning slow?

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

Do I need WP-CLI installed?

WP-CLI is optional and only required for some workflows. Basic project detection works with just Node.js and Bash.

When should I re-run the detector?

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

What does the JSON output include?

The output includes project.kind (plugin, theme, etc.), signals (detected features and metadata), and tooling (PHP, Node, test frameworks present).

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 7.0+ (PHP 7.4.0+). 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.