Validate Skill Schema
Use the schema and validator to keep skills consistent across Upstream, Midstream, and Downstream checks.
Steps
-
Edit or add a skill under
skills/. -
Run the validator:
npm run skills:validate -
If the schema check errors, confirm these required fields exist:
idnamedescriptioncategory(the primary routing key;phaseis an optional backward-compatibility alias)applyTo(orfiles/path_patterns)
-
Confirm
categorymatches the intended flow segment (core/upstream/midstream/downstream) and adjustapplyToglobs to avoid noisy matches. -
Re-run the validator until you get a clean pass, then include the command output in your PR.
Tips
- Keep tags and severity aligned with how you want findings prioritized.
- Add small sample files and open a draft PR to see how the reviewer routes the skill.