wp-project-triage
โดย wordpress
การตรวจสอบพื้นที่เก็บข้อมูล WordPress แบบกำหนดตายตัวพร้อมผลลัพธ์ JSON ที่มีโครงสร้างสำหรับคำแนะนำในเวิร์กโฟลว์ ตรวจจับประเภทของโปรเจกต์ (ปลั๊กอิน, ธีม, ธีมแบบบล็อก, แกนหลักของ WordPress, 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.