wshobson avatar

Workflow Orchestration Patterns

This covers the architectural decisions you'll face when building distributed workflows with Temporal. It breaks down the critical workflow vs activity boundary (orchestration logic stays in workflows, external calls go in activities), walks through saga patterns for distributed transactions, and explains Temporal's determinism constraints that trip up most newcomers. The examples focus on real patterns like entity workflows for shopping carts and compensation logic for payment flows. What I appreciate here is the concrete guidance on when NOT to use workflow orchestration. Too many teams reach for it when a simple API call would suffice.

skills.sh installs
12.5K
GitHub stars
42.4K
last updated
Aug 21, 2026

Install

$ npx -y skills add wshobson/agents --skill workflow-orchestration-patterns --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/wshobson/agents
Categories
Automation & Workflows, Design & UI/UX

More from wshobson/agents

All 174
1github avatarproject-workflow-analysis-blueprint-generatorgithub/awesome-copilotComprehensive technology-agnostic prompt generator for documenting end-to-end application workflows. Automatically detects project architecture patterns, techno9.4Kskills.sh installs
2sickn33 avatarbrowser-automationsickn33/antigravity-awesome-skillsbrowser automation5.8Kskills.sh installs
3ziniao-open avatarziniao-workflow-batch-accountziniao-open/skills批量账号授权工作流:编排 account list + staff list + api 调用完成批量授权店铺给员工。适用于新员工入职时批量分配店铺权限。5Kskills.sh installs
4hubspot avatarworkflow-automationhubspot/agent-cli-skillsList, inspect, create, update, and delete HubSpot workflows (v4 flows API) from the `hubspot` agent CLI, not the `hs` developer CLI.1.9Kskills.sh installs
5ruvnet avatarworkflow-automationruvnet/rufloWorkflow creation, execution, and template management. Automates complex multi-step processes with agent coordination. Use when: automating processes, creating 1.3Kskills.sh installs
6aradotso avatarmarketing-pipeline-share-automationaradotso/marketing-skillsmarketing pipeline share automation713skills.sh installs