Command Palette

Search for a command to run...

UnylyUnyly
Back to skills

temporal-pipelines

FreeNo executable scriptsNot checked

Create, edit, run, and debug Temporal workflow pipelines — pure Python Temporal workflows (with fan-out/fan-in, child workflows, signals, reusable activities)…

teklinerby tekliner★ 17 GitHub stars

About this skill

Temporal Workflow Pipelines

Thesis: A custom pipeline is a Python Temporal @workflow.defn authored with pipeline_sdk and driven entirely through 19 MCP tools. The path through this skill:

  • §1–§2 — understand the model and the tools
  • §3 — design within the 4 GiB / 2-core / 4-activity pod budget
  • §4 — author from scratch through a strict validate-before-upload loop
  • §5 — PATCH an existing pipeline (never regenerate)
  • §6 — debug a failing run (code examples live in the cookbook)
  • §7 — finish with a skeptic-verify + visualize pass

Pipeline lifecycle:

graph LR
    Scope["Scope §4.1"] --> Author["Author §4"]
    Scope --> Edit["Edit §5"]
    Author --> Gate["Validate gate §4.5"]
    Edit --> Gate
    Gate --> Run["Run §4.6"]
    Run --> Finish["Finish: verify + visualize §7"]

Route first: a new pipeline (or a full rebuild) → start at §4 (Scope). Editing one that already exists → jump straight to §5 (pull the live code first, PATCH, never regenerate from memory).

Read the matching reference file BEFORE writing code. The references/ files are part of this skill — when a row matches the task at hand, Read the file and work from it, not from memory of it:

When the task involves… Read first
writing or editing any workflow code (§4.4 / §5) references/code-conventions.md — mandatory, in full
les_extract / ch_load / register_data_table / credential wrappers references/reusable-activities.md
a recurring shape: minimal smoke test · write a file to S3 · incremental cursor · call a source API via proxy · call an internal MCP tool (email, ClickHouse) · stream a large file · warehouse via native driver · resumable long activity · parallel fan-out references/cookbook.md — copy the matching recipe, adapt
PipelineState (cursors, bookmarks, dedup) references/pipeline-state.md
a failed / stuck / empty run references/debugging-and-troubleshooting.md
the final verify pass (§7.1) references/code-conventions.md — same rules, applied as the skeptic's checklist (protocol at the end)
graph_ui / details_ui (§7.2) references/visualization.md + references/graph-ui-template.html + references/details-ui-template.html

1.0 What it is & when to use it

A pipeline is a Python Temporal workflow (@workflow.defn class) that orchestrates reusable activities with Temporal's full power: deterministic replay, fan-out/fan-in, child workflows, signals, heartbeats, retries, durable scheduling. Code is stored in Postgres, shipped to S3 by the Workflow Manager API, run by a per-tenant K8s worker pod; each run is a first-class, observable, recoverable Temporal workflow.

It can do practically any pipeline. Lead with the marketing outcome, technology second — Improvado customers are media buyers and marketing ops. When the user is vague or just exploring ("what can this do?", "что можно сделать?", a half-formed idea), don't make them spec it cold — proactively pitch 3-5 concrete options from §1.1, rephrased to their business, and let them pick one to build.

1.1 Marketing use-cases to suggest (pick 3-5, rephrase naturally)

  • Long-running backfills with resumability — reprocess 12 months of Meta Ads spend by day; survives pod restarts with zero lost work.
  • Cross-platform audience sync — pull a CDP audience, fan-out to Meta / Google / TikTok / LinkedIn in parallel, aggregate per-platform success.
  • Durable ETL with cursors — nightly incremental extract via a PipelineState cursor; any step fails → Temporal retries from the last checkpoint.
  • Multi-step campaign launches — read a brief from Google Sheets → validate UTM/naming → upload creatives → create campaigns → verify; each step isolated, one failure doesn't cascade.
  • Reverse ETL with fan-out — push attribution into HubSpot / Salesforce per workspace using child workflows.
  • Data-quality watchdogs on cron — scan tables for freshness every 30 min, alert on stale data.
  • Budget pacing with signals — watch daily spend vs. plan, receive pause_campaign signals, call ad-platform APIs.
  • Creative-intake with heartbeat — poll SFTP for new assets every few minutes, process in batches, PipelineState dedupes already-seen files.

Drop into generic ETL phrasing only after the user signals a technical integration.

Scope boundary — hand off, don't stretch. Pure DTS-UI extraction → /discovery-api, /field-mapping. UI/React → /react-best-practices. General Python unrelated to @workflow.defn → just write it, no skill.


2.0 Architecture & tools

Everything — run, inspect, debug — goes through the MCP tools below. agency_uuid/workspace_id always come from tenant context, never from agent args.

System components:

graph TD
    Agent["AI Agent (chat)"] --> MCP["19 MCP tools"]
    MCP --> WM["Workflow Manager API"]
    WM --> S3["S3 code store"]
    WM
Full SKILL.md on GitHub

Install temporal-pipelines in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

references/code-conventions.mdreferences/cookbook.mdreferences/debugging-and-troubleshooting.mdreferences/details-ui-template.htmlreferences/graph-ui-template.htmlreferences/pipeline-state.mdreferences/reusable-activities.mdreferences/visualization.md

FAQ

What does the temporal-pipelines skill do?

Create, edit, run, and debug Temporal workflow pipelines — pure Python Temporal workflows (with fan-out/fan-in, child workflows, signals, reusable activities) authored via `improvado-pipeline-sdk` and executed through the Workflow Manager API. Use when user asks about Temporal pipelines, Temporal workflow pipelines, `@workflow.defn`, tenant workflows, scheduled Temporal pipelines, or the `pipeline_sdk` / `improvado-pipeline-sdk`.

How do I install the temporal-pipelines skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the temporal-pipelines skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare temporal-pipelines with