Skip to main content

generate-incident-fixture

Create schema-valid YAML incident fixtures for Cypress from a description or screenshot. Use for fixtures under the incident-scenarios directory.

소스 정보

저장소
openshift/monitoring-plugin
최근 소스 활동
2026년 9월 23일 12:59
감지된 SKILL.md 언어
영어
스타
12
포크
71

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
generate-incident-fixture
description
Create schema-valid YAML incident fixtures for Cypress from a description or screenshot. Use for fixtures under the incident-scenarios directory.
# Generate an incident fixture Before editing, read: - `.agents/references/incidents-testing-guidelines.md`; - `web/cypress/support/incidents_prometheus_query_mocks/schema/fixture-schema.json`; - nearby fixtures under `web/cypress/fixtures/incident-scenarios/`. The JSON Schema is authoritative. Do not recreate it in the skill. ## Workflow 1. Extract the scenario, incidents, alerts, severities, namespaces, and timelines from the request or screenshot. 2. Use relative durations accepted by the schema, never absolute timestamps. For screenshots, measure from the end of the displayed chart and preserve different incident and alert timelines. 3. Use a descriptive generic filename and unique incident IDs. Prefer artificial, descriptive alert names with unique suffixes when real alert identity is not part of the scenario. 4. Write YAML under `web/cypress/fixtures/incident-scenarios/`, unless the user specifies a disposable output location. 5. From `web/`, validate the specific file: ```bash npm run ts-node cypress/support/incidents_prometheus_query_mocks/schema/validate-fixtures.ts -- cypress/fixtures/incident-scenarios/<file>.yaml ``` 6. Correct schema or YAML errors and rerun validation. Report the file and validation result.
GitHub에서 보기