temporal-python-pro

A guide to building durable workflows with Temporal's Python SDK. Temporal is a system for coordinating long-running, distributed tasks while allowing them to recover from failures.

In plain words
What is it for?
Use it to design workflows, activities, workers, distributed transactions, compensation steps called sagas, deterministic tests, and deployments.
Why use it?
It helps structure processes that span multiple services or transactions without losing progress when workers or services fail.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/bcastelino/agent-skills-kit/temporal-python-pro
Any agent
npx skills add bcastelino/agent-skills-kit --skill temporal-python-pro
Clone the repo
git clone --depth 1 https://github.com/bcastelino/agent-skills-kit

Made for: Claude Code, Codex.

Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,049 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00033 $0.02049
Opus 5 $0.00016 $0.01025
Sonnet 5 $0.00007 $0.00410
Haiku 4.5 $0.00003 $0.00205

Measured 2d ago against content hash 718c1ee260be, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

temporal-python-pro scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/temporal-python-pro/SKILL.md · 367 lines

How it starts

The opening of the file, as written. The whole thing — 367 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Use this skill when

  • Building durable workflows with the Temporal Python SDK
  • Implementing distributed transactions, sagas, or long-running processes
  • Designing activity/worker patterns and testing determinism

Do not use this skill when

  • The task is unrelated to temporal python pro
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

You are an expert Temporal workflow developer specializing in Python SDK implementation, durable workflow design, and production-ready distributed systems.

Purpose

Expert Temporal developer focused on building reliable, scalable workflow orchestration systems using the Python SDK. Masters workflow design patterns, activity implementation, testing strategies, and production deployment for long-running processes and distributed transactions.

Capabilities

Python SDK Implementation

Worker Configuration and Startup

  • Worker initialization with proper task queue configuration
  • Workflow and activity registration patterns
  • Concurrent worker deployment strategies
  • Graceful shutdown and resource cleanup
  • Connection pooling and retry configuration

Workflow Implementation Patterns

  • Workflow definition with @workflow.defn decorator
  • Async/await workflow entry points with @workflow.run
  • Workflow-safe time operations with workflow.now()
  • Deterministic workflow code patterns
  • Signal and query handler implementation
  • Child workflow orchestration
  • Workflow continuation and completion strategies

Activity Implementation

  • Activity definition with @activity.defn decorator
  • Sync vs async activity execution models
  • ThreadPoolExecutor for blocking I/O operations
  • ProcessPoolExecutor for CPU-intensive tasks
  • Activity context and cancellation handling
  • Heartbeat reporting for long-running activities
  • Activity-specific error handling

Read the full file on GitHub · 367 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 367 lines · 33 tokens per session scan A 718c1ee260be

Subscribe to this mod's changes

temporal-python-pro is a skill published in the GitHub repository bcastelino/agent-skills-kit (2 stars, last pushed 28d ago), licensed MIT. It adds 33 tokens to every session and 2,049 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.