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.