agentsclimarketplace

Saga pattern visualization pattern

Skill kjuhwa/skills-hub/skills/design/saga-pattern-visualization-pattern

Self-correcting knowledge corpus for Claude Code — 9 stable shape clusters, bias-correction pipeline baked into contribution flow. 47 papers, 45 techniques, 1.1k skills.

Install
npx -y skills add kjuhwa/skills-hub --skill saga-pattern-visualization-pattern

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

  • 0 stars0 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

Visualize saga transaction flows with step states, compensation paths, and forward/backward progress indicators

SKILL.md

2.1 KB, 372 tokens by cl100k_base, as published. Nobody here has run it

saga-pattern-visualization-pattern

Saga pattern visualizations must render two parallel timelines: the forward execution path (T1→T2→T3→Tn) and the compensation path (C3→C2→C1) that unwinds completed steps in reverse order when a later step fails. Each step node should expose four visual states — Pending (gray/dashed), Executing (pulsing blue), Completed (solid green), Failed (red), Compensating (amber, reverse arrow), Compensated (strikethrough green) — so viewers can distinguish "never ran" from "ran and rolled back." Use directed arrows with distinct stroke styles: solid for forward transitions, dashed reversed arrows for compensation hops, and dotted for choreography events flowing through a broker.

For orchestrator-flow visualizations, center a coordinator node with radial fan-out to participant services; annotate each edge with the command name (e.g., ReserveInventory) and response type (Confirmed/Rejected). For choreography-swarm visualizations, draw participants on a ring with the event bus as a central hub, and animate event envelopes traveling between them — this makes the absence of a central coordinator legible. For compensation-ledger visualizations, render a append-only ledger strip below the step timeline where each entry shows {sagaId, stepId, direction: forward|compensate, timestamp}, letting viewers scrub through ledger state to replay recovery.

Always surface the saga-level invariant panel: current saga state (Running/Compensating/Completed/Aborted), pivot step (the step after which compensation is no longer possible for non-compensatable actions), and a consistency gauge showing how many participants have acknowledged the current phase. Color-code by saga instance ID with stable hashing so concurrent sagas remain distinguishable when overlaid.

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.