/trogonstack-eventmodeling:eventmodeling-slicing-event-modelsfrom trogonstack-eventmodeling
Breaks down event models into implementable feature slices, identifies dependencies, and plans parallel team implementation. Useful for MVP scoping and implementation order after event modeling.
Ships in trogonstack-eventmodeling. 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.
Read when SKILL.md points to them.
When to Interview: Skip if the user has already specified: available team capacity, sprint duration, MVP scope/timeline, and critical path requirements. Interview when implementation planning details haven't been discussed or when you want to help identify MVP scope.
Interview Strategy: Understand team capacity and timeline constraints to create realistic implementation slices. This shapes MVP scope and parallel work planning.
When implementation planning is needed:
Available Team Capacity (Impact: Determines how many slices can be built in parallel)
Sprint/Timeline Constraints (Impact: Affects slice size and MVP scope)
Critical Path & Dependencies (Impact: Determines implementation order and blocking relationships)
Conditional Entry:
If user has provided:
- Team capacity (number of teams/people)
- AND sprint duration + MVP deadline
- AND identified critical path / MVP features
Then: Skip interview, proceed directly to slicing
Else: Conduct interview
Phase 1: Capacity Planning (Questions 1-2)
Phase 2: Dependency Mapping (Question 3)
Document findings to guide slicing:
## Interview Findings: [Domain Name] Implementation Plan
**Team Capacity**: [Number of teams/people]
**Sprint Duration**: [Days/weeks]
**MVP Deadline**: [Date]
**Available Sprints for MVP**: [Number]
**Critical Path Features** (must build first):
- [Feature 1]
- [Feature 2]
**Dependency Chain**:
- [Feature A] blocks [Feature B]
- [Feature B] blocks [Feature C]
**Parallel Work Opportunity**:
- Slice 1 & Slice 2 can start simultaneously
- Slice 3 can start after [dependency]
**Recommended Slices**:
- Slice 1 (Foundation): [features] - [Duration]
- Slice 2 (Features): [features] - [Duration]
- Slice 3 (Extended): [features] - [Duration]
Optional: Write to .trogonai/interviews/[timestamp]-slicing-event-models.interview.internal.trogonai.md.
Purpose: Break down a complete event model into independently implementable feature slices, identify dependencies, and plan parallel (fan-out) implementation across teams.
Applies To: Any domain - e-commerce, banking, SaaS, marketplace, healthcare, etc.
When to Use:
What It Does:
A Feature Slice is a thin, vertical slice through the entire system:
Feature Slice = Command Handler + [CommandHandler]State + Events + Read Models + Projections
(complete end-to-end flow for one decision/capability)
Key Characteristics:
Start by identifying what users can do:
User Capabilities:
"Place and confirm an order" ← One slice
"Pay for an order" ← One slice
"Manage inventory" ← One slice
"Fulfill and ship an order" ← One slice
"Track shipment status" ← One slice
Each capability = One feature slice
Identify which commands belong to each slice:
Feature Slice: Core Order Flow
Commands:
CreateOrder (customer submits)
ConfirmOrder (customer confirms)
(CancelOrder belongs to its own slice)
Feature Slice: Payment Processing
Commands:
AuthorizePayment (payment gateway)
ProcessRefund (customer or support requests)
Feature Slice: Fulfillment & Shipping
Commands:
CreateShipment (fulfillment team)
ConfirmDelivery (carrier webhook)
Identify which events are produced by each slice:
Feature Slice: Core Order Flow
Events Produced:
OrderCreated
OrderConfirmed
OrderCancelled (if cancelled before payment)
Feature Slice: Payment Processing
Events Produced:
PaymentAuthorized
PaymentFailed
RefundInitiated
RefundCompleted
Feature Slice: Inventory Management
Events Consumed:
PaymentAuthorized (triggers reservation)
Events Produced:
InventoryReserved
InventoryReleased
Feature Slice: Fulfillment & Shipping
Events Consumed:
InventoryReserved (triggers shipment)
Events Produced:
ShipmentCreated
DeliveryConfirmed
Identify which read models serve each slice:
Feature Slice: Core Order Flow
Read Models:
OrderDetailView (show what was ordered)
OrderListView (customer's order history)
Feature Slice: Payment Processing
Read Models:
PaymentStatusView (payment and refund state)
OrderPaymentView (payment details per order)
Feature Slice: Inventory Management
Read Models:
InventoryLevelView (current stock per product)
ReservationView (what's reserved for which order)
Feature Slice: Fulfillment & Shipping
Read Models:
ShipmentStatusView (tracking and delivery state)
OrderFulfillmentView (fulfillment progress per order)
Dependency Types:
Type 1: Event Dependency
"Slice B needs events from Slice A"
Example: ReserveInventoryHandler needs PaymentAuthorized (from AuthorizePaymentHandler)
Impact: Must implement Slice A first (publish events)
Type 2: Event Stream Dependency (NOT Aggregate Dependency)
"Slice B's handler reconstructs state from same event stream as Slice A"
Example: ShipOrderHandler uses OrderCreated/OrderConfirmed events to build ShipOrderState
Impact: Can develop in parallel, but must serialize commands at event store level
Type 3: Read Model Dependency
"Slice B reads projection from Slice A"
Example: Fulfillment slice needs InventoryLevelView (projected from inventory events)
Impact: Can develop in parallel, but A's projections must deploy first
Type 4: No Dependency
"Slices are completely independent"
Example: AuthorizePaymentHandler and CreateShipmentHandler work separate event streams
Impact: Can develop, test, and deploy in true parallel
| Core Orders | Payment | Inventory | Fulfillment |
Core Orders | (self) | - | - | - |
Payment | ← Depends | (self) | - | - |
Inventory | ← Depends | ← Depends | (self) | - |
Fulfillment | ← Depends | ← Depends | ← Depends | (self) |
Legend:
← Depends on (arrow points to dependency)
- = No dependency
= Self (no external dependency)
CRITICAL PATH (Must do in sequence):
Slice 1: Core Order Flow (foundation)
↓ (depends on OrderConfirmed event)
Slice 2: Payment Processing (depends on Slice 1)
↓ (depends on PaymentAuthorized event)
Slice 3: Inventory Management (depends on Slice 2)
↓ (depends on InventoryReserved event)
Slice 4: Fulfillment & Shipping (depends on Slice 3)
Visual Timeline:
Week 1-2: [Slice 1: Core Orders] (Team A)
Unlocks Payment slice
Week 3-4: [Slice 2: Payment] (Team A) [Slice 1 integration tests] (Team B)
Payment unlocks Inventory
Week 5-6: [Slice 3: Inventory] (Team A) [Slice 4: Fulfillment] (Team B)
Can work in parallel once Payment is done
Week 7-8: Integration & Cross-Slice Testing
Fan-Out = One slice (foundation) → Multiple slices (parallel)
Example: Acme Corp Order Management
Slice 1 → Slice 2 → Slice 3 → Slice 4
(Orders) (Payment) (Inventory) (Fulfillment)
Benefits:
Teams work in parallel
Slice 1 done in Week 2, teams start Weeks 3-4
3 teams productive simultaneously
Critical path stays short
Risk distributed (if Slice 2 hits issue, Slice 3 continues)
For detailed patterns, implementation strategies, and examples:
What SKILL.md sets; muted values are Claude Code's defaults
16 skills in this plugin
/eventmodeling-applying-conways-lawStep 6 of Event Modeling - Apply Conway's Law with swimlanes. Organize events into autonomous system parts that different teams can independently own. Use after defining inputs/outputs. Do not use for: planning feature slice implementation order (use eventmodeling-slicing-event-models) or defining command/read model boundaries (use eventmodeling-designing-event-models)./eventmodeling-brainstorming-eventsStep 1 of Event Modeling - Brainstorm all domain events from requirements. Extract every state-changing event the system could have. Use when starting event modeling from requirements or a new domain. Do not use for: arranging events in sequence (use eventmodeling-plotting-events), designing commands or read models (use eventmodeling-designing-event-models), or when a complete event list already exists./eventmodeling-checking-completenessStep 8 of Event Modeling - Completeness Check. Verify every field has origin and destination. Ensure complete event model before code generation. Use after all scenarios defined. Do not use for: architectural validation against event sourcing principles (use eventmodeling-validating-event-models) or elaborating Given-When-Then specs (use eventmodeling-elaborating-scenarios)./eventmodeling-designing-event-modelsDesigns event-sourced domain models. Maps business processes to immutable events and state projections. Events are the source of truth; state is derived from events for command validation. Use when designing event streaming architectures from domain analysis. Do not use for: brainstorming events from scratch (use eventmodeling-brainstorming-events), optimizing stream sizing or snapshotting (use eventmodeling-optimizing-stream-design), or translating external system events (use eventmodeling-translating-external-events)./eventmodeling-elaborating-scenariosStep 7 of Event Modeling - Elaborate scenarios using Given-When-Then format. Specify behavior of commands and views. Each spec tied to exactly one command or view. Use after defining systems and boundaries. Do not use for: architectural validation (use eventmodeling-validating-event-models) or verifying field completeness across the model (use eventmodeling-checking-completeness)./eventmodeling-identifying-inputsStep 4 of Event Modeling - Identify Commands/Inputs from UI and Processor actions. Map user actions to commands and data. Use after storyboarding UI. Do not use for: identifying read models or outputs (use eventmodeling-identifying-outputs) or elaborating behavior specifications (use eventmodeling-elaborating-scenarios).npx claudepluginhub trogonstack/agentskills --plugin trogonstack-eventmodelingOther plugins' skills for the same job