/data-messaging-skills:temporal-configuration-validationfrom data-messaging-skills
Validates Temporal worker task queue configuration, activity timeout/retry policies, and namespace settings before production deployment. Helps diagnose stuck workflows and audit configuration for correctness.
Ships in data-messaging-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.
None: SKILL.md is the whole skill.
A Temporal workflow can be authored correctly — deterministic, with sensible activities and compensation logic as covered in temporal-durable-workflow-orchestration — and still fail in production because of configuration sitting outside the workflow code itself: a worker polling the wrong (or no) task queue, an activity timeout too tight for its real-world latency distribution, a retry policy that never gives up on a permanently failing call, or a namespace whose retention period silently discards the event history an operator needed to debug an incident. These are the kind of mistakes that pass every unit test against a mocked activity and only surface under real production load or after the first workflow needs investigating weeks later. This skill covers validating exactly that configuration surface — task queues, timeouts/retries, and namespace settings — before a Temporal-backed service goes live, as a complement to (not a replacement for) the workflow/activity authoring guidance in temporal-durable-workflow-orchestration.
temporal CLI (v2, the current temporal binary, not the older
deprecated tctl) configured against the target namespace, or
equivalent SDK-based admin calls.Confirm every task queue referenced by workflow/activity code has at least one active poller, and that the name matches exactly (case-sensitive, no incidental whitespace) between the workflow-starter code, the activity options, and the worker's registration:
temporal task-queue describe \
--task-queue order-fulfillment-tq \
--namespace production
Zero pollers listed for a task queue that workflows are actively being started against is the single most common "workflow is stuck" root cause — validate this before looking for a code-level bug in the workflow itself.
Check for task queue fan-out mistakes — a common misconfiguration
is starting a workflow on one task queue while its activities are
registered (via ActivityOptions.TaskQueue, if set) to route to a
different queue that has no workers polling it:
// if an activity's options override TaskQueue, confirm a worker
// actually polls that specific queue, not just the workflow's queue
ao := workflow.ActivityOptions{
TaskQueue: "order-fulfillment-activities-tq", // separate from the workflow's queue
StartToCloseTimeout: 30 * time.Second,
}
If activities are deliberately routed to a dedicated queue (e.g. to isolate a GPU-bound or third-party-rate-limited activity onto its own worker pool), verify a worker is registered specifically for that queue — don't assume the workflow's own worker also covers it.
Audit every activity for an explicit timeout appropriate to its real latency, treating a missing or default-only timeout as a finding, not an acceptable gap:
// FLAG: no StartToCloseTimeout set — relies entirely on the SDK/
// server default, which may not match this specific call's real
// latency profile (e.g. a call to a third-party API with its own
// multi-second p99).
ao := workflow.ActivityOptions{}
// BETTER: explicit timeout sized to the call's actual measured
// latency distribution, with headroom, not a copy-pasted default.
ao := workflow.ActivityOptions{
StartToCloseTimeout: 20 * time.Second, // p99 of the downstream call is ~8s
ScheduleToCloseTimeout: 5 * time.Minute, // total budget across retries
}
Distinguish StartToCloseTimeout (one execution attempt) from
ScheduleToCloseTimeout (the whole activity's total time budget
including all retries and queueing) — an activity with a generous
per-attempt timeout but no ScheduleToCloseTimeout can retry for an
effectively unbounded total duration if MaximumAttempts is also
unset.
Audit every retry policy for a bounded MaximumAttempts or a
sane MaximumInterval, and confirm genuinely non-retryable error
types are actually listed:
// FLAG: unbounded retries with no non-retryable error classification
// — a permanently failing call (bad request, auth failure, business
// rejection) retries indefinitely, burning worker capacity and
// delaying the workflow's own failure/compensation path.
RetryPolicy: &temporal.RetryPolicy{
InitialInterval: time.Second,
BackoffCoefficient: 2.0,
}
// BETTER
RetryPolicy: &temporal.RetryPolicy{
InitialInterval: time.Second,
BackoffCoefficient: 2.0,
MaximumInterval: time.Minute,
MaximumAttempts: 5,
NonRetryableErrorTypes: []string{"InvalidOrderError", "CardDeclinedError"},
}
Cross-check the NonRetryableErrorTypes list against the actual
error types the activity can return — an error type added to the
activity's code later but never added to this list silently starts
retrying an error that was meant to fail fast.
Validate heartbeat timeout is present for any activity expected to
run longer than a few seconds, and that it's shorter than
StartToCloseTimeout:
ao := workflow.ActivityOptions{
StartToCloseTimeout: 10 * time.Minute,
HeartbeatTimeout: 30 * time.Second, // must be < StartToCloseTimeout
}
An activity with a long StartToCloseTimeout and no
HeartbeatTimeout means a genuinely crashed/hung worker isn't
detected until the full timeout elapses — validate that any
long-running activity's code actually calls RecordHeartbeat at an
interval shorter than the configured HeartbeatTimeout, not just
that the timeout value exists.
Check the namespace's retention period against the organization's actual debugging/compliance window, before assuming the default is sufficient:
temporal operator namespace describe --namespace production
# set/update retention explicitly rather than relying on server defaults
temporal operator namespace update \
--namespace production \
--retention 30d
A retention period shorter than how long an operator might reasonably need to look back at a workflow's event history (an incident investigation, a customer support escalation) means the history is already gone by the time someone asks — validate this against a real organizational requirement, not the server's out-of-the-box default.
Validate namespace-level multi-tenancy boundaries — confirm distinct environments (staging, production) and, where relevant, distinct customer-facing tenants use separate namespaces rather than sharing one namespace distinguished only by a naming convention in workflow IDs:
temporal operator namespace create --namespace staging
temporal operator namespace create --namespace production
A shared namespace across environments means a staging load test or a buggy staging workflow can consume the same task-queue capacity, visibility store, and retention budget as production — validate that this separation actually exists rather than assuming it from naming alone.
For worker deploys, validate Build ID-based versioning (or equivalent safe-deploy configuration) is in place before assuming a rolling worker deploy is safe for in-flight workflows:
temporal task-queue update-build-ids add-new-default \
--task-queue order-fulfillment-tq \
--namespace production \
--build-id "order-fulfillment-v2.14.0"
Confirm new workflow executions pin to the new Build ID while
existing in-flight executions continue on the Build ID they started
with (or are explicitly migrated), rather than a bare rolling
deployment that lets old-code and new-code workers race to pick up
the same task queue with no compatibility guarantee — this is the
configuration-level complement to the code-level GetVersion
patching discipline in
temporal-durable-workflow-orchestration.
Run a replay test against real production history as a pre-deploy CI gate, not just unit tests against mocked activities — this is the single strongest check that a proposed code change won't break currently in-flight executions:
# fetch a sample of real, currently-running workflow histories and
# replay them against the new worker binary before it's deployed
temporal workflow show --workflow-id order-fulfillment-ORD-48213 \
--namespace production --output json > sample_history.json
// Go SDK replay test
replayer := worker.NewWorkflowReplayer()
replayer.RegisterWorkflow(OrderFulfillmentWorkflow)
err := replayer.ReplayWorkflowHistoryFromJSONFile(nil, "sample_history.json")
// a non-nil err here means this code change would break replay for
// any execution whose history looks like this sample
StartToCloseTimeout
and retry policy in code review — no activity should rely silently on
SDK/server defaults for either.StartToCloseTimeout (per attempt) and
ScheduleToCloseTimeout (total budget) deliberately, rather than only
the former, for any activity with retries enabled.NonRetryableErrorTypes lists in sync with the activity's actual
error types as part of code review — an out-of-date list is a silent
correctness regression, not a cosmetic gap.temporal operator namespace update command
that set it.Symptom: Workflows start successfully (visible via temporal workflow list) but never progress past their first activity, with no
error surfaced anywhere.
Fix: Run temporal task-queue describe --task-queue <queue> and
check the poller count — zero pollers means no worker is actually
processing this queue's tasks, most often from a worker deployment
pointed at the wrong task queue name or a worker that crashed on
startup without anyone noticing. Confirm the exact task queue string
matches between workflow start options, activity options, and worker
registration.
Symptom: An activity that calls a flaky third-party API retries
for hours, and the workflow the on-call team actually cares about
never reaches its failure/compensation path.
Fix: No MaximumAttempts or ScheduleToCloseTimeout bounds the
retry policy's total duration. Add an explicit bound (step 3-4) so the
activity fails and hands control back to the workflow's own
compensation logic within a reasonable, known time budget instead of
retrying indefinitely.
Symptom: A workflow's activity is repeatedly killed and retried
even though the downstream call it's waiting on is still making real
progress (e.g. a large file upload).
Fix: HeartbeatTimeout is unset, or the activity code never calls
RecordHeartbeat, so Temporal has no signal to distinguish "the
worker died" from "this is just slow." Add heartbeating inside the
activity at an interval comfortably shorter than the configured
HeartbeatTimeout (step 5).
Symptom: An operator investigating an incident from a month ago
finds the relevant workflow's event history is simply gone.
Fix: The namespace's retention period is shorter than the
organization's actual investigation/compliance window. Check
temporal operator namespace describe and set retention (step 6)
from an explicit, agreed requirement rather than the server's default.
Symptom: After a worker deploy that changed workflow code, a batch of in-flight executions all fail simultaneously with nondeterminism errors. Fix: The deploy wasn't validated with a replay test against real in-flight history first (step 9), and/or Build ID versioning (step 8) wasn't used to separate old and new code paths. Add a replay-test CI gate using sampled production histories before merging any workflow code change, and use Build ID-based worker versioning for any workflow type with meaningful in-flight volume across deploys.
Scenario: Pre-production readiness review for the
order-fulfillment workflow from
temporal-durable-workflow-orchestration
before it goes live for real customer orders.
Task queue check:
$ temporal task-queue describe --task-queue order-fulfillment-tq --namespace production
Pollers: 3 workers, all reporting healthy heartbeats within the last 10s
Confirmed against the worker deployment's Helm values, which set
TASK_QUEUE=order-fulfillment-tq matching the workflow-starter code
exactly.
Timeout/retry audit of each activity (ReserveInventory,
ChargePayment, ReleaseInventory, ShipOrder) confirms each has an
explicit StartToCloseTimeout, a MaximumAttempts bound, and
ChargePayment specifically lists CardDeclinedError under
NonRetryableErrorTypes — cross-checked against the payment client
library's actual exported error types to confirm the name still
matches after a recent client library upgrade.
ShipOrder (which can take several minutes waiting on a carrier API)
has HeartbeatTimeout: 30s configured and its implementation is
confirmed to call RecordHeartbeat every 10 seconds while polling
the carrier's status endpoint.
Namespace retention:
$ temporal operator namespace describe --namespace production
Retention: 30d
Confirmed as meeting the support team's documented requirement to be able to investigate any order-related ticket within its 21-day SLA window.
A replay test is added to CI, replaying the three most recent
real order-fulfillment-* workflow histories pulled from production
against the candidate worker binary — this specific run catches that
a proposed refactor reordered the ReserveInventory and a new
proposed ValidateAddress activity call, which would have broken
replay for any order fulfillment already past that point in its
history; the change is revised to use workflow.GetVersion before
merging.
Build ID versioning is confirmed configured so the next worker deploy pins new executions to the new Build ID while in-flight orders finish on the version they started with.
GetVersion patching discipline this skill's Build ID checks complement.What SKILL.md sets; muted values are Claude Code's defaults
13 skills in this plugin
/airflow-dag-authoring-and-validationAuthors Apache Airflow DAGs — task dependencies, operator choice, sensors, idempotency — and validates them with `airflow dags test`, import-time checks, and DAG linting before they reach a production scheduler. Use when the user asks to "write an Airflow DAG," "add a task dependency," "use a sensor to wait for a file/table," "validate a DAG before deploying it," "lint an Airflow DAG," or reviews a DAG file for correctness before merge.
/airflow-scheduler-and-dag-troubleshootingDiagnoses a stuck or failed Airflow DAG run, scheduler-health problems (slow parsing, stuck queued tasks), and plans safe task-retry/backfill strategy. Use when the user reports "Airflow DAG is stuck," "task stuck in queued state," "scheduler seems unhealthy," "DAG run failed and I need to retry it," "should I backfill this DAG," or asks to troubleshoot a live Airflow production incident.
/dagster-and-prefect-pipeline-authoringAuthors data pipelines with Dagster's asset-based model or Prefect's Pythonic flow/task model as modern alternatives to Airflow, and gives a decision framework for when each fits better than task-based DAG orchestration. Use when the user asks to "write a Dagster asset," "define a Prefect flow," "should we use Dagster instead of Airflow," "asset-based vs. task-based orchestration," or is evaluating a data-orchestration tool for a new pipeline.
/kafka-cluster-configurationDesigns Apache Kafka broker configuration, topic/partition layout, replication factor, and cluster metadata mode (ZooKeeper vs. KRaft). Use when the user asks to "size a Kafka cluster," "set replication factor," "design topic partitions," "configure Kafka brokers," "migrate from ZooKeeper to KRaft," or "set up a new Kafka cluster" from scratch.
/kafka-configuration-validationValidates Kafka topic configuration (retention, cleanup policy, replication, min.insync.replicas) and consumer group settings before a production rollout. Use when the user asks to "review a Kafka topic config before deploying," "validate retention/compaction settings," "check consumer group config for a new service," or "audit Kafka topics for production readiness" prior to go-live.
/kafka-consumer-lag-and-partition-troubleshootingDiagnoses growing Kafka consumer lag, rebalance storms, and under-replicated partitions in a running cluster. Use when the user reports "consumer lag keeps growing," "consumer group stuck rebalancing," "under-replicated partitions," "Kafka consumers keep dropping out of the group," or asks to troubleshoot a Kafka production incident involving lag or partition health.
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin data-messaging-skillsOther plugins' skills for the same job