temporal-workflow

Scaffold Java Temporal workflows with SAGA compensation and YAML state machines.

13|4|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/OmexIT/claude-skills-pack --skill temporal-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: temporal-workflow
Source: https://github.com/OmexIT/claude-skills-pack/tree/main/skills/temporal-workflow
Command: npx skills add https://github.com/OmexIT/claude-skills-pack --skill temporal-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Design and scaffold production-ready Temporal workflows in Java with SAGA compensation, config-driven state machines, and Spring Boot integration to unify long-running orchestrations and reliable error recovery.

Core Features & Use Cases

  • Deterministic workflow design with strict separation of workflow and activities to ensure replay safety.
  • SAGA-style compensation chains with pre-registered compensations and robust retry policies.
  • Config-driven state machines defined in YAML to drive transitions, signals, and queries.
  • Spring Boot integration for worker wiring, Spring beans for activities, and test harness support (TestWorkflowEnvironment).

Quick Start

Provide a workflow name and optional spec path to generate a production-grade Temporal workflow scaffold that includes compensation, state machine config, and Spring Boot wiring.

Frequently Asked Questions about temporal-workflow

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

FAQPage Schema
How do I implement SAGA compensation in Java workflows to handle long-running business processes?

SAGA compensation in Java workflows is implemented by registering compensation steps before executing forward activities, ensuring reliable error recovery for long-running business processes. This approach uses deterministic replay to guarantee compensations execute correctly upon failures.

What's the best way to separate Temporal workflows and activities in Spring Boot to ensure replay safety?

Separating Temporal workflows and activities requires keeping workflow code strictly deterministic by delegating external calls to activity interfaces. Spring Boot integration wires activities as beans, allowing workflow logic to remain isolated and safe for replay.

Can I drive workflow state machine transitions using YAML configuration with Temporal?

Workflow state machine transitions can be driven using YAML configuration to define states, transitions, signals, and queries. This config-driven approach externalizes state logic from Java code, enabling dynamic updates and clearer visibility into multi-step orchestration flows.

How do I test Temporal workflows in Java using TestWorkflowEnvironment?

Testing Temporal workflows in Java uses TestWorkflowEnvironment to simulate time-skipping and activity mocking for deterministic workflow validation. This test harness verifies SAGA compensation chains, retry policies, and signal handling without waiting for real time to pass.

Does Temporal support signals and queries for interacting with running workflow instances in Java?

Temporal supports signals and queries for interacting with running workflow instances in Java. Signals inject external state changes into active workflows, while queries retrieve current workflow state without affecting replay, enabling responsive communication with long-running processes.

When do I need durable execution and multiple retry profiles for multi-step orchestrations?

Durable execution and multiple retry profiles are needed for multi-step orchestrations involving unreliable external services or long-running business processes. They ensure each step automatically retries with tailored backoff policies and recovers state seamlessly after process restarts.