/mermaid-event-model:validate-completenessfrom mermaid-event-model
Analyze an Event Model DSL file for information completeness — verify that every field displayed in a UI or read model is traceable back through events and commands, with no gaps or assumed data.
Ships in mermaid-event-model. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are analyzing an Event Model DSL file to verify it satisfies the information completeness principle: every field in every view must be traceable to an event, and every event must be reachable through a command. The blueprint must account for all information — no implicit data, no hidden side effects, no assumed fields.
Reference: https://www.pradhan.is/blogs/event-modelling-best-practices
Read the DSL file at: $ARGUMENTS
If no argument is provided, default to blueprint_dsl.md in the project root.
DSL files are markdown. Each one is a .md file whose DSL lives inside a fenced ```mermaid block whose first content line is eventModel. When analyzing for completeness, focus on the lines INSIDE that fence — they hold the element declarations, data sections, and edges. The markdown structure outside the fence is descriptive prose and doesn't affect traceability.
Three rules must hold:
Field traceability — Every field displayed in a UI or present in a read model must originate from a domain event earlier in the flow. If a UI shows a field that no upstream event carries, the model is incomplete.
Command-to-event connection — Every command must produce at least one domain event. Every domain event must be reachable from a command (or from an external system event). No hidden side effects.
No assumed information — Data dependencies cannot be implicit. If a read model needs a field, an event must supply it. If a UI displays a field, a read model or event must carry it. Implementation cannot be left to "figure it out."
Work backward through the data flow — start from what the user sees (UIs) and trace each field back to its source.
Extract all elements with their types, fields, and edges. Build a dependency graph.
For every field in a UI element:
For every field in a read model:
For every field in a domain event:
UUID identifiers, timestamp fields like registeredAt, bookedAt). System-generated fields are fields that the system produces at event-creation time rather than receiving from user input.For every field in a command:
string can carry a UUID value).guestId: UUID in an event can originate from a command that also has guestId: UUID, even if the UI that triggered the command doesn't have it — as long as SOME upstream element in the chain provides it.*Id: UUID, *At: timestamp, *edAt: timestamp) are allowed to appear in events without a command source. Flag them as "system-generated" rather than "missing."Present the results as a structured report:
State whether the model is complete or has gaps, with a count of issues found.
For each UI, list every field and its trace path:
UI: "Booking Screen" (booking_ui)
roomId: UUID
<- readModel "Room Availability" (avail) [roomId: UUID] OK
<- domainEvent "Room Added" (ra) [roomId: UUID] OK
roomType: string
<- readModel "Room Availability" (avail) [roomType: string] OK
<- domainEvent "Room Added" (ra) [roomType: string] OK
checkIn: date
<- (no upstream read model carries this field) GAP
Collect all gaps into a single list with:
checkIn: date to the Room Availability read model" or "add a new event that carries this field")List any elements with no incoming or outgoing connections where expected.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
event-model, dsl, information-completeness, traceability, data-flow, blueprint
Generated from the plugin's indexed repository (howarddierking/mermaid-event-model) — no native marketplace selected
npx claudepluginhub p/howarddierking-mermaid-event-model6 skills in this plugin
/add-slicesAnalyze an Event Model DSL file and (re)write its `slice` declarations from scratch based on the edges currently in the file. Strips any existing slices first so re-running cleanly replaces stale slices instead of accumulating them. Every slice is classified against the four canonical Event Modeling patterns — Command, View, Automation, and Translation — with `externalEvent` as the sole discriminator between Automation and Translation, since the two are structurally identical. Slices that match no canonical shape are flagged rather than forced into a bucket, and the run also reports model defects the classification exposes: read sides that mix two systems, and orphan events that should have been declared external. The pattern is reported, never written into the DSL./add-testsAuthor `sliceTests` Given/When/Then specifications for a slice and append them to that slice's spec file. The target slice can be named or inferred from the test's own action element (its command, or read model for a view test). You describe the test in natural language and pick (or accept an inferred) flow type; the skill grounds every element, outcome, and field against the slice's Model section. It includes only the subset of fields the test's language actually exercises, and — like validate-completeness — refuses to invent data: any attribute you reference that no element in the slice carries is raised back to you before anything is written. Existing tests, the Description, and the Model section always round-trip unchanged./create-event-modelSeed a project with a working Event Model. Writes (1) a markdown file containing the canonical hotel-booking DSL inside a `mermaid` fenced block, and (2) a `model-viewer.html` page that renders that markdown plus any sibling `<model>-slices/` directory created later by the `spec-slices` skill. Useful for bootstrapping a new model or resetting to the reference example. The model defaults to `blueprint_dsl.md`; the viewer is always written as a sibling named `model-viewer.html`./event-modelAuthor or extend an Event Model DSL file from a natural-language description. Adds actors, aggregates, UIs, commands, domain events, external events, read models, and automations following the project's grammar and conventions. Use this when the user wants to model a new system, add a new flow to an existing model, or sketch a missing piece — not for adding slices (use `add-slices` for that) or validating completeness (use `validate-completeness`)./spec-slicesGenerate one specification file per slice declared in an Event Model DSL. Each spec is markdown with a Model section (auto-extracted slice snippet, refreshed on re-run), a Description section (prose intent), and a Tests section (`sliceTests` DSL inside a mermaid fenced block). Specs are written into a sibling directory `<dsl-file>-slices/`. Re-running is repeatable: alive slices keep their Description/Tests, the Model section is refreshed against the current DSL, and orphan files (whose slice id no longer exists in the DSL) are checked for authored content — empty orphans are deleted silently, orphans with prose or real tests prompt the user to pick which current slice to move the content to so no authored data is ever lost.Other plugins' skills for the same job