一键导入
event-model-validation
Event model validation and rendering; use when checking information completeness, validating workflow JSON, or rendering event-model HTML.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Event model validation and rendering; use when checking information completeness, validating workflow JSON, or rendering event-model HTML.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Process Forgejo PR feedback with reflection, guardrail-gap classification, and inline thread replies.
Fine-grained outside-in RED-GREEN-REFACTOR microcycles with specialist agents and single-diagnostic implementation.
UI-first BDD for event-model slices, RGR sequence, observed-failure evidence, drill-down unit tests, and non-behavioral exemptions for eddy.
Write implementation plans as test-addressed red-green-refactor cycles, with UI-first Cucumber REDs for event-model slices, rather than component waterfalls.
eddy Rust workspace conventions, Nix toolchain use, error handling, env parsing, tests, and docs coupling.
Event Modeling pattern advice; use when deciding whether something is an event, command, read model, state change, state view, automation, or translation.
| name | event-model-validation |
| description | Event model validation and rendering; use when checking information completeness, validating workflow JSON, or rendering event-model HTML. |
Use this skill after creating or editing an event model, and whenever the user asks about information completeness or generated HTML.
Validate one workflow model:
python3 scripts/validate_event_model.py docs/event-model/workflows/<workflow>.eventmodel.json
Render one workflow model:
python3 scripts/render_event_model.py docs/event-model/workflows/<workflow>.eventmodel.json > docs/event-model/generated/<workflow>.html
Validate every workflow model:
for file in docs/event-model/workflows/*.eventmodel.json; do python3 scripts/validate_event_model.py "$file" || exit 1; done
Only run the all-workflows command when at least one workflow file exists.
The validator checks structural references and information completeness:
given, when, and thengiven and thenEvent attribute sources must be one of:
generated.<kind>command.<input> where <input> exists on a producing commandexternal.<external_input>.<field> where <external_input> exists on a producing commandread_model.<read_model>.<field> where <read_model> exists in a producing command's readsRead model field sources must reference known event attributes:
EventName.attribute_nameevent.EventName.attribute_name is accepted but not preferredAfter the script passes, do a short human review:
When validation fails, fix the model rather than weakening the validator.
For each error:
Do not silently invent events, command inputs, read models, or sources to satisfy validation.