temporal-pipelines
БесплатноБез исполняемых скриптовНе проверенCreate, edit, run, and debug Temporal workflow pipelines — pure Python Temporal workflows (with fan-out/fan-in, child workflows, signals, reusable activities)…
от tekliner★ 17 звёзд на GitHubОб этом скилле
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
PipelineStatecursor; 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_campaignsignals, call ad-platform APIs. - Creative-intake with heartbeat — poll SFTP for new assets every few minutes, process in batches,
PipelineStatededupes 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
Установить temporal-pipelines в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл temporal-pipelines?
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`.
Как установить скилл temporal-pipelines?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл temporal-pipelines запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic