automattic avatar

Wp Project Triage

Before you start refactoring a WordPress repo, 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, full site), detects PHP and Node tooling, finds tests, and pulls version hints so you know which conventions and commands to follow. The honest take: it's a pre-flight check that stops you from running the wrong build command or missing a composer setup. Targets WordPress 6.9+ and requires bash plus node, with some workflows needing WP-CLI. Rerun it whenever you add a theme.json or change build configs.

skills.sh installs
347
GitHub stars
211
last updated
Jun 3, 2026

Install

$ npx -y skills add automattic/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/automattic/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from automattic/agent-skills

All 12
1gohypergiant avataraccelint-ts-performancegohypergiant/agent-skillsSystematic JavaScript/TypeScript performance audit and optimization using V8 profiling and runtime patterns. Use when (1) Users say 'optimize performance', 'aud347skills.sh installs
2new-silvermoon avatarrxjava-to-coroutines-migrationnew-silvermoon/awesome-android-agent-skillsGuide and execute the migration of asynchronous code from RxJava to Kotlin Coroutines and Flow. Use this skill when a user asks to convert RxJava (Observables, 347skills.sh installs
3nicepkg avatarworkflow-creatornicepkg/ai-workflowworkflow creator347skills.sh installs
4thedivergentai avatargodot-2d-physicsthedivergentai/gd-agentic-skillsExpert patterns for Godot 2D physics including collision layers/masks, Area2D triggers, raycasting, and PhysicsDirectSpaceState2D queries. Use when implementing347skills.sh installs
5allenai2014 avataranalyzeallenai2014/ai-investment-advisor个股深度分析。当用户说"分析XX"、"看看XX怎么样"、"XX值得买吗"、"研究一下XX"时使用此skill。346skills.sh installs
6lucaperret avatarmacos-calendarlucaperret/agent-skillsCreate, list, and manage macOS Calendar events via AppleScript. Use when the user asks to add a reminder, schedule an event, create a calendar entry, set a dead345skills.sh installs