workflow-orchestration-patterns

Design durable, deterministic Temporal workflows with saga and fan-out patterns.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps engineers design durable, deterministic workflows for distributed systems using Temporal. It encapsulates orchestration logic, state management, and failure recovery, reducing manual coordination and ensuring reliable long-running processes.

Core Features & Use Cases

  • Saga pattern with compensation for distributed transactions
  • Entity-oriented workflows representing long-lived domain entities
  • Fan-out/fan-in for parallel task execution
  • Async callback pattern for human approval or external events
  • Emphasis on determinism, idempotency, and automatic state preservation
  • Use cases include order processing, inventory management, provisioning, and business workflows that require reliable retries and compensation
  • Use Case Example: A multi-step order fulfillment that must roll back inventory and payments on failure

Quick Start

Use the Temporal-based approach to model a multi-step order workflow that reserves inventory, charges payment, and fulfills the order with compensating actions on failure.

Frequently Asked Questions about workflow-orchestration-patterns

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

FAQPage Schema
How do I implement saga pattern transactions with automatic compensation in distributed systems?

You model saga transactions as durable Temporal workflows that execute sequential steps and trigger rollback compensating actions automatically on failure. This ensures reliable distributed transactions across microservices.

How does Temporal enforce workflow determinism and idempotency for long-running processes?

Temporal enforces workflow determinism by requiring code to avoid non-deterministic calls, preserving state automatically, and combining idempotency patterns to safely retry failed operations without duplicate side effects in long-running processes.

What is the best way to coordinate parallel fan-out fan-in tasks across microservices?

The best way to coordinate parallel fan-out fan-in tasks is using Temporal workflows to execute concurrent activities across microservices and aggregate their results. This pattern handles parallel task execution reliably with automatic state preservation.

How do I handle async callbacks for human approval in Temporal workflows?

Async callbacks for human approval are handled by durable Temporal workflows that pause execution and wait for external events. The workflow resumes automatically once the callback signal is received, ensuring robust long-running process coordination.

Do I need prior Temporal knowledge to design entity-oriented workflows for long-lived domain entities?

Yes, you need prior Temporal knowledge and a configured Temporal environment to design entity-oriented workflows. This Skill models long-lived domain entities but requires understanding of determinism, idempotency, and Temporal setup.

When should I not use durable workflows for microservices orchestration?

You should avoid durable workflows for simple synchronous microservices orchestration where state preservation and compensation patterns add unnecessary overhead. Temporal workflows are best suited for complex, long-running processes requiring robust retries.