Workflow Orchestration Patterns skill for Claude

Design durable workflows with Temporal for distributed systems. Covers workflow vs activity separation, saga patterns, state management, and determinism constraints.

When Claude uses it

Use when building long-running processes, distributed transactions, or microservice orchestration.

Workflow Orchestration Patterns SKILL.md

The full skill file from wshobson/agents (MIT).

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

How to install Workflow Orchestration Patterns

Claude Code

Copy the skill into your personal skills folder (or into .claude/skills/ inside a project):

npx degit wshobson/agents/plugins/backend-development/skills/workflow-orchestration-patterns#main ~/.claude/skills/workflow-orchestration-patterns

Codex

npx degit wshobson/agents/plugins/backend-development/skills/workflow-orchestration-patterns#main ~/.codex/skills/workflow-orchestration-patterns

Claude.ai and Claude Desktop

Download the skill folder from GitHub, zip it, and upload it under Settings → Capabilities → Skills.

Frequently asked questions

+What does the Workflow Orchestration Patterns skill do?

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.

+How do I install Workflow Orchestration Patterns in Claude Code?

Copy the skill folder into ~/.claude/skills/workflow-orchestration-patterns, for example with "npx degit wshobson/agents/plugins/backend-development/skills/workflow-orchestration-patterns#main ~/.claude/skills/workflow-orchestration-patterns". Claude Code loads it automatically and uses it when a task matches.

+Does Workflow Orchestration Patterns work with ChatGPT or Codex?

Yes. Workflow Orchestration Patterns uses the open SKILL.md format. In Codex, put the folder in ~/.codex/skills/workflow-orchestration-patterns. In Claude.ai, zip the folder and upload it under Settings → Capabilities → Skills.

+Is Workflow Orchestration Patterns free?

Workflow Orchestration Patterns is published on GitHub by wshobson under the MIT license, which allows free use.

Related ai agents & skills skills

  1. Grill Me

    A relentless interview to sharpen a plan or design.

    mattpocock/skills★ 327k
  2. Skill Creator

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    anthropics/skills★ 197k
  3. Caveman

    Terse caveman voice: answer first, fluff gone, every technical fact kept.

    JuliusBrussee/caveman★ 121k
  4. Agent Memory

    Use when an agent keeps relearning the same correction, CLAUDE.md has grown unreadable, or you need to trace where a remembered rule came…

    alirezarezvani/claude-skills★ 30k
  5. Caveman

    Terse mode: drop filler, articles and pleasantries, keep technical accuracy, about 75% fewer tokens, and stay in it.

    alirezarezvani/claude-skills★ 30k
  6. Cinematic Shot Prompting

    Use when creating camera movement, cinematic angles, or motion prompts for AI video generators like Runway Gen-3, Kling, and Luma.

    alirezarezvani/claude-skills★ 30k
  7. Claude Coach

    Use when the user wants to get better at using Claude ('coach me', 'teach me Claude tricks', 'make me a power user').

    alirezarezvani/claude-skills★ 30k
  8. Fable Goal

    Use when the user wants a /goal prompt rather than the build itself ('/fable-goal', 'turn this into a goal prompt', 'write the prompt that…

    alirezarezvani/claude-skills★ 30k
  9. Grill Me

    Interview the user relentlessly about a plan or design until reaching shared understanding, resolving each branch of the decision tree.

    alirezarezvani/claude-skills★ 30k

See all ai agents & skills skills →

More skills from wshobson

  1. Workflow Patterns

    Use this skill when implementing tasks according to Conductor's TDD workflow, handling phase checkpoints, managing git commits for tasks,…

    wshobson/agents★ 43k
  2. Responsive Design

    Implement modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first breakpoint strategies.

    wshobson/agents★ 43k
  3. Scan

    Scans the codebase to generate project-doc.md and AGENTS.md. Use when bootstrapping a new agent-driven repo, refreshing project…

    wshobson/agents★ 43k

All skills by wshobson →

Give your whole team an AI agent with skills

Cody runs managed AI agents your team can message in Slack, Teams, WhatsApp and the web, with 50+ business integrations, scheduled tasks and memory. No terminal required.