workflow-orchestration-patterns

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

4|Updated Mar 3, 2026
One-click install
npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill workflow-orchestration-patterns-ai-foundry-core
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: workflow-orchestration-patterns
Source: https://github.com/AI-Foundry-Core/ril-agents/tree/main/plugins/backend-development/skills/workflow-orchestration-patterns
Command: npx skills add https://github.com/AI-Foundry-Core/ril-agents --skill workflow-orchestration-patterns-ai-foundry-core

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design durable, deterministic workflow architectures using Temporal for distributed systems.

Core Features & Use Cases

  • Saga Pattern with compensation for distributed transactions
  • Entity Workflows for lifecycle-managed domain entities
  • Fan-Out/Fan-In for parallel task orchestration
  • Async Callback patterns for human-in-the-loop processes
  • Automatic state preservation and deterministic execution guarantees

Quick Start

Configure Temporal workflows by selecting a pattern (Saga, Entity, or Fan-Out) and implementing it with deterministic activities.

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 compensation logic in Temporal workflows?

Saga pattern transactions in Temporal workflows are implemented by defining deterministic activities with corresponding compensation logic, allowing long-running distributed processes to roll back safely upon partial failures. This Skill provides design patterns for orchestrating these compensated distributed transactions.

How do I ensure deterministic execution and state preservation in distributed microservice orchestration?

Deterministic execution and state preservation in microservice orchestration are achieved by structuring long-running processes with Temporal workflows, which automatically persist state and guarantee replayable execution. This Skill guides the architectural design for these durable, deterministic workflows.

What is the best way to coordinate parallel tasks and fan-out fan-in processes in distributed systems?

The best way to coordinate parallel tasks in distributed systems is using Temporal's Fan-Out/Fan-In workflow design patterns, which orchestrate concurrent task execution and aggregate results deterministically. This Skill provides the architectural templates for parallel task coordination.

Do I need idempotent activities for long-running human-in-the-loop workflow orchestration?

Idempotent activities are required for long-running human-in-the-loop workflow orchestration to safely handle retries and async callbacks without duplicating side effects. This Skill ensures your async callback patterns and activities meet idempotency requirements.

Can I manage domain entity lifecycles using durable workflow patterns?

Managing domain entity lifecycles is supported through Entity Workflows, which provide durable, state-preserved orchestration for domain entities throughout their entire lifecycle. This Skill applies these patterns to lifecycle-managed domain entities.