wordpress avatar

Wp Project Triage

Before you start refactoring a WordPress repo or setting up CI, run this to get a deterministic JSON report of what you're actually dealing with. It scans for project type (plugin, theme, block theme, core), checks what tooling is present (Composer, npm, webpack), looks for tests, and pulls version hints from headers and manifests. The schema is documented, so you can wire it into workflows or guardrails without guessing. It's especially useful if you're building agents or scripts that need to adapt behavior based on repo structure. If it reports "unknown" you're probably in the wrong directory, and if you need signals it doesn't catch yet, you're meant to extend the detector script rather than work around it.

skills.sh installs
5.9K
GitHub stars
2.3K
last updated
Aug 21, 2026

Install

$ npx -y skills add wordpress/agent-skills --skill wp-project-triage --agent claude-code

Installs into .claude/skills of the current project.

Files

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.

Sponsors

Details

Repository
github.com/wordpress/agent-skills
Categories
Documentation, AI & Agent Building, Release Management, PHP & Laravel
First seen
Apr 16, 2026

More from wordpress/agent-skills

All 17
1affaan-m avatarreact-performanceaffaan-m/eccReact and Next.js performance optimization patterns adapted from Vercel Engineering's React Best Practices (https://github.com/vercel-labs/agent-skills). Organi5.9Kskills.sh installs
2vintasoftware avatardjango-expertvintasoftware/django-ai-pluginsExpert Django backend development guidance. Use when creating Django models, views, serializers, or APIs; debugging ORM queries or migrations; optimizing databa5.9Kskills.sh installs
3trailofbits avatarguidelines-advisortrailofbits/skillsSmart contract development advisor based on Trail of Bits' best practices. Analyzes codebase to generate documentation/specifications, review architecture, chec5.8Kskills.sh installs
4samber avatarfrontend-design-deslopsamber/cc-skillsProduce distinctive, non-generic UI and design applications well, working strategy-first. Identify the project (landing page, SaaS app, dashboard, ecommerce, pr5.8Kskills.sh installs
5hashicorp avatarterraform-stackshashicorp/agent-skillsComprehensive guide for working with HashiCorp Terraform Stacks. Use when creating, modifying, or validating Terraform Stack configurations (.tfcomponent.hcl, .5.8Kskills.sh installs
6brianlovin avatardeslopbrianlovin/agent-configRemove AI-generated code slop from the current branch. Use after writing code to clean up unnecessary comments, defensive checks, and inconsistent style.5.8Kskills.sh installs