wshobson avatar

Saga Orchestration

Handles distributed transaction patterns when you can't use two-phase commit across microservices. Generates orchestrator implementations that coordinate multiple services with proper compensation logic, timeout handling, and failure recovery. Also covers choreography patterns where services react to each other's events without a central coordinator. The templates include concrete order fulfillment workflows spanning inventory, payment, and shipping services. Good for complex business processes that need to roll back partially completed work when something fails downstream. The compensation logic is built to be idempotent and includes monitoring for stuck saga states.

skills.sh installs
11.1K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill saga-orchestration --agent claude-code

Installs into .claude/skills of the current project.

Files

Saga Orchestration

Patterns for managing distributed transactions and long-running business processes without two-phase commit.

Inputs and Outputs

What you provide:

  • Service boundaries and ownership (which service owns which step)
  • Transaction requirements (which steps must be atomic, which can be eventual)
  • Failure modes for each step (transient vs. permanent, retry policy)
  • SLA requirements per step (informs timeout configuration)
  • Existing event/messaging infrastructure (Kafka, RabbitMQ, SQS, etc.)

What this skill produces:

  • Saga definition with ordered steps, action commands, and compensation commands
  • Orchestrator or choreography implementation for your chosen pattern
  • Compensation logic for each participant service (idempotent, always-succeeds)
  • Step timeout configuration with per-step deadlines
  • Monitoring setup: state machine metrics, stuck saga detection, DLQ recovery

When to Use This Skill

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
Debugging, Automation & Workflows, Finance & Trading

More from wshobson/agents

All 174

Recommended

More Debugging
1wshobson avatarsimilarity-search-patternswshobson/agentsImplement efficient similarity search with vector databases. Use when building semantic search, implementing nearest neighbor queries, or optimizing retrieval p11Kskills.sh installs
2wshobson avatarvector-index-tuningwshobson/agentsOptimize vector index performance for latency, recall, and memory. Use when tuning HNSW parameters, selecting quantization strategies, or scaling vector search 11Kskills.sh installs
3ljagiello avatarctf-reverseljagiello/ctf-skillsProvides reverse engineering techniques for CTF challenges. Use when the main job is to understand how a compiled, obfuscated, packed, or virtualized target wor10.9Kskills.sh installs
4sickn33 avatartypescript-expertsickn33/antigravity-awesome-skillsAdvanced TypeScript expertise covering type systems, performance optimization, monorepo patterns, and modern tooling.10.4Kskills.sh installs
5199-biotechnologies avatardeep-research199-biotechnologies/claude-deep-research-skillUse when the user needs multi-source research with citation tracking, evidence persistence, and structured report generation. Triggers on "deep research", "comp10.4Kskills.sh installs
6nomadamas avatarrhwp-advancednomadamas/k-skillDebug HWP layout, dump document IR, compare versions, extract thumbnails, and unlock read-only HWPs with the upstream rhwp Rust CLI (export-svg/dump/dump-pages/10.3Kskills.sh installs