con un clic
wow-debugging
// Use when Wow commands, events, sourcing, sagas, projections, wait strategies, Query DSL, retry policies, starter configuration, or tests fail, hang, skip handlers, produce unexpected state, or behave inconsistently
// Use when Wow commands, events, sourcing, sagas, projections, wait strategies, Query DSL, retry policies, starter configuration, or tests fail, hang, skip handlers, produce unexpected state, or behave inconsistently
Wow framework assistant for building reactive DDD + Event Sourcing + CQRS microservices in Kotlin/Java on JVM 17+ with Spring Boot. Use this skill when a task involves Wow framework semantics: - DDD aggregates, command/event/state modeling, bounded contexts, tenant/owner routing - CQRS, Event Sourcing, event stores, snapshots, projections, read models - Saga orchestration, event processors, retry policy, PrepareKey - Command gateway, wait strategies, command bus, WebFlux command endpoints - Wow tests: AggregateSpec, SagaSpec, AggregateVerifier, SagaVerifier - Wow annotations such as @AggregateRoot, @OnCommand, @OnSourcing, @OnEvent, @StatelessSaga, @ProjectionProcessor, @EventProcessor, @AfterCommand, @OnError, @Retry, @BoundedContext, @CreateAggregate, @CommandRoute Do not trigger for unrelated Kotlin, Gradle, frontend, or documentation tasks unless Wow framework behavior or APIs are directly relevant.
Use when reviewing Wow framework code, PR diffs, or pre-merge changes involving aggregates, commands, events, sourcing, sagas, projections, command gateway, Query DSL, starter configuration, or Wow tests
Use when developing, completing, restructuring, or enhancing Wow framework aggregate or saga behavior, including new domain capability, command/event/state design, cross-aggregate orchestration, aggregate tests, saga tests, KDoc, scenario documents, or design reports.
| name | wow-debugging |
| description | Use when Wow commands, events, sourcing, sagas, projections, wait strategies, Query DSL, retry policies, starter configuration, or tests fail, hang, skip handlers, produce unexpected state, or behave inconsistently |
Find the broken link in the Wow pipeline before fixing code. Guessing at event-sourced systems creates new symptoms because command, event, state, projection, and wait layers are coupled by metadata.
No fix before root cause. Reproduce, locate the failing stage, compare with a working example, then make one minimal change.
| Symptom | First Checks |
|---|---|
| Command not handled | Command route, aggregate metadata, @AggregateRoot, @OnCommand, KSP output, command bus. |
| Aggregate state wrong | Event payload, @OnSourcing, missing sourcing handler, snapshot/replay path. |
| Saga not triggered | Event type, @StatelessSaga, @OnEvent, filter condition, bus subscription, @Retry policy. |
| Projection not updated | Processor annotation, event/state-event type, repository call, retry policy. |
| Wait strategy hangs | Wait command id, stage, context name, processor/function names, propagated headers. |
| Query returns wrong data | Query DSL condition, deletion guard, tenant/owner filters, projection fields, backend converter. |
| Configuration ignored | @ConfigurationProperties prefix, feature capability, conditional annotations, active profile. |
| Test fails unexpectedly | Test fixture state, owner/tenant id, fork/ref checkpoint, expected event order. |
Use source-first searches before edits:
rg -n "@AggregateRoot|@OnCommand|@OnSourcing|@StatelessSaga|@ProjectionProcessor" . -g "*.kt"
rg -n "WaitingForStage|SimpleWaitingForChain|Command-Wait" . -g "*.kt"
rg -n "@ConfigurationProperties|ConditionalOn.*Enabled|class .*Properties" . -g "*.kt"
rg -n "AggregateSpec<|SagaSpec<|expectEventType|expectCommand|expectNoCommand" . -g "*.kt"
Find a similar working path in the same repository and list meaningful differences. Do not assume a difference is irrelevant until checked.
State one hypothesis: "stage X fails because Y." Test it with the smallest change or diagnostic. If it fails, discard the hypothesis and return to evidence gathering.
For code fixes, prefer adding or tightening:
AggregateSpec for aggregate behavior and sourcing.SagaSpec for trigger/no-command/multi-command behavior.Finish with the exact reproducer and verification command. If the issue is not fully fixed, report the current failing stage and the remaining unknowns.