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- Node.js installed
- Bash shell available
- WP-CLI (optional, for some workflows)
- Target repository with WordPress 7.0+ and PHP 7.4.0+
How to use wp-project-triage
- 1.Install the skill: npx skills add https://github.com/wordpress/agent-skills --skill wp-project-triage
- 2.Navigate to the WordPress repository root directory
- 3.Run the detector: node skills/wp-project-triage/scripts/detect_wp_project.mjs
- 4.Review the JSON output for project.kind, signals, and tooling fields
- 5.Consult skills/wp-project-triage/references/triage.schema.json if you need the exact output contract
- 6.Use the report to select appropriate workflow guardrails and commands
- 7.Re-run the detector after structural changes (adding theme.json, block.json, build config)
Use cases
- 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
- 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
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.
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.
WP-CLI is optional and only required for some workflows. Basic project detection works with just Node.js and Bash.
Re-run after making changes that affect project structure or tooling, such as adding theme.json, block.json, or modifying build configuration files.
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
- Run the detector (prints JSON to stdout):
node skills/wp-project-triage/scripts/detect_wp_project.mjs
- If you need the exact output contract, read:
skills/wp-project-triage/references/triage.schema.json
- Use the report to select workflow guardrails:
- project kind(s)
- PHP/Node tooling present
- tests present
- version hints and sources
- If the report is missing signals you need, update the detector rather than guessing.
Verification
- The JSON should parse and include:
project.kind,signals, andtooling. - 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.
Related skills
More from wordpress/agent-skills and the wider catalog.

wp-rest-api
Build, extend, and debug WordPress REST API endpoints with schema validation, authentication, and custom fields.

wp-wpcli-and-ops
WordPress operations via WP-CLI: safe search-replace, database management, plugin/theme control, and automation.

wpds
Build WordPress UIs with the WordPress Design System (WPDS) components, tokens, and patterns.

blueprint
Create, edit, and validate WordPress Playground Blueprint JSON files for declarative environment configuration.

workos
WorkOS authentication, identity, and access control integration reference for coding agents.

story
Router for web novel writing toolkit—dispatches user requests to specialized story skills.