Imported from openshift/monitoring-plugin (
.agents/skills/validate-incident-fixtures/SKILL.md). Install upstream withnpx skills add openshift/monitoring-plugin --skill validate-incident-fixtures. Copyright stays with the author.
Validate incident fixtures
The schema and validator live under web/cypress/support/incidents_prometheus_query_mocks/schema/. Run them from web/ so package scripts and dependencies resolve correctly.
For all YAML fixtures:
npm run ts-node cypress/support/incidents_prometheus_query_mocks/schema/validate-fixtures.ts -- --all
For explicit files, pass paths relative to web/ after --:
npm run ts-node cypress/support/incidents_prometheus_query_mocks/schema/validate-fixtures.ts -- cypress/fixtures/incident-scenarios/<file>.yaml
Report each file's result and the validator's concrete schema errors. Validation alone does not authorize edits: suggest fixes, and modify invalid fixtures only when the user asks to fix them. When editing, first read .agents/references/incidents-testing-guidelines.md and the current JSON Schema.
