Back to Skills

wp-project-triage

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.

1,728stars255forksUpdated 6/22/2026

Security Assessment

Safe(100/100)
Security Score100/100

About wp-project-triage

The wp-project-triage skill provides deterministic inspection and analysis of WordPress repositories, identifying project types (plugins, themes, block themes, WordPress core, Gutenberg, or full sites) and their technical characteristics. It generates structured JSON reports that capture tooling configurations, testing infrastructure, version information, and other critical signals needed to guide development workflows and establish guardrails before making changes.

This skill analyzes repository structure and metadata to detect PHP and Node.js tooling presence, identify test frameworks, parse version hints from multiple sources, and classify the WordPress project kind. The detection runs through a Node.js script that scans the filesystem and outputs a comprehensive JSON report conforming to a documented schema. The report includes project classification, available tooling (Composer, npm, WP-CLI), testing infrastructure (PHPUnit, Jest, Playwright), and version constraints from composer.json, package.json, and WordPress-specific files.

Target users include AI agents, automation tools, and developers working across diverse WordPress codebases who need reliable project context before executing commands or modifications. The skill helps prevent workflow errors by establishing what conventions and tools are available in each repository, whether it's a simple plugin, a modern block theme with build tooling, or WordPress core itself. By providing this structured analysis upfront, teams can build safer automation that respects project-specific requirements and tooling configurations.

FAQ

What WordPress versions does this skill support?

This skill targets WordPress 6.9+ running on PHP 7.2.24 or higher. It's designed as a filesystem-based analysis tool that works with bash and Node.js, with some workflows optionally requiring WP-CLI.

How do I run the project detection?

Execute the detection script from your repository root using: `node skills/wp-project-triage/scripts/detect_wp_project.mjs`. The script outputs structured JSON to stdout containing project classification, tooling, and version information.

What should I do if the detector reports 'unknown' for my project?

First verify you're running the detector from the correct repository root directory. If the location is correct but the project type isn't detected, the repository may lack standard WordPress project markers like theme.json, block.json, or plugin headers.

When should I re-run the triage analysis?

Re-run the detector after making structural changes that affect project classification or tooling, such as adding theme.json or block.json files, modifying build configurations, or adding new development dependencies.

What if the detection report is missing information I need?

Rather than making assumptions, update the detector script itself to capture the missing signals. The skill is designed to provide deterministic output, so extending the detection logic ensures consistent results across all future runs.

All Files

3 files
SKILL.md1.4 KB
View
references/triage.schema.json4.4 KB
View
scripts/detect_wp_project.mjs18.7 KB
View

Install wp-project-triage

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill