Tooluck logoTooluck
SKILL.md

saga-orchestration

Agent skill fromwshobson/agents

Implement saga patterns for distributed transactions and cross-aggregate workflows. Use this skill when implementing distributed transactions across microservices where 2PC is unavailable, designing compensating actions for failed order workflows that span inventory, payment, and shipping services, building event-driven saga coordinators for travel booking systems that must roll back hotel, flight, and car rental reservations atomically, or debugging stuck saga states in production where compensation steps never complete.

How to install saga-orchestration

install saga-orchestration
# install the agents pack with the skills CLI
npx skills add wshobson/agents

# or add only this skill to Claude Code: copy the folder

plugins/backend-development/skills/saga-orchestration/

# into

~/.claude/skills/saga-orchestration/ (all projects)

.claude/skills/saga-orchestration/ (one project)

plugins/backend-development/skills/saga-orchestration/SKILL.md

MITFull file
1# Saga Orchestration
2
3Patterns for managing distributed transactions and long-running business processes without two-phase commit.
4
5## Inputs and Outputs
6
7**What you provide:**
8- Service boundaries and ownership (which service owns which step)
9- Transaction requirements (which steps must be atomic, which can be eventual)
10- Failure modes for each step (transient vs. permanent, retry policy)
11- SLA requirements per step (informs timeout configuration)
12- Existing event/messaging infrastructure (Kafka, RabbitMQ, SQS, etc.)
13
14**What this skill produces:**
15- Saga definition with ordered steps, action commands, and compensation commands
16- Orchestrator or choreography implementation for your chosen pattern
17- Compensation logic for each participant service (idempotent, always-succeeds)
18- Step timeout configuration with per-step deadlines
19- Monitoring setup: state machine metrics, stuck saga detection, DLQ recovery
20
21---
22
23## When to Use This Skill
24
25- Coordinating multi-service transactions without distributed locks
26- Implementing compensating transactions for partial failures
27- Managing long-running business workflows (minutes to hours)
28- Handling failures in distributed systems where atomicity is required
29- Building order fulfillment, approval, or booking processes
30- Replacing fragile two-phase commit with async compensation
31
32---
33
34## Detailed section: Core Concepts
35
36Moved to `references/details.md`.
37
38## Detailed section: Templates
39
40Moved to `references/details.md`.
41
42## Best Practices
43…

Excerpt shown under the repository's MIT license.

More skills in agents

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates