orchestration-patterns

Plan and coordinate multi-phase tasks with phase gates, checkpoints, and state machines.

16|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/JCE-Joshhh77/JCE-Opencode-Tools --skill orchestration-patterns-jce-joshhh77
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orchestration-patterns
Source: https://github.com/JCE-Joshhh77/JCE-Opencode-Tools/tree/main/config/skills/orchestration-patterns
Command: npx skills add https://github.com/JCE-Joshhh77/JCE-Opencode-Tools --skill orchestration-patterns-jce-joshhh77

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Orchestration patterns help manage tasks that unfold across many steps, files, and sessions by enforcing clear phase transitions, checkpoints, and safe rollback.

Core Features & Use Cases

  • Workflow State Machine: model tasks as explicit phases with entry conditions, work, and exit gates.
  • Checkpoints & Cross-Session Resume: record progress to resume incomplete tasks across sessions.
  • DAG-Based Parallel Execution: run independent phases in parallel and converge when ready.
  • Saga Pattern: provide compensating actions for reversible steps.
  • Phase Gate Checklist: ensure evidence, rollback, and safety gates before advancing.

Quick Start

Load this skill to model a complex task as phases with gates and checkpoints, and execute parallel steps where possible while enforcing rollback on gate failures.

Frequently Asked Questions about orchestration-patterns

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

FAQPage Schema
How do I coordinate complex multi-phase workflows with safe rollback across sessions?

Multi-phase workflows are coordinated using explicit state machine phases, entry conditions, and exit gates. Cross-session resume is handled via recorded checkpoints, while saga-style compensating actions ensure safe rollback when gate safety checks fail.

What is the saga pattern for reversible workflow steps and when do I need it?

The saga pattern provides compensating actions for reversible steps within a multi-phase workflow. You need it for tasks spanning five or more steps with multiple files or sessions, ensuring auditable transitions and safe rollback when a phase fails.

How do I run parallel execution phases in a state machine and converge the results?

Parallel execution phases run independently using DAG-based parallelism, converging automatically when all dependent phases complete. The state machine models each phase with explicit entry conditions, work, and exit gates to ensure safe progression.

How do I implement phase gate checklists to ensure safe progression in a workflow?

Phase gate checklists enforce evidence, rollback readiness, and safety gates before advancing to the next phase. This ensures tasks spanning multiple files or sessions undergo auditable transitions and only progress when explicit exit conditions are satisfied.

Can I use checkpoints to resume incomplete tasks across multiple sessions?

Checkpoints record workflow progress to resume incomplete tasks across multiple sessions. This cross-session resume capability ensures that complex tasks spanning multiple files can safely stop and restart without losing their state machine progression.

When should I not use orchestration patterns for workflow management?

Orchestration patterns are unnecessary for simple, linear tasks under five steps or single-session operations. They are designed for complex projects requiring DAG-based parallelism, saga-style compensations, and auditable transitions across multiple files and sessions.