eventmodeling-validating-event-models

Validate event-sourced models for consistency, completeness, and event sourcing principles.

10|2|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/TrogonStack/agentskills --skill eventmodeling-validating-event-models
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: eventmodeling-validating-event-models
Source: https://github.com/TrogonStack/agentskills/tree/main/plugins/trogonstack-eventmodeling/skills/eventmodeling-validating-event-models
Command: npx skills add https://github.com/TrogonStack/agentskills --skill eventmodeling-validating-event-models

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenge of ensuring event-sourced models are architecturally sound, complete, and consistent before moving into the expensive code generation phase.

Core Features & Use Cases

  • Architectural Guardrails: Enforces the critical rule that every command must have its own minimal state projection, preventing the common anti-pattern of using DDD aggregate roots for command validation.
  • Completeness Analysis: Performs a rigorous check of event streams, command-event mappings, and role-based actor attribution to ensure no business logic gaps exist.
  • Use Case: Use this during the design review phase of an event modeling session to identify missing events, verify that state projections are deterministic, and ensure that all commands are properly attributed to roles defined in your Role Catalog.

Quick Start

Use the eventmodeling-validating-event-models skill to review the current event model for critical architectural violations and completeness gaps.

Frequently Asked Questions about eventmodeling-validating-event-models

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I validate an event-sourced model for architectural consistency?

To validate an event-sourced model, you must review event streams, command-state projections, and role-based access control to ensure strict compliance with minimal state projection patterns and explicit command-to-event mapping.

Why should command validation avoid using DDD aggregate roots in event sourcing?

Command validation should avoid DDD aggregate roots because every command requires its own minimal state projection to enforce architectural integrity, and using aggregates creates an anti-pattern that breaks event sourcing consistency.

How do I check for missing events in an event modeling design review?

To check for missing events during a design review, perform a completeness analysis that rigorously verifies event streams, command-event mappings, and role-based actor attribution to identify any business logic gaps.

What is the best way to ensure commands are properly attributed to roles in CQRS?

The best way to ensure proper role attribution in CQRS is to verify that all commands are explicitly mapped to roles defined within your Role Catalog during the completeness analysis phase.

Can I use state projections for command validation in domain-driven design?

Yes, you must use minimal state projections for command validation in domain-driven design, as this enforces determinism and prevents the anti-pattern of relying on DDD aggregate roots for validation logic.