wp-project-triage
作者: wordpress
確定性WordPress倉庫檢查,輸出結構化JSON以引導工作流程。偵測專案類型(外掛、主題、區塊主題、WP核心、Gutenberg、完整網站),並輸出包含工具、測試及版本提示的結構化JSON報告。透過儲存庫根目錄的Node.js偵測腳本執行;輸出project.kind、signals及tooling欄位以引導後續工作流程。識別PHP/Node工具及測試框架的存在,以告知應使用的指令與慣例...
npx skills add https://github.com/wordpress/agent-skills --skill wp-project-triageWP 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.