omh-data-pipelines
它能做什么
它规划 ETL 或流式任务、回填和重放,确保每次重新运行都是安全的,重放窗口有界,并且每次加载都经过检查。适合运行数据管道的数据工程师。
适用场景
- ✓当数据管道或回填产生了重复记录时。
- ✓当你计划重新运行或回填某个数据任务时。
- ✓当管道中的结构变更影响到下游数据时。
技能链接
https://github.com/rlaope/oh-my-hermes/blob/main/agent-skills/omh-data-pipelines/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我们的 Airflow ETL 回填产生了重复事件。请找出原因,并规划一次安全的重新运行。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体会找出在目标端使每条记录唯一的键,编写规则以避免重新运行时出现重复行,限定窗口范围,并要求每次加载前都通过检查才会被接受。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Data Pipelines
This is an OMH data-pipelines workflow skill, projected for Agent Skills hosts (Claude Code, Codex, Cursor, opencode, OpenClaw, pi).
Why This Exists
data-pipelines exists because pipeline work had no owner: backend owns a service's schema migration, data-analysis analyzes data it is handed, and relational-db owns a database's locks and indexes, while a backfill that duplicated events or a schema change with unknown readers reached memory and event lanes with no idempotency contract or replay bound at all.
First Steps
- Ask what makes a row unique at the sink before planning any rerun.
- Bound the window and the targets before ordering any replay or backfill step.
Do Not Use When
- The ask is a service's own database migration, API, or queue design; use
omh-backend. - The ask is analyzing, charting, or summarizing a dataset that was handed over; use
omh-data-analysis. - The ask is a slow query, an index, or DDL locking a live table; use
omh-relational-db. - The ask is remembering or syncing what the assistant knows about the user.
Examples
Good example:
- Prompt: our airflow etl backfill is producing duplicate events
- Expected behavior: Find the sink's unique key, name the append that duplicated rows, write the idempotency contract (event-id dedupe or partition overwrite), then bound the backfill window and gate it on key uniqueness and row count against the prior window.
- Why: Rerunning an appending backfill doubles the duplicates it was meant to fix.
Bad example:
- Prompt: just delete the duplicates and rerun the whole history
- Expected behavior: Refuse the unbounded rerun: fix the write to be idempotent first, then backfill a bounded window behind a quality gate.
- Why: Deleting duplicates without fixing the write guarantees the next rerun duplicates again.
Completion Checklist
- The sink's unique key and the idempotency contract are stated.
- Every replay or backfill is bounded by window and target.
- Every downstream reader of a schema change is named with its impact.
- Every load names its data-quality gate and the value that stops it.
- OMH ran nothing, and every count cites observed output or is marked unverified.
Recovery Notes
- If no unique key exists at the sink, the first step is defining one; say so before any rerun.
- If lineage is unavailable, list readers found by search and mark the map incomplete.
When to Use
Use when a batch or streaming data pipeline needs planning or repair: an ETL, ELT, Airflow, dbt, Spark or Kafka job; a backfill or a replay of past events; duplicate or missing rows; a schema change whose downstream readers are unknown; a lineage question; or a data-quality regression. The output is the lineage, the schema change's downstream impact, an idempotency contract, a bounded replay or backfill plan, and the data-quality gate each load must pass; OMH runs no job and reads no warehouse.
Strong routing signals: `data-pipelines`, `data pipeline`, `data pipelines`, `etl`, `elt`, `etl pipeline`, `etl job`, `etl backfill`, `airflow dag`, `airflow etl`, `airflow backfill`, `dagster`, `dbt model`, `dbt run`, `spark job`, `kafka topic`, `kafka events`, `kafka consumer`, `backfill`, `data backfill`, `replay events`, `replay the events`, `event replay`, `idempotent`, `idempotency`, `exactly once`, `exactly-once`, `duplicate events`, `lineage`, `data lineage`, `data quality`, `data quality check`, `schema evolution`, `late arriving data`, `dead letter queue`, `batch job`
Catalog Metadata
Category: planning
Phase: data-pipelines
Quality tier: idempotent-replay-gated
Reasoning demand: standard
Quality bar:
- Find what makes a row unique at the sink before proposing any rerun.
- Load
references/pipeline-method.mdfor the idempotency patterns, the schema compatibility table, the replay and backfill procedure, and the quality checks instead of recalling them. - Map lineage from the orchestrator's graph first and mark anything found only by search.
- Treat duplicates as an idempotency defect, not a cleanup task: fix the write, then repair the rows.
- Keep prepared, run, and verified as separate states for every load and check.
Required inputs:
- the pipeline: its orchestrator, its sources, its sinks, and its schedule or trigger
- the unit of the problem: the table, topic, or model, and the time window affected
- what makes a row unique at the sink: the natural key, the event id, or the partition
- the do
常见问题
它会改动我的生产数据吗?
它规划安全的重新运行。每次加载都以你观察到的检查结果为前提。
它是用来做数据库性能调优的吗?
不是。慢查询和索引由关系型数据库技能负责。
它涵盖数据分析吗?
不涵盖。分析数据集是单独的技能。
详情
作者的原始描述
[omh] Data pipeline work -- an ETL or streaming job, a backfill or replay, duplicate events, a schema change downstream, a lineage question, a data-quality regression: make every rerun idempotent, bound every replay, and gate each load on observed checks. Use when the user says: data-pipelines, data pipeline, data pipelines, etl, elt, etl pipeline, etl job, etl backfill.
repo: rlaope/oh-my-hermes
热度
- GitHub 星标
- 5.1k
- 排名
- #15094
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
omh-accessibility-audit
5.1k帮你的智能体检查某个界面或流程是否存在无障碍问题,例如键盘使用、屏幕阅读器标签、对比度和触控目标大小。
omh-adversarial-consensus
5.1k在你做出决定之前,帮你的智能体从几个独立角度质疑一个技术方案,然后总结哪些观点经得起推敲。
omh-agent-debug
5.1k帮你的智能体找出另一个 AI 智能体为何卡住、陷入循环或偏离任务,并提出最小且安全的恢复方法。
omh-agent-instructions
5.1k帮你的智能体编写或更新指令文件,例如 AGENTS.md 或 CLAUDE.md,告诉 AI 工具如何在项目中工作。