/major-ai-skills:temporalfrom major-ai-skills
Author deterministic Temporal workflows and idempotent activities; deploy with versioning/replay tests; configure mTLS auth; understand visibility backup limits and saga compensation—not in-memory orchestration.
Ships in major-ai-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Temporal provides durable execution: workflow state is event-sourced; workers replay history to recover. Workflow code must be deterministic; Activities hold all I/O (HTTP, DB, messaging). The server (Frontend/History/Matching) persists to a primary database; Visibility is a separate search index (eventually consistent).
Client -> Temporal Server (gRPC, auth/mTLS)
-> History (event log) -> Persistence (Postgres/MySQL/Cassandra)
-> Matching (task queues)
Workers (poll task queues)
-> Workflow sandbox (replay)
-> Activities (retries, timeouts, heartbeats)
Use when
Do not use when
@airflow task)Date.now(), Math.random(), or undisciplined UUIDs in workflow code—use SDK workflow.now(), workflow.uuid4(), etc. All I/O in activities.start_to_close_timeout; retries with backoff; heartbeats for long activities; activities must be idempotent (retries are normal).workflow.patched() or Worker Versioning before changing command order; run replay tests on representative histories before prod deploy (safe deployments).import { proxyActivities, defineQuery, setHandler } from "@temporalio/workflow";
import type * as activities from "./activities";
const { chargePayment, reserveInventory, cancelPayment, releaseInventory } =
proxyActivities<typeof activities>({
startToCloseTimeout: "30 seconds",
retry: { initialInterval: "1s", backoffCoefficient: 2, maximumAttempts: 5 },
});
export const orderStatusQuery = defineQuery<string>("orderStatus");
export async function processOrderWorkflow(input: OrderInput): Promise<string> {
const compensations: Array<() => Promise<void>> = [];
let status = "INITIALIZING";
setHandler(orderStatusQuery, () => status);
try {
status = "CHARGING";
await chargePayment(input.customerId, input.amount);
compensations.push(() => cancelPayment(input.customerId, input.amount));
status = "RESERVING";
await reserveInventory(input.sku, 1);
compensations.push(() => releaseInventory(input.sku, 1));
status = "COMPLETED";
return `Order ${input.orderId} processed`;
} catch (err) {
status = "ROLLING_BACK";
for (const compensate of compensations.reverse()) {
try { await compensate(); } catch { /* alert + manual runbook */ }
}
status = "FAILED";
throw err;
}
}
export async function chargePayment(customerId: string, amount: number) {
await payments.charge({ idempotencyKey: workflowInfo().workflowId, customerId, amount });
}
temporal workflow start --task-queue order-processing-queue \
--type processOrderWorkflow --workflow-id order-ord-9901 \
--input '{"orderId":"ord-9901","customerId":"cust-42","amount":1500,"sku":"WIDGET-01"}'
temporal workflow query --workflow-id order-ord-9901 --name orderStatus
| Failure signature | Root cause | Diagnostic & fix |
|---|---|---|
NonDeterminismError on deploy | Workflow code changed without patch | Roll back worker; add patched(); replay test |
| Activity schedule-to-start timeout | No workers / wrong queue | Verify task queue; scale workers |
| History size limit | Unbounded loop/events | continueAsNew(); batch signals |
| Duplicate charges | Non-idempotent activity | Idempotency keys; dedupe table |
| Visibility stale vs history | Async index | Use DescribeWorkflowExecution for truth |
| Restore search broken | ES not restored | Backup visibility store; accept stale closed WF |
temporal_workflow_task_execution_failed, task lag, and worker restarts.@postgresql — common persistence backend@kafka — event ingestion triggering workflows@ai-human-handoff-contract — human steps via signalsMANDATORY: No non-deterministic APIs in workflow functions. Every activity has timeouts and idempotent side effects. Run replay validation before shipping workflow changes. Do not use Visibility queries as strongly consistent workflow state. Backup plan must include visibility if search-dependent ops exist.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub alivirgo/major-ai-skills --plugin major-ai-skills412 skills in this plugin
/3d-slicerAutomate 3D Slicer research workflows with MRML, VTK/ITK, DICOM data, and Segment Editor. Use for software workflows, not clinical interpretation./abbreviated-git-statusInspect Git branch, staging, and working-tree changes with short or porcelain status output when a compact repository check is needed./ableton-liveAutomate Ableton Live sessions with Python MIDI Remote Scripts, Max for Live, AbletonOSC, and Link synchronization.Other plugins' skills for the same job
/act-as-a-personal-tutorExplain a subject step by step, assess prior knowledge, and use short exercises to check understanding before advancing.