Skip to main content

validate-incident-fixtures

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.

Source facts

Repository
openshift/monitoring-plugin
Last source activity
September 23, 2026 at 12:59
Detected SKILL.md language
English
Stars
12
Forks
71

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
validate-incident-fixtures
description
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.
# 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: ```bash npm run ts-node cypress/support/incidents_prometheus_query_mocks/schema/validate-fixtures.ts -- --all ``` For explicit files, pass paths relative to `web/` after `--`: ```bash 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.
View on GitHub