Validate incident fixtures

From openshift/monitoring-plugin · View interactive version

Validate incident fixtures is an AI agent skill from the GitHub repository openshift/monitoring-plugin. Validate one or all Cypress incident YAML fixtures against the repository schema. Use when the user asks to check fixture validity or diagnose fixture validation errors.

How to use this skill

Skill file

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.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.