saga-orchestration

Installation
Summary

Orchestrate distributed transactions and long-running workflows with saga patterns for multi-service coordination.

  • Supports both orchestration (centralized coordinator) and choreography (event-driven) saga patterns with step-by-step execution and automatic compensation on failure
  • Includes base orchestrator class with saga state management (started, pending, compensating, completed, failed) and built-in step tracking with results and error handling
  • Provides ready-to-use templates for order fulfillment sagas, choreography-based workflows, and timeout-enabled orchestrators with idempotent step design
  • Handles compensating transactions automatically by executing steps in reverse order when failures occur, with correlation IDs for distributed tracing
SKILL.md

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
Related skills

More from wshobson/agents

Installs
6.1K
Repository
wshobson/agents
GitHub Stars
35.3K
First Seen
Jan 20, 2026