Generated banner for Temporal Ops
Generated logo for Temporal Ops

Temporal Ops

OpenAIOfficialCreated by TemporalDistributed by OpenAI

  • Skill
  • Tool integration
  • Cloud and DevOps
  • MIT
  • No issues found

From the author

Administer and diagnose running Temporal Cloud or self-hosted Temporal Server environments via CLI (temporal, tcld) — not SDK code. Operations: namespace CRUD, Cloud capacity/APS, API-key rotation, mTLS cert rotation, workflow health, batch cancel/terminate/reset, export, search attributes, Ops API, billing, audit logs, Terraform, SAML/SCIM, migration. Diagnosis: bottom-up triage of stuck workflows, non-determinism, worker-health, task-queue problems, HA failover, payload size limits, performance bottlenecks, missed schedules. Do NOT trigger for generic TLS/gRPC errors unrelated to Temporal, writing application code (temporal-developer), or worker tuning/sizing (temporal-workertuning).
— the description by Temporal

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

This skill provides a structured approach to managing and troubleshooting Temporal environments. It covers two primary modes: Operations, for administrative tasks like namespace management, API key rotation, and batch workflow actions; and Diagnosis, for investigating issues like stuck workflows, connectivity errors, and performance bottlenecks. It enforces strict operational discipline, including explicit confirmation for destructive commands and a bottom-up diagnostic methodology to ensure root causes are identified accurately.

What it does

  • Performs administrative operations on Temporal Cloud via tcld and self-hosted clusters via temporal operator.
  • Executes batch operations on workflows using query-based filtering with safety-first confirmation steps.
  • Diagnoses system issues using a layered, bottom-up approach from network connectivity to workflow logic.
  • Manages security configurations including API keys, mTLS certificates, and SAML/SCIM integrations.
  • Provides guidance on interpreting audit logs and cloud capacity metrics.
  • Routes complex tasks to specialized skills for development, worker tuning, or infrastructure configuration.

When to use it

  • When you need to perform administrative tasks like creating namespaces or rotating credentials.
  • When a Temporal environment is experiencing errors such as connection timeouts or authentication failures.
  • When you need to investigate or recover from stuck, non-deterministic, or unhealthy workflows.
  • When you need to perform bulk operations on workflows and require a safe, verified execution process.
  • When you need to audit or monitor the health and capacity of your Temporal Cloud account.

Advantages

  • Enforces safe operational practices by requiring explicit approval for destructive commands.
  • Provides a systematic diagnostic ladder to avoid speculative fixes.
  • Distinguishes clearly between Cloud and self-hosted administrative procedures.
  • Integrates safety checks like counting affected workflows before executing batch mutations.
  • Standardizes the interpretation of common gRPC and Temporal-specific error codes.

Usage examples

“How do I rotate my mTLS certificates for my Temporal Cloud namespace?”
The agent will guide you through the tcld commands for generating new certificates and updating the namespace configuration, ensuring you follow the correct rotation sequence.
“I am seeing 'context deadline exceeded' errors in my workflow. How do I debug this?”
The agent will initiate a bottom-up diagnosis, starting by verifying network connectivity and gRPC health before investigating specific workflow task execution logs.
“Terminate all workflows of type 'OrderProcessing' that are currently stuck.”
The agent will first run a count to identify the number of affected workflows, present this number to you for confirmation, and then execute the batch termination only after your approval.

Install

  1. Download the skill as a ZIP:

    https://mp-staging.autogineer.com/agent-skills/openai/temporal-ops/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip temporal-ops.zip -d .agents/skills

Documentation by Temporal

Skill: temporal-ops

Overview

This skill operates and diagnoses Temporal environments. It has two modes:

  • Operations: the user wants to do something — create a namespace, rotate a key, check capacity, find unhealthy workflows, cancel a batch, set up export. The skill executes the right commands and interprets the output.

  • Diagnosis: the user arrives with a symptom — a stuck workflow, a cert error, a connection timeout, a non-determinism panic. The skill routes the investigation through a layered, bottom-up diagnosis until a root cause is identified with a confidence score.

It does not teach how to write workflows or activities (use skill-temporal-developer for that), and it does not reproduce exhaustive CLI flag tables — run temporal <cmd> --help for those, and see cli-conventions.md for cross-command CLI conventions. The boundary is: if the user needs to administer or troubleshoot a running Temporal environment, this skill applies.

Out of scope

  • Writing workflows, activities, or SDK code → skill-temporal-developer.

  • Exhaustive CLI flags / command reference → run temporal <cmd> --help; cross-command CLI conventions → cli-conventions.md.

  • Worker performance tuning, sizing, capacity planning → skill-temporal-workertuning.

  • Helm, Kubernetes, database admin, monitoring stack config for self-hosted — beyond the CLI surface.

If the conversation drifts into one of these areas, hand off to the relevant sibling skill rather than improvising.

Philosophy

Operator discipline

When the user wants to perform an operational task:

  1. Identify the intent and backend. Is this a Cloud operation (tcld) or a self-hosted operation (temporal operator)? Data-plane operations (temporal workflow, temporal batch, etc.) work on both. If the backend is ambiguous, ask before proceeding — do not assume Cloud or self-hosted and do not output environment-specific commands until you know.

  2. Execute commands and interpret output. Run the documented command, read the result, and report what it means — or act on it if the user asked for an action. Read-only commands (get, list, describe, count, show) run freely. Anything listed under Destructive operations is proposed to the user first.

  3. Verify the result. After a mutating operation, confirm the new state matches the user's intent.

Destructive operations

An operation belongs to this tier if it is irreversible (tcld namespace delete), revokes access for a live identity (tcld apikey delete), moves production traffic (tcld namespace failover), or fans out to every match (any --query form). Apply the test to the operation in front of you — this is a rule, not a list, and a command's absence from any list in this skill does not place it outside the tier.

For anything in the tier: gather the evidence and propose. Do not run it on your own initiative, and do not run one to find out what it would do. The reference file for each command states its specific blast radius; read that before proposing, not after.

  1. Blast radius as a number, not a description. For any --query form, run temporal workflow count --query '<query>' with the byte-identical query first and carry the result into the proposal. A filter with no narrowing predicate beyond ExecutionStatus="Running" matches every open Execution in the Namespace.

  2. Name the target. State the exact command, the target, and the Namespace it resolves to. Connection settings can come from TEMPORAL_* env vars or a config-file profile, so the target is frequently not visible in the command text. If the backend or Namespace was inferred from context rather than stated by the user, say so — a destructive command aimed at the wrong Namespace is the most common way this goes wrong.

  3. Ask explicitly, then run it so it completes. Put the command, the target, and — for any --query form — the count from step 1 to the user as a direct question, and wait for an answer. Once they approve, run it with --yes on the --query batch forms; that flag is what lets an approved batch finish, since the interactive prompt needs a terminal and without one the command reports user denied confirmation and does nothing. --yes belongs in a command the user approved, never in a retry of one that failed its prompt. Do not substitute a loop over single-target workflow terminate --workflow-id. Approval covers one command against one target; it does not carry to the next command, a widened query, or a second Namespace.

  4. Verify, and know the abort path. Re-run the corresponding get, describe, or count. A batch job drains asynchronously: temporal batch describe --job-id <id> shows how far it has gotten and temporal batch terminate --job-id <id> stops it before it reaches the rest of its matches.

When a reversible sibling reaches the same goal, propose it alongside: cancel lets Workflow cleanup code run where terminate does not; apikey disable is reversible where delete is not; accepted-client-ca add appends where set replaces.

Assume nothing in the environment will stop a destructive command on your behalf. Credential scope, command denylists, and confirmation prompts may or may not be configured, and their possible presence is not a reason to skip any step above — you are the safeguard the user is relying on.

Diagnostic discipline

When the user arrives with a failure or anomaly:

  1. Bottom-up diagnosis. Verify the lower layer before blaming the upper one. The layers, from bottom to top:

    1. DNS / network path

    2. TCP / port reachability

    3. TLS handshake

    4. Authentication (API key or mTLS client cert)

    5. gRPC health and Temporal frontend reachability

    6. Temporal namespace, task queues, workers

    7. Workflow code (determinism, signals, timers, child workflows)

    The full ladder lives in diagnostic-ladder.md.

  2. Always verify the next layer up rather than prescribing a speculative fix. If TLS works, prove auth works before blaming the workflow. If pollers are present, prove the workflow's last event before blaming the worker.

  3. Attach a confidence score (1-10) to every proposed diagnosis:

    • 9-10: symptoms, operation, and confirming signals line up cleanly.

    • 6-8: evidence is good but at least one alternative remains plausible.

    • 1-5: the issue is still ambiguous; the "fix" is the next discriminating check, not a root cause.

  4. Name ambiguity explicitly. Errors like context deadline exceeded are not self-describing, and a single code such as RESOURCE_EXHAUSTED can mean more than one condition (account-limit throttling vs. per-Workflow lock contention). Surface that, gather more context, and scope the next step narrowly.

These are skill conventions, not docs-derived facts.

Intent routing

Operations

Find the row that matches the user's intent. The reference file contains the commands and procedures.

IntentCategoryReference
Create, get, list, delete a Cloud namespaceCloud namespace admincloud-namespace-admin.md
Add/remove region, failover, HA configCloud namespace admincloud-namespace-admin.md
Set retention, tags, codec-server, connectivity rulesCloud namespace admincloud-namespace-admin.md
Add or rename Cloud search attributesCloud namespace admincloud-namespace-admin.md
Check current APS / capacity modeCloud capacitycloud-capacity.md
Switch On-Demand ↔ Provisioned, set TRUsCloud capacitycloud-capacity.md
Understand APS / RPS / OPS limits and throttlingCloud capacitycloud-capacity.md
Create, disable, enable, delete an API keyCloud IAMcloud-iam.md
Invite, list, remove users; set roles/permissionsCloud IAMcloud-iam.md
Manage user groups and service accountsCloud IAMcloud-iam.md
Generate mTLS certs, upload CA, set cert filtersCloud certscloud-certs.md
Rotate mTLS certificatesCloud certscloud-certs.md
Set up Workflow History Export (S3 / GCS)Cloud namespace admincloud-namespace-admin.md
Set up PrivateLink / PSC, manage connectivity rulesCloud connectivitycloud-connectivity.md
Self-hosted cluster health, describe, namespace CRUDSelf-hosted adminself-hosted-admin.md
Self-hosted search attributes, Nexus endpointsSelf-hosted adminself-hosted-admin.md
Check or manage a Cloud Nexus Endpoint's caller-Namespace allowlist; the 1,000-caller defaultCloud namespace admincloud-namespace-admin.md#tcld-nexus-endpoint-allowed-namespace
Find stuck/hung/unhealthy workflows via list queriesWorkflow healthworkflow-health.md
Task queue poller status, workflow countsWorkflow healthworkflow-health.md
Cancel, terminate, or reset workflowsWorkflow recoveryworkflow-stuck.md#recovery-commands
Bulk / batch operations on workflows (--query)CLI conventionscli-conventions.md
Schedule CRUD, time-spec, and operationsCLI conventionscli-conventions.md
Complete or fail an activity externallyCLI conventionscli-conventions.md
Cloud Ops API access, rate limits, Go SDKCloud Ops APIcloud-ops-api.md
View billing, generate billing report, cost attributionCloud billingcloud-billing.md
Audit Logs: view, query via API, configure sink (AWS/GCP)Cloud audit logscloud-audit-logs.md
Terraform provider: Namespace/User/SA/API Key/Nexus CRUDCloud Terraformcloud-terraform.md
Expiry alerts (cert, API key, credit), status pageCloud notificationscloud-notifications.md
SAML SSO, SCIM provisioning, IdP integrationCloud SAML/SCIMcloud-saml-scim.md
Migrate self-hosted to Cloud (automated or manual), migrate between Cloud regionsCloud migrationcloud-migration.md
End-to-end ops playbook (setup, rotation, audit, billing, Terraform)Ops recipesops/recipes.md
Diagnosis

Find the row that matches the user's symptom. Start the investigation at the first check, then read the linked reference.

SymptomCategoryFirst checkReference
connection refused, cannot reach frontendConnectivitync -zvw10 <host> 7233connectivity.md#connection-refused
no such host, DNS resolution failsConnectivitydig +short <host> or nslookup <host>connectivity.md#dns
tls: handshake failure, server rejects handshakeCertificatesopenssl s_client -connect <host>:7233 -servername <host> </dev/nullcertificates.md#handshake-failure
x509: certificate has expired or not yet validCertificatesopenssl x509 -enddate -noout -in cert.pemcertificates.md#expired-or-not-yet-valid
x509: certificate signed by unknown authorityCertificatesopenssl verify -CAfile ca.pem client.pemcertificates.md#unknown-authority
tcld session / auth fails, Cloud role unclearAuthenticationtcld account getauthentication.md#cloud-role-and-permission-model
UNAUTHENTICATED, API key rejectedAuthenticationenv | grep -i TEMPORAL_API_KEY, then tcld apikey get --id <apikey_id>authentication.md#things-to-check-when-unauthenticated-is-returned-with-an-api-key
namespace not found / wrong namespace string with an API keyAuthenticationConfirm Regional Endpoint form <region>.<cloud_provider>.api.temporal.io:7233authentication.md#address-form-for-api-key-connections
RESOURCE_EXHAUSTED gRPC statusRate limitsIdentify which limit fired: throttle metrics on Cloud v1, the resource_exhausted_cause label on v0 / self-hostedrate-limits.md#identifying-which-limit-was-hit
Task queue shows no pollersWorker healthtemporal task-queue describe --task-queue <q>worker-health.md#what-no-pollers-looks-like
Workflow stuck on a pending activity / timer / child / signalWorkflow stucktemporal workflow describe --workflow-id <id>workflow-stuck.md#the-primary-inspection-command-temporal-workflow-describe
NondeterminismError, repeating WorkflowTaskFailedNon-determinismIdentify the last WorkflowTaskFailed cause in the Event Historynon-determinism.md#the-wft-failure-signature-of-non-determinism
Replay fails locally but prod workflow was runningNon-determinismFetch the history and run the SDK replayer in one testreplay.md#step-2--run-the-sdk-replayer-all-supported-sdks
HA failover did not route traffic to failover regionHA failovertcld namespace get --namespace <ns>.<acct> vs. DNS CNAMEha-failover.md#start-here-establish-ground-truth
Serverless Worker (AWS Lambda) stopped processing work after a Namespace failoverHA failoverConfirm a FailoverNamespace audit event, then compare the new active region against the Lambda ARN on the Worker Deployment Versionha-failover.md#symptom-serverless-workers-kept-running-in-the-old-region-after-failover
context deadline exceeded (unknown layer)Runtime errorsIdentify which operation and SDK emitted itruntime-errors.md#deadline-exceeded
Workflow is busy / ResourceExhausted on signal/update/query to one Workflow (BusyWorkflow)Runtime errorsRule out account-limit throttling, then split temporal_cloud_v1_resource_exhausted_error_count by operationruntime-errors.md#workflow-lock-contention-busyworkflow
PAYLOADS_TOO_LARGE, exceeds size limit, payload/gRPC blob size errorBlob size limitsCheck whether the issue is payload (2 MB) or gRPC message (4 MB)blob-size-limits.md
Workflow stuck in invisible retry loop (gRPC message too large)Blob size limitsCheck Worker logs for ResourceExhausted, reduce batch sizeblob-size-limits.md
High schedule-to-start latency, task slot depletion, slow Workflow TasksPerformance bottlenecksCheck temporal_workflow_task_schedule_to_start_latency P95performance-bottlenecks.md
High replay latency, cache evictions, deadlock detectedPerformance bottlenecksCheck workflow_task_replay_latency and sticky cache metricsperformance-bottlenecks.md
Schedule did not fire, missed catchup windowMissed Schedule ActionsAlert on temporal_cloud_v1_schedule_missed_catchup_window_countschedule-missed.md

If a symptom does not map to a row, start at diagnostic-ladder.md and work up from whichever layer was last known healthy.

The process

Operations path
Step 1: Identify intent and backend

Determine what the user wants to do and whether it targets:

  • Temporal Cloud → use tcld commands (requires tcld login)

  • Self-hosted cluster → use temporal operator commands

  • Data plane (either backend) → use temporal workflow, temporal batch, temporal schedule, etc.

If the backend is unambiguous from context — .tmprl.cloud address, tcld command, Cloud namespace format ns.account → Cloud; Kubernetes/Helm, docker-compose, self-hosted config files → self-hosted — proceed without asking. Otherwise, stop and ask: "Are you on Temporal Cloud or self-hosted?" before outputting any environment-specific commands. Do not default to either environment. Once known, save the answer to memory so you don't ask again in future conversations.

Step 2: Execute and interpret

Look up the intent in the Operations table above. Read the linked reference file for the exact commands, flags, and expected output. Run the command and interpret the result for the user.

Step 3: Verify

After a mutating operation (create, update, delete, rotate), confirm the new state:

  • Re-run the corresponding get or describe command

  • Confirm the output matches the user's intent

  • Report the result

Diagnosis path
Step 1: Identify the symptom

Ask the user for the exact, copy-pasted error text. Do not accept paraphrases — the exact string often encodes the layer (e.g., x509: prefix means TLS/cert layer, RESOURCE_EXHAUSTED: prefix means gRPC rate limit, NondeterminismError means workflow replay layer). Note that RESOURCE_EXHAUSTED alone does not tell you which condition fired — account-limit throttling and per-Workflow lock contention (Workflow is busy, i.e. BusyWorkflow) share the code. Split the resource-exhausted metric by its label (operation on the Cloud v1 family, resource_exhausted_cause on v0 and self-hosted) rather than parsing the free-text message.

Confirm three things before continuing:

  • What command was run, or what SDK call produced the error?

  • What environment produced it (local dev server, self-hosted cluster, Temporal Cloud)? If clear from context (addresses, commands, namespace format), don't ask — but if uncertain, ask now before proceeding with any diagnosis. Save the answer to memory for future conversations.

  • What changed recently (new deploy, new certs, new namespace, new region)?

Step 2: Gather context

The context the investigation needs depends on the category. At minimum:

  • For any Cloud auth / connectivity issue: auth method (API key vs mTLS), exact address, exact namespace, SDK + version. The endpoint family differs by auth method — see connectivity.md#endpoint-formats. For private connectivity (PrivateLink / PSC), TLS server name overrides also vary by auth method — see cloud-connectivity.md.

  • For a stuck workflow: namespace, workflow ID, run ID, and the output of temporal workflow describe --workflow-id <id> (pending-operation state lives here, not in the Event History alone). Event History via temporal workflow show is the companion view.

  • For a worker health issue: worker logs (registration errors, auth errors, panics), the output of temporal task-queue describe --task-queue <q>, and temporal worker describe --task-queue <q> for per-worker details.

  • For a non-determinism error: the worker log line containing the error, the workflow type name, and access to the history JSON for replay.

Step 3: Validate pasted SDK config (if any)

If the user has pasted SDK connection code — even just the address/namespace/auth fields — review it against sdk-snippet-review.md before descending the ladder. Wrong endpoint family, short namespace, or mismatched auth method will make every network-layer probe below look broken when nothing lower actually is.

Skip this step when the user has an established, previously-working config and the symptom is new — the snippet is not the culprit, the environment changed. Otherwise treat snippet validation as Layer 0.

Step 4: Descend the ladder

Use diagnostic-ladder.md to pick the right starting layer. As a rule of thumb:

  • Auth / connectivity / cert symptom → start at layer 1 (DNS) and walk up.

  • Worker / task-queue symptom → start at layer 6 (namespace + pollers).

  • Stuck workflow / determinism symptom → start at layer 7 (workflow code), but confirm layer 6 (worker is actually polling) first.

Each layer has a command that proves it healthy and a failure signature that tells you whether the problem lives at that layer or higher.

Step 5: Fix and verify

Prescribe the fix scoped to the root cause. Then verify by re-running the layer's healthy-check command and, if possible, the original user operation. Attach the confidence score to the diagnosis.

If the layer above the fix is still failing, return to step 4 and continue walking upward — the first broken layer is rarely the only one.

Prerequisites

  • Temporal CLI (temporal) — required for data-plane operations and self-hosted admin. Install: brew install temporal or see Temporal CLI docs.

  • tcld — required for Cloud operations. Install: brew install temporal-cloud-cli or see tcld docs. Authenticate with tcld login before use.

Reference files

Operations
  • cloud-namespace-admin.md — Cloud namespace lifecycle via tcld: create, get, list, delete, failover, add-region, retention, tags, codec-server, HA config, connectivity rules, search attributes, accepted-client-ca, certificate filters, export, and the tcld nexus endpoint allowed-namespace caller allowlist (1,000-caller Access Policy ceiling).

  • cloud-capacity.md — Capacity modes (On-Demand / Provisioned), APS/RPS/OPS definitions, TRUs, tcld namespace capacity update, default limits, throttling, APS management best practices.

  • cloud-iam.md — API key lifecycle (tcld apikey), users (tcld user), user groups (tcld user-group), service accounts, account operations (tcld account), roles, namespace permissions.

  • cloud-certs.md — mTLS cert management: generating certs with tcld generate-certificates, uploading CAs, certificate filters, cert rotation, switching mTLS ↔ API keys.

  • cloud-connectivity.md — Private connectivity (AWS PrivateLink / GCP PSC), connectivity rules: setup, rule parameters, tcld commands, attaching rules to namespaces.

  • cloud-migration.md — Migration paths: automated self-hosted→Cloud (S2S proxy, tcld migration commands, 5 phases), manual self-hosted→Cloud (client changes, workflow strategies), within-Cloud region-to-region (HA add-region/failover).

  • cloud-ops-api.md — Cloud Ops API: HTTP and gRPC endpoints (saas-api.tmprl.cloud), Go SDK, protobuf compilation, rate limits (160 RPS account, 40 user, 80 SA, 10 concurrent async), API version header, use cases.

  • cloud-billing.md — Cloud billing: Billing Center (invoices, credits, plans, cost by namespace), Usage Dashboards, Billing API: async CSV report generation, FOCUS-friendly format, 27-column report schema, date range constraints.

  • cloud-audit-logs.md — Cloud Audit Logs: supported control plane events (Account, API Keys, Connectivity Rules, Namespace, Export, Nexus, Service Accounts, User, User Groups), JSON format, API access (30-day retention), AWS Kinesis and GCP Pub/Sub sink configuration.

  • cloud-terraform.md — Terraform provider: setup (TEMPORAL_CLOUD_API_KEY), temporalcloud_namespace/temporalcloud_user/temporalcloud_service_account/temporalcloud_apikey/temporalcloud_nexus_endpoint CRUD, import, data sources (regions, namespaces), limitations (API keys not importable, cannot manage Account Owner).

  • cloud-notifications.md — Cloud notifications: certificate expiry (15/10/5 days), API key expiry (30/20/10 days), credit consumption/expiry alerts, plan changes, failover events, recipient roles, [email protected] sender.

  • cloud-saml-scim.md — SAML SSO (Entra ID, Okta): entity identifier (urn:auth0:prod-tmprl:ACCOUNT_ID-saml), callback URL (login.tmprl.cloud), IdP configuration steps, support ticket workflow. SCIM: supported vendors, prerequisites (SAML first), 10-minute sync window, group-to-role mapping.

  • self-hosted-admin.md — Self-hosted control plane via temporal operator: cluster health/describe, namespace CRUD, search-attribute create/list/remove, Nexus endpoint CRUD.

  • workflow-health.md — Data-plane health queries: temporal workflow list with List Filters, temporal workflow describe/show/count, temporal task-queue describe for poller status.

  • cli-conventions.md — Cross-command temporal CLI conventions: connection/identity (TEMPORAL_* env vars ↔ --address/--namespace/--api-key, --identity), output/formatting (--output, --time-format, payload shorthand), the --query ⇒ batch-job bridge (with temporal batch describe/list/terminate), and schedule time-spec forms. Ends with an operation→command index that routes each data-plane operation to its owner file. Delegates exhaustive flags to temporal <cmd> --help.

  • ops/recipes.md — End-to-end ops playbooks: set up new namespace, check APS, switch capacity mode, find hung workflows, rotate API key, audit access, rotate mTLS certs, check self-hosted health, view billing / generate billing report, configure audit log sink, provision resources with Terraform, set up SAML SSO.

Diagnosis
  • sdk-snippet-review.md — Layer-0 config check for pasted SDK connection snippets: endpoint form per auth method, namespace format, auth / TLS expectations, TEMPORAL_* env vars, common misconfigurations. Run before the diagnostic ladder.

  • diagnostic-ladder.md — the seven-layer bottom-up model, with one canonical command per layer and cross-links into the topical leaves.

  • connectivity.md — DNS, TCP, endpoint families (Namespace Endpoint for mTLS vs. Regional Endpoint for API keys), firewall/proxy shapes, PrivateLink/PSC, quick diagnostic scripts.

  • certificates.md — x509 and TLS alert strings, expiry / unknown-authority / hostname-mismatch / key-mismatch diagnosis, Cloud accepted-client-CA set via tcld namespace accepted-client-ca, Cloud mTLS certificate requirements, rotation and expiry notifications, openssl recipes.

  • authentication.md — UNAUTHENTICATED vs PERMISSION_DENIED, API-key lifecycle (tcld apikey commands, env var propagation, required Regional Endpoint form), mTLS after TLS (certificate filters, identity-to-role mapping), Cloud account-level roles and namespace-level permissions.

  • workflow-stuck.md — Workflow Execution Status values, temporal workflow describe as the primary inspection command, Event History via temporal workflow show, pending activities / child workflows / signals / Nexus operations / Workflow Tasks, WorkflowTaskFailed retry loops, recovery commands (signal, terminate, cancel, reset, pause/unpause).

  • non-determinism.md — determinism definition, WFT-failure signature, ND-inducing code patterns, per-SDK error shapes, identifying ND from Event History, local replay reproduction, remediation via Worker Versioning / patching / reset.

  • worker-health.md — no-pollers runbook via temporal task-queue describe, reachability and versioning, worker-level describe, schedule-to-start latency, worker task slots, sticky execution and sticky cache, worker heartbeating, Cloud namespace-level poller limits, worker log signatures.

  • rate-limits.md — what RESOURCE_EXHAUSTED means (and does not), Cloud APS / RPS / OPS under On-Demand and Provisioned capacity modes, self-hosted frontend.rps / frontend.namespaceRPS dynamic config, identifying which limit fired via the throttle metrics (Cloud v1) or the resource_exhausted_cause label (v0 / self-hosted), and separating account-limit throttling from single-resource exhaustion.

  • ha-failover.md — Cloud HA routing via the Namespace Endpoint CNAME, verifying the active region (control-plane tcld namespace get vs. DNS view), clients that did not follow the failover, PrivateLink after failover, failover-not-executing, handover-window errors, platform limits, RPO/RTO semantics, and Serverless Workers (AWS Lambda) not following a failover because compute-provider configuration is region-scoped.

  • runtime-errors.md — deadline-exceeded disambiguated by operation and by where the call was made, Workflow lock contention (BusyWorkflow) separated from account-limit throttling and confirmed via the operation breakdown, routing for no pollers / INVALID_ARGUMENT / unspecified UNAVAILABLE.

  • replay.md — fetching Event History with the SDK client (CLI export as fallback), running the SDK replayer in every supported SDK (Go, Python, TypeScript, Java, .NET, Ruby, PHP), TEMPORAL_DEBUG and the deadlock detector, interpreting divergent and successful replays, and the TypeScript-only VS Code extension.

  • blob-size-limits.md — Payload size limit (2 MB) and gRPC message size limit (4 MB): error messages, per-SDK behavior (Python 1.23.0+ vs. others), claim check pattern, External Storage (Pre-release), batch-size reduction.

  • performance-bottlenecks.md — Latency and throughput diagnosis via SDK metrics: schedule-to-start latency, workflow task execution latency, replay latency, activity execution latency, task slot depletion, network request metrics, sticky cache metrics.

  • schedule-missed.md — Missed Schedule Actions: alerting via temporal_cloud_v1_schedule_missed_catchup_window_count / schedule_missed_catchup_window, investigation via temporal schedule list + temporal schedule describe, DescribeSchedule fields (missedCatchupWindow, overlapSkipped, bufferDropped), default catchup window (one year), root causes, overlap policies (6 values), backfill remediation.

  • recipes.md — four end-to-end triage walkthroughs: stuck workflow at 3am, cert expired with workers offline, task-queue backlog mystery, non-determinism caught in prod.

Feedback

Feedback prompt

When you have first loaded this skill, output this message to the user:

"Thank you for trying out the public preview of the Temporal Ops skill! We would love to hear your feedback - positive or negative - over in the Community Slack, in the #topic-ai channel."

Do not output this message multiple times in the same conversation.

Reporting Issues in This Skill

If you (the AI) find this skill's explanations are unclear, misleading, or missing important information, draft a GitHub issue body describing the problem encountered and what would have helped, then ask the user to file it at https://github.com/temporalio/skill-temporal-ops/issues/new. Do not file the issue autonomously.

Files

references/ops/cloud-namespace-admin.md

Cloud Namespace Administration via tcld

Quick-reference for Cloud namespace lifecycle operations using tcld namespace.

Alias: n


Identity formats

ConceptFormatExample
Namespace Name<namespace_name> (2-39 chars, lowercase, letters/numbers/hyphens, must start with letter, end with letter or number)accounting-production
Account ID<account_suffix> (5+ chars)123de
Namespace ID<namespace_name>.<account_suffix>accounting-production.123de
Namespace endpoint<ns>.<acct>.tmprl.cloud:7233accounting-production.123de.tmprl.cloud:7233
Regional endpoint<region>.<cloud_provider>.api.temporal.io:7233us-east-1.aws.api.temporal.io:7233

All --namespace / -n flags accept the Namespace ID (full form), not the short Namespace Name.

If --namespace is omitted, the environment variable $TEMPORAL_CLOUD_NAMESPACE is used.


Limits

  • Default account namespace limit: 10 (auto-increases as you create namespaces; for large-scale needs open a support ticket)

  • Retention range: 1-90 days

  • Max tags per namespace: 10

  • Tag key/value length: 1-63 characters

  • Soft limit of 1000 unique tag keys per account

  • Max caller Namespaces per Nexus Endpoint Access Policy: 1,000 (support ticket to raise)

  • Max Nexus Endpoints per account: 100 (support ticket to raise)


tcld namespace create

Alias: c

tcld namespace create \
    --namespace <namespace_id> \
    --region <region> \
    --auth-method api_key
FlagAliasRequiredNotes
--namespace-nYesBecomes part of the Namespace ID
--region--reYesOne for standard, two for HA. See Regions docs
--auth-methodNomtls (default), api_key, restricted, or api_key_or_mtls
--ca-certificate-cConditionalRequired if --auth-method mtls and no --ca-certificate-file
--ca-certificate-file--cfConditionalPath to PEM file
--certificate-filter-file--cffNoJSON file defining cert filters
--certificate-filter-input--cfiNoJSON string defining cert filters
--cloud-provider--cpNoaws (default) or gcp
--connectivity-rule-ids--idsNoCan be specified multiple times
--enable-delete-protection--edpNoDefault false
--endpoint-eNoCodec server endpoint (must be HTTPS)
--include-credentials--icNoInclude cross-origin credentials for codec server. Default false
--pass-access-token--patNoPass user access token to codec server. Default false
--request-id-rNoAsync operation request ID
--retention-days--rdNoDefault 30
--search-attribute--saNoname=type format; can repeat. Types: Bool, Datetime, Double, Int, Keyword, Text
--tag--tNokey=value format; can repeat
--user-namespace-permission-pNoemail=permission format; Admin, Write, Read

Example with HA (two regions), tags, and search attributes:

tcld namespace create \
    --namespace my-namespace.a1b2c \
    --region us-east-1 \
    --region us-west-2 \
    --auth-method api_key \
    --retention-days 30 \
    --search-attribute "customer_id=Int" \
    --tag "env=production" \
    --user-namespace-permission "[email protected]=Admin"

tcld namespace get

Alias: g

tcld namespace get \
    --namespace <namespace_id>
FlagAliasRequiredNotes
--namespace-nNoFalls back to $TEMPORAL_CLOUD_NAMESPACE

Output is JSON by default (no --format flag exists).


tcld namespace list

Alias: l

tcld namespace list
FlagAliasRequiredNotes
--page-sizeNoNamespaces per page; must be >0 and ≤ max page size
--page-tokenNoPage token from a previous response

Returns JSON with a namespaces array and nextPageToken.


tcld namespace delete

Alias: d

tcld namespace delete \
    --namespace <namespace_id>
FlagAliasRequiredNotes
--namespace-nYes
--request-id-rNo
--resource-version-vNoETag; if omitted uses latest

Deletion is permanent. All Workflow Executions and Task Queues are removed immediately. Closed Workflow Histories remain until their retention period expires.

There is no undo. Never run it autonomously. Before proposing it, report what is in the Namespace — temporal workflow count --query 'ExecutionStatus="Running"' against that Namespace — and quote the full Namespace ID (<namespace_name>.<account_suffix>) back to the user for confirmation, since a bare name can match a Namespace in a different account than the one they mean. If the intent is to stop work rather than discard the Namespace, that is a Workflow-level or capacity-level change, not a delete.

If the delete is refused, the Namespace has delete protection enabled (below). Treat that as a deliberate decision by whoever provisioned it: report the block and stop. Do not disable protection and retry unless the user explicitly asks for that, as a separate step.

Delete protection

Enable via --enable-delete-protection / --edp at create time.

Toggle on an existing namespace (lifecycle, alias lc):

tcld namespace lifecycle set \
    --namespace <namespace_id> \
    --enable-delete-protection <Boolean>

Read the current delete-protection state:

tcld namespace lifecycle get \
    --namespace <namespace_id>

tcld namespace add-region

Upgrades a namespace to support High Availability by adding a replica region.

tcld namespace add-region \
    --namespace <namespace_id> \
    --region <replica_region_name>
FlagAliasRequiredNotes
--namespace-nYes
--region--reYesRegion name, e.g. us-east-1
--cloud-providerNoaws (default) or gcp
--request-id-rNo

Temporal Cloud sends an email alert once the Namespace is ready.


tcld namespace delete-region

Removes a replica region, disabling HA. Imposes a mandatory 7-day waiting period before re-enabling HA in the same location.

tcld namespace delete-region \
    --namespace <namespace_id> \
    --region <region_name>
FlagAliasRequiredNotes
--namespace-nYes
--region--reYesRegion to remove
--cloud-providerNoaws (default) or gcp
--request-id-rNo

The 7-day wait is what makes this hard to walk back: the Namespace runs single-region for a week with no failover target, so a removal done to "clean up" a replica cannot be reversed if the primary degrades in the meantime. Confirm with the user that they intend to give up HA for at least that long, and check which region is currently active first — removing the replica is a different operation from failing back to it.


tcld namespace failover

Switches a namespace from its primary region to a replica region (requires HA).

tcld namespace failover \
    --namespace <namespace_id> \
    --region <target_region>
FlagAliasRequiredNotes
--namespace-nYes
--region--reYesRegion to fail over TO
--cloud-providerNoaws (default) or gcp
--request-id-rNo

This moves production traffic and is not a diagnostic step — never trigger one to test whether failover works, and never trigger one while diagnosing a symptom that has not been traced to the active region. Confirm the target with the user, and note that --region names the region being failed over to, not away from. Once the request returns an operation ID the failover is guaranteed to proceed and cannot be called back; clients may see a brief window of retryable errors during handover. After a user-triggered failover Temporal does not fail back automatically. See ../triage/ha-failover.md.


tcld namespace retention

Alias: r

retention get

Alias: g

tcld namespace retention get \
    --namespace <namespace_id>
retention set

Alias: s

tcld namespace retention set \
    --namespace <namespace_id> \
    --retention-days <days>
FlagAliasRequiredNotes
--namespace-nYes
--retention-days--rdYesRange: 1-90 days

Lowering retention is a data deletion, not a settings change: closed Workflow Histories that fall outside the new window stop being retained and cannot be recovered by setting the value back. Read the current value with retention get and confirm the new number with the user before proposing it; the deletion does not appear anywhere in the command's own output. Raising retention is safe but does not resurrect anything already aged out.


tcld namespace auth-method

Alias: am

Gets or sets the authentication method for an existing namespace. Changing the method can break existing client connections; tcld prompts for confirmation on disruptive changes.

auth-method get
tcld namespace auth-method get \
    --namespace <namespace_id>
FlagAliasRequiredNotes
--namespace-nYes
auth-method set
tcld namespace auth-method set \
    --namespace <namespace_id> \
    --auth-method <method>
FlagAliasRequiredNotes
--namespace-nYes
--auth-method--amYesOne of restricted, mtls, api_key, api_key_or_mtls
--request-id-rNo
--resource-version-vNoETag; latest if omitted

tcld namespace export (Workflow History Exports)

Workflow History Export sinks are managed with tcld namespace export (alias es), under two provider subgroups: s3 (AWS) and gcs (GCP).

Both subgroups expose the same subcommands:

SubcommandAliasPurpose
createcCreate a sink (created enabled)
validatevValidate sink config without creating it
updateuUpdate sink fields or toggle enabled
getgGet a sink by name
deletedDelete a sink by name
listlList sinks
S3 create/validate flags
FlagAliasRequired
--sink-nameYes
--role-arnYes
--s3-bucket-nameYes
--kms-arnNo
--region--reNo
GCS create/validate flags
FlagAliasRequired
--sink-nameYes
--service-account-emailYes
--gcs-bucketYes

update additionally takes --enabled (toggle true/false) and --resource-version / -v; provider flags are optional on update.

get, delete, and list are shared across both subgroups. get and delete identify the sink with --sink-name (delete also accepts --resource-version / -v); list accepts --page-size and --page-token.


tcld namespace update-codec-server

Alias: ucs

tcld namespace update-codec-server \
    --namespace <namespace_id> \
    --endpoint <https_url>
FlagAliasRequiredNotes
--namespace-nYes
--endpoint-eYesMust be HTTPS
--pass-access-token--patNoDefault false
--include-credentials--icNoDefault false

tcld namespace update-high-availability

Alias: uha

tcld namespace update-high-availability \
    --namespace <namespace_id> \
    --disable-auto-failover=true
FlagAliasRequiredNotes
--namespace-nYes
--disable-auto-failoverNotrue or false (default). Use --disable-auto-failover=false to (re-)enable Temporal-managed failover.

tcld namespace tags

Alias: t

tags upsert

Add new tags or update existing tag values. Alias: u

tcld namespace tags upsert \
    --namespace <namespace_id> \
    --tag "key1=value1" \
    --tag "key2=updated"
FlagAliasRequiredNotes
--namespace-nYes
--tag--tYeskey=value format; repeatable
--request-id-rNo
tags remove

Remove tags by key. Alias: rm

tcld namespace tags remove \
    --namespace <namespace_id> \
    --tag-key "key1" \
    --tag-key "key2"
FlagAliasRequiredNotes
--namespace-nYes
--tag-key--tkYesKey string; repeatable
--request-id-rNo
Tag constraints
  • Allowed characters: lowercase a-z, 0-9, ., _, -, @

  • Keys must be unique per namespace

  • Only Account Admins and Account Owners can create/edit tags


tcld namespace set-connectivity-rules

Alias: scrs

FlagAliasRequiredNotes
--namespacenYes
--connectivity-rule-idsidsNoRepeatable. --ids id1 --ids id2
--remove-allNoAcknowledges removal of all rules, enabling connectivity from any source

tcld namespace search-attributes

Alias: sa

search-attributes add

Alias: a

tcld namespace search-attributes add \
    --namespace <namespace_id> \
    --search-attribute "YourSearchAttribute1=Text" \
    --search-attribute "YourSearchAttribute2=Double"
FlagAliasRequiredNotes
--namespace-nNoFalls back to $TEMPORAL_CLOUD_NAMESPACE
--search-attribute--saYesname=type format; repeatable. Types: Bool, Datetime, Double, Int, Keyword, Text
--request-id-rNo
--resource-version-vNo

To delete a search attribute, contact Support at support.temporal.io.

search-attributes rename
tcld namespace search-attributes rename \
    --namespace <namespace_id> \
    --existing-name <old_name> \
    --new-name <new_name>
FlagAliasRequiredNotes
--namespace-nNo
--existing-name--enYes
--new-name--nnYes
--request-id-rNo
--resource-version-vNo

tcld namespace accepted-client-ca

Manages client CA certificates used to verify mTLS connections. Alias: ca

SubcommandAliasPurpose
addaAdd CA certs
listlList current CA certs
setsReplace all CA certs (used for rollover)
removerRemove specific CA certs

All subcommands accept --namespace / -n, --request-id / -r, --resource-version / -v.

Certificate can be supplied as:

  • --ca-certificate / -c (base64-encoded string)

  • --ca-certificate-file / -f (path to PEM file)

If both are specified, --ca-certificate takes precedence.

The remove subcommand additionally supports --ca-certificate-fingerprint / --fp for removal by fingerprint.

CA certificate rollover procedure
  1. Create a single PEM file with both old and new CA certificate blocks concatenated

  2. Run tcld namespace accepted-client-ca set --ca-certificate-file <path>

  3. Monitor traffic until old cert usage ceases

  4. Run set again with only the new certificate

Do NOT use a CA certificate signed with SHA-1 -- such signatures are rejected.

set and remove both change who can connect, and the failure is fleet-wide rather than gradual: every client presenting a leaf that chained only to a dropped CA fails its next handshake, and Workers fail closed with a TLS error rather than degrading. set is the sharper of the two because it replaces the entire bundle — a PEM that omits a CA still in use silently revokes it. Run list first, confirm which CAs are live, and prefer add when the goal is to introduce a new CA. Reserve set for steps 2 and 4 of the rollover above, and do not run step 4 until step 3 has actually shown old-cert traffic stop. Recovery means re-uploading the dropped CA, so keep the PEM until the rollover is confirmed complete.


tcld namespace certificate-filters

Manages certificate filters that authorize client certificates based on DN fields. Alias: cf

SubcommandAliasPurpose
addaAdd certificate filters
importimpSet (replace all) certificate filters
exportexpExport current filters to file
clearcClear all filters (allows any client cert that chains to a configured CA)

Filter fields (at least one required): commonName, organization, organizationalUnit, subjectAlternativeName

Filter input via --certificate-filter-file / -f or --certificate-filter-input / -i. Cannot specify both.

JSON format: { "filters": [ { "commonName": "test1" } ] }

Two of these subcommands change access, in opposite directions, and both are worth proposing rather than running. import replaces the whole filter set rather than appending to it, so it locks out every identity whose cert matched only a filter the new file omits — the same fleet-wide shape as accepted-client-ca set, and the reason to export to a file first and edit that. clear fails the other way: with no filters, any client cert that chains to a configured CA is accepted , so it silently widens access instead of removing it. Neither direction is what "clear the filters" sounds like; state which one you mean when you propose it.


tcld nexus endpoint allowed-namespace

Manages a Nexus Endpoint's Access Policy — the allowlist of caller Namespaces permitted to use the Endpoint at runtime. Cloud-only: self-hosted authorization goes through a custom Authorizer plugin instead. For Endpoint CRUD itself, see self-hosted-admin.md § Nexus Endpoint Commands, which maps each temporal operator nexus verb to its tcld nexus equivalent.

SubcommandPurpose
listShow the current allowlist
addAdd caller Namespaces; entries already present are ignored
removeRemove caller Namespaces; entries not present are ignored
setReplace the entire allowlist

All subcommands take --name / -n (the Endpoint) and, except list, --namespace / -ns, which is repeatable:

tcld nexus endpoint allowed-namespace add \
    --name <endpoint-name> \
    --namespace <caller-ns-1> \
    --namespace <caller-ns-2>

No callers are allowed by default, not even from the Endpoint's own target Namespace. The allowlist is empty at create time unless seeded with --allow-namespace (singular, a repeatable flag on tcld nexus endpoint create, not a subcommand).

set replaces the full list, so any entry you don't pass is dropped — revoking those callers at their next Nexus Operation. Never run it on your own initiative. Run list first, name the exact entries it would drop, and ask the user directly; run it only once they have approved, and only against that Endpoint. Prefer add when the goal is to grant. Terraform manages the same field as allowed_caller_namespaces, so a set against a Terraform-provisioned Endpoint will be reverted on the next apply — see cloud-terraform.md.


Endpoint and authentication summary

Auth methodEndpoint typeFormat
API key or mTLSNamespace endpoint (recommended)<ns>.<acct>.tmprl.cloud:7233
API key or mTLSRegional endpoint<region>.<cloud_provider>.api.temporal.io:7233
  • Namespace endpoints auto-route during HA failover -- Workers and Clients do not need endpoint changes

  • When using mTLS with a regional endpoint, set server_name to the Namespace endpoint value

  • Web UI URL: https://cloud.temporal.io/namespaces/<namespace_id>


Access and permissions

  • Creating a namespace requires Developer, Account Owner, or Global Admin account-level role

  • The creator is automatically granted Namespace Admin permission

  • Deleting a namespace requires Namespace Admin permission

  • Tags: only Account Admins and Account Owners can create/edit


Common anti-patterns

WrongRightWhy
--namespace my-ns--namespace my-ns.a1b2cNamespace ID requires account suffix
tcld namespace get --format jsontcld namespace getNo --format flag; output is JSON by default
tcld namespace search-attributes createtcld namespace search-attributes addSubcommand is add, not create
tcld namespace update --retention-days 30tcld namespace retention set --retention-days 30Retention is its own subcommand tree
Short-name endpoint my-ns:7233my-ns.a1b2c.tmprl.cloud:7233Cloud requires full Namespace ID in endpoint

Requirements and compatibility

Written for: OpenAI Codex, Claude Code

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Claude Code frontmatter, Needs an API key

Security

No issues found by our static scan· No issues found

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
Temporal
Publisher
OpenAI (Official)
Distributed by
OpenAI
Source
openai/plugins · plugins/temporal/skills/temporal-ops · commit d420d13
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from plugins/temporal/LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced

AutoGineer is not affiliated with or endorsed by Temporal or OpenAI.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download temporal-ops.zip