workflow-orchestration-patterns — Claude Code skill: what it does
This skill helps design long-running Temporal workflows with clear workflow and activity boundaries, state handling, and recovery rules for distributed systems.
/plugin marketplace add wshobson/agents
/plugin install backend-development@claude-code-workflowsWhat workflow-orchestration-patterns does
The skill covers workflow orchestration with Temporal. It explains how a workflow coordinates steps while activities perform external calls, then applies that split to multi-step processes, distributed transactions, and microservice orchestration. It also covers saga patterns, state management, and determinism constraints.
The guidance focuses on failure recovery and retries. Activities should be idempotent, use timeouts, and report progress with heartbeats when tasks run for a long time. Workflow code should use workflow.now(), avoid direct external API calls, and keep non-deterministic logic out. Further worked patterns are stored in references/details.md.
Install it when a Temporal project needs persisted state or recovery from the last successful step. It is a poor fit for simple CRUD, stateless request/response, real-time streaming, or pure data-processing pipelines.
What it helps with
- design a multi-step process across services
- separate orchestration logic from external calls
- resume a workflow after a failed step
- find non-deterministic workflow code
- configure retries, timeouts, and heartbeats for activities
Example prompts for the agent
- Design a Temporal workflow for a booking process that spans several services.
- Review this workflow for non-deterministic logic and direct external API calls.
- Split this code into a workflow and idempotent activities with timeouts and retryable error handling.
How to install workflow-orchestration-patterns
1Plugin marketplace
/plugin marketplace add wshobson/agents/plugin install backend-development@claude-code-workflowsThis installs the whole backend-development plugin with all its skills
2Skills CLI (Vercel)
npx skills add wshobson/agents --skill workflow-orchestration-patterns -a claude-code3Manually: put the files in place
~/.claude/skills/workflow-orchestration-patterns/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/workflow-orchestration-patterns/
1Skills CLI (Vercel)
npx skills add wshobson/agents --skill workflow-orchestration-patterns -a codex2Manually: put the files in place
.agents/skills/workflow-orchestration-patterns/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add wshobson/agents --skill workflow-orchestration-patterns -a cursor2Manually: put the files in place
.cursor/skills/workflow-orchestration-patterns/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install wshobson/agents workflow-orchestration-patterns2Manually: put the files in place
.github/skills/workflow-orchestration-patterns/SKILL.mdPlatform CLI
gemini skills install https://github.com/wshobson/agents --path plugins/backend-development/skills/workflow-orchestration-patternsManually: put the files in place
.devin/skills/workflow-orchestration-patterns/SKILL.mdThe legacy .windsurf/skills/ path still works
Claude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set213
The whole set →Similar
Questions about workflow-orchestration-patterns
How do I install workflow-orchestration-patterns in Claude Code?
Run npx skills add wshobson/agents --skill workflow-orchestration-patterns -a claude-code. The skill is placed at ~/.claude/skills/workflow-orchestration-patterns/SKILL.md.
What does workflow-orchestration-patterns do?
It guides Temporal workflow design for long-running processes, distributed transactions, and microservice orchestration. The material covers workflow and activity boundaries, state persistence, determinism, and failure recovery.
When should I avoid workflow orchestration?
The material points to direct API calls for simple CRUD and stateless request/response, Kafka or event processors for real-time streaming, and batch processing tools for pure data pipelines.
Source text
SKILL.md · MIT
--- name: workflow-orchestration-patterns description: Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints. Use when building long-running processes, distributed transactions, or microservice orchestration. --- # Workflow Orchestration Patterns Master workflow orchestration architecture with Temporal, covering fundamental design decisions, resilience patterns, and best practices for building reliable distributed systems. ## When to Use Workflow Orchestration ### Ideal Use Cases (Source: docs.temporal.io) - **Multi-step processes** spanning machines/services/databases - **Distributed transactions** requiring all-or-nothing semantics - **Long-running workflows** (hours to years) with automatic state persistence - **Failure recovery** that must resume from last successful step - **Business processes**: bookings, orders, campaigns, approvals - **Entity lifecycle management**: inventory tracking, account management, cart workflows - **Infrastructure automation**: CI/CD pipelines, provisioning, deployments - **Human-in-the-loop** systems requiring timeouts and escalations ### When NOT to Use - Simple CRUD operations (use direct API calls) - Pure data processing pipelines (use Airflow, batch processing) - Stateless request/response (use standard APIs) - Real-time streaming (use Kafka, event processors) ## Detailed patterns and worked examples Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient. ## Best Practices ### Workflow Design 1. **Keep workflows focused** - Single responsibility per workflow 2. **Small workflows** - Use child workflows for scalability 3. **Clear boundaries** - Workflow orchestrates, activities execute 4. **Test locally** - Use time-skipping test environment ### Activity Design 1. **Idempotent operations** - Safe to retry 2. **Short-lived** - Seconds to minutes, not hours 3. **Timeout configuration** - Always set timeouts 4. **Heartbeat for long tasks** - Report progress 5. **Error handling** - Distinguish retryable vs non-retryable ### Common Pitfalls **Workflow Violations**: - Using `datetime.now()` instead of `workflow.now()` - Threading or async operations in workflow code - Calling external APIs directly from workflow - Non-deterministic logic in workflows **Activity Mistakes**: - Non-idempotent operations (can't handle retries) - Missing timeouts (activities run forever) - No error classification (retry validation errors) - Ignoring payload limits (2MB per argument) ### Operational Considerations **Monitoring**: - Workflow execution duration - Activity failure rates - Retry attempts and backoff - Pending workflow counts **Scalability**: - Horizontal scaling with workers - Task queue partitioning - Child workflow decomposition - Activity batching when appropriate ## Additional Resources **Official Documentation**: - Temporal Core Concepts: docs.temporal.io/workflows - Workflow Patterns: docs.temporal.io/evaluate/use-cases-design-patterns - Best Practices: docs.temporal.io/develop/best-practices - Saga Pattern: temporal.io/blog/saga-pattern-made-easy **Key Principles**: 1. Workflows = orchestration, Activities = external calls 2. Determinism is non-negotiable for workflows 3. Idempotency is critical for activities 4. State preservation is automatic 5. Design for failure and recovery
© Seth Hobson · MIT · wshobson/agents