data-pipeline

data-pipeline is a skill for Claude Code from kensaurus/cursor-kenji. It costs 68 tokens per session (1,755 once invoked), scanned A, original, MIT.

A data-pipeline guide for moving, importing, synchronising, and aggregating data through scheduled jobs, queues, edge functions, or ETL processes.

In plain words
What is it for?
Use it for data imports, system synchronisation, nightly calculations, deduplication, backfills, and jobs whose numbers become wrong after a retry.
Why use it?
It prevents retries and overlapping runs from creating duplicate, partial, or incorrect data by requiring safe writes and repeatable processing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cursor-kenji plugin — 132 skills, 63 commands, 6 agents, 1 hook, 3 MCP servers shipped together

Good fit Use it for data imports, system synchronisation, nightly calculations, deduplication, backfills, and jobs whose numbers become wrong after a retry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kensaurus/cursor-kenji/data-pipeline
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.

Any agent
npx skills add kensaurus/cursor-kenji --skill data-pipeline
Clone the repo
git clone --depth 1 https://github.com/kensaurus/cursor-kenji

Made for: Claude Code.

Or install cursor-kenji, the plugin that ships this one along with the rest of its 132 skills, 63 commands, 6 agents, 1 hook, 3 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/data-pipeline/github.svg)](https://agentmods.dev/skills/kensaurus/cursor-kenji/data-pipeline)
Your own site
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/data-pipeline"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/data-pipeline/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/kensaurus/cursor-kenji/data-pipeline"><img src="https://agentmods.dev/badge/skills/kensaurus/cursor-kenji/data-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,755 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00068 $0.01755
Opus 5.5 $0.00027 $0.00702
Sonnet 5.5 $0.00014 $0.00351
Haiku 4.5 $0.00007 $0.00176

Measured 1mo ago against content hash 2e627ca1074c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

data-pipeline 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 1mo 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/data-pipeline/SKILL.md · 110 lines

How it starts

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

Data Pipeline Correctness

Degree of freedom: MIXED. Layering and window design [HIGH freedom]; idempotency, atomic writes, overlap lock, and the DoD [LOW freedom — run exactly].

How to reason

  1. Observe — job, retry path, write targets, schedule
  2. Interpret — at-least-once vs atomic vs contract vs overlap
  3. Classify — upsert / window-recompute / quarantine / lock / watermark
  4. Severity — retry double-count outranks a missing metric

Worked example

Observe: nightly refresh_order_stats does count = count + 1; cron overlapped twice; dashboard totals jumped. Interpret: at-least-once delivery + non-idempotent delta. Classify: recompute-and-replace the day window; pg_try_advisory_lock; persist a watermark. Verify: re-run the same window → identical rows; overlap skipped; pipeline_runs recorded.

Self-critique before reporting

  • Idempotent — same-window re-run proven identical, not assumed
  • Atomic — mid-fail leaves no half-written batch
  • Locked — the scheduled job has an overlap guard
  • Right owner — schema/constraints → audit-db-schema; post-hoc corruption hunt → plan-data-integrity

Pipelines fail silently: a retry double-counts, a partial write corrupts a table, a schema drift poisons a dashboard, and nobody notices until the numbers are wrong. This skill bakes correctness in at build time. It complements post-hoc data-integrity audit skills (which detect these after the fact) and the Supabase plugin (DB/Edge Functions/RLS).

When this fires

Any job that moves, transforms, or aggregates data: ingestion/ETL/ELT, scheduled aggregations, edge-function workers, pg_cron jobs, queue consumers, webhook processors, backfills, materialized-view refreshes.

Non-negotiables (the 5 that prevent silent corruption) [LOW freedom — run exactly]

  1. Idempotency — running the same job twice must not change the result. Retries, at-least-once queues, and overlapping cron fires are guaranteed, not hypothetical.
  • Use INSERT ... ON CONFLICT (natural_key) DO UPDATE (upsert), not blind INSERT.
  • Derive a deterministic dedup key from the source event, not now() or a random id.
  • For aggregates: recompute-and-replace a window, or use idempotent deltas — never count = count + 1 on a path that can retry.

Read the full file on GitHub · 110 lines

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. 1mo ago Changed · +4 lines · -13 tokens per session 2e627ca1074c
  2. 1mo ago First seen · 106 lines · 81 tokens per session scan A a609252f1351

Subscribe to this mod's changes

data-pipeline is a skill published in the GitHub repository kensaurus/cursor-kenji (9 stars, last pushed 26d ago), licensed MIT. It adds 68 tokens to every session and 1,755 once invoked, about $0.0003 per session on Opus 5.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-09-03.