saga-orchestration

Coordinate distributed transactions across microservices with saga patterns and compensation logic.

1|Updated Jan 15, 2026
One-click install
npx skills add https://github.com/mokbhai/claude --skill saga-orchestration-mokbhai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: saga-orchestration
Source: https://github.com/mokbhai/claude/tree/main/skills/saga-orchestration
Command: npx skills add https://github.com/mokbhai/claude --skill saga-orchestration-mokbhai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Coordinate distributed transactions across microservices to manage long-running workflows with fail-safe compensations.

Core Features & Use Cases

  • Orchestrated and choreographed sagas for cross-service coordination
  • Automatic compensation and rollback for failed steps
  • Support for long-running, event-driven workflows across services
  • Clear visibility of saga state and step progress for monitoring and retries

Quick Start

Instantiate a Saga orchestrator and invoke start with the initial business data to begin a saga, then handle step completions and failures via the defined actions.

Frequently Asked Questions about saga-orchestration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I coordinate distributed transactions across microservices when steps fail?

You coordinate distributed transactions using the saga pattern to manage multi-step workflows. It provides orchestrator templates and compensation logic that automatically execute rollback actions across services if a step fails, ensuring data consistency in an event-driven environment.

What is the difference between orchestrated and choreographed sagas for event-driven workflows?

Orchestrated sagas use a central coordinator to command each step, while choreographed sagas rely on services reacting to events independently. This skill supports both patterns for cross-service coordination, allowing you to choose based on your workflow complexity and visibility requirements.

How do I handle rollback and compensation logic for a failed multi-step workflow?

You handle rollback by defining compensating actions for each step in the saga. When a failure occurs, the orchestrator automatically triggers these compensation actions in reverse order, propagates errors, and tracks state to ensure the distributed transaction rolls back safely.

Can I use saga orchestration for long-running workflows with timeout handling?

Yes, saga orchestration is designed for long-running, event-driven workflows. It includes built-in timeout handling and state tracking capabilities, allowing you to monitor step progress, retry failed operations, and maintain visibility across distributed services over extended periods.

What is the best way to start a saga for an order processing workflow?

The best way to start is by instantiating a saga orchestrator and invoking the start method with your initial business data. You then handle step completions and failures via the defined actions, letting the orchestrator manage the order processing workflow and compensations automatically.