agentsclimarketplace

Wow debugging

Skill Ahoo-Wang/skills/plugins/ahoo-wow-skills/skills/wow-debugging

A central aggregation repository for Agent Skills from Ahoo-Wang's open source projects.

Install
npx -y skills add Ahoo-Wang/skills --skill wow-debugging

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

Use when Wow commands, events, sourcing, sagas, projections, wait plans, Query DSL, retry policies, starter configuration, or tests fail, hang, skip handlers, produce unexpected state, or behave inconsistently

SKILL.md

3.4 KB, 694 tokens by cl100k_base, as published. Nobody here has run it

Wow Debugging

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.

Iron Law

No fix before root cause. Reproduce, locate the failing stage, compare with a working example, then make one minimal change.

Phase 1: Reproduce

  • Capture the exact command, test, endpoint, event, or configuration that fails.
  • Run the narrowest command that reproduces it.
  • Read the full error, stack trace, emitted logs, and failing assertion.
  • Check recent diffs before proposing a fix.

Phase 2: Locate the Stage

SymptomFirst Checks
Command not handledCommand route, aggregate metadata, @AggregateRoot, @OnCommand, KSP output, command bus.
Aggregate state wrongEvent payload, @OnSourcing, missing sourcing handler, snapshot/replay path.
Saga not triggeredEvent type, @StatelessSaga, @OnEvent, filter condition, bus subscription, @Retry policy.
Projection not updatedProcessor annotation, event/state-event type, repository call, retry policy.
Wait plan hangsWait command id, stage, context name, processor/function names, propagated headers.
Query returns wrong dataQuery DSL condition, deletion guard, tenant/owner filters, projection fields, backend converter.
Configuration ignored@ConfigurationProperties prefix, feature capability, conditional annotations, active profile.
Test fails unexpectedlyTest fixture state, owner/tenant id, fork/ref checkpoint, expected event order.

Phase 3: Gather Evidence

Use source-first searches before edits:

rg -n "@AggregateRoot|@OnCommand|@OnSourcing|@StatelessSaga|@ProjectionProcessor" . -g "*.kt"
rg -n "CommandWait|CommandWait.chain|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.

Phase 4: Test the Hypothesis

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.
  • Unit tests for projection or configuration behavior.
  • Focused integration tests only when the failure crosses infrastructure boundaries.

Red Flags

  • Changing annotations without checking generated/discovered metadata.
  • Fixing a projection when the event was never emitted.
  • Fixing wait plan names before checking command ids.
  • Adding retries before understanding the original failure.
  • Updating tests to match broken state.
  • Trying multiple fixes in one patch.

Completion Evidence

Finish with the exact reproducer and verification command. If the issue is not fully fixed, report the current failing stage and the remaining unknowns.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.