/fde-data:data-pipeline-workfrom fde-data
Builds or changes ETL/ELT, warehouse, and reporting pipelines where failure modes are silent — data quality decay, late-arriving records, backfill, idempotency, lineage, and reconciliation. Use when pipelines produce wrong numbers or reports disagree with source systems.
Ships in fde-data. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Where the failure mode is a wrong number, not an error.
Analytics and reporting are roughly half of large-organization IT, and pipelines fail in a way services don't: they keep running. A service that breaks throws errors, pages someone, and gets fixed within the hour. A pipeline that breaks produces plausible numbers that are wrong, and nobody notices until month-end — or until a regulator asks, or until a decision has already been made on them.
That single difference drives everything here. In service work you optimize for fast detection of loud failures. In pipeline work you optimize for detecting silence — building the checks that turn a quiet wrong answer into a loud one.
The second thing that catches service engineers out: pipelines are re-run. Re-running a service request is an edge case; re-running a pipeline is Tuesday. Idempotency is not a nice property here, it is the baseline requirement.
data-archaeologyincident-triage, then come backResolve <workspace> before reading or writing artifacts: use FDE_WORKSPACE if set (report an unavailable explicit path rather than falling back), otherwise the charter's recorded Location (look in .fde/ and ../*-fde/), then an existing .fde/ or ../<repo>-fde/. If none exists, run core fde-orient; do not create a second workspace. All artifact paths below use that location. Follow core workspace conventions for headers; preserve existing sections when appending.
<workspace>/traces/data-model.md — the shape and eras of the source data<workspace>/02-system-map.md — where the pipeline sitsBefore changing anything, know the full path: source system → extraction → transformations → destination → the report someone actually reads.
For each hop record what it does, what it filters, what it joins, what it aggregates, and where the grain changes. Grain changes — one row per order becoming one row per customer per day — are where numbers stop reconciling and where almost every disputed figure originates.
Name the source of truth explicitly. When a report and the operational system disagree, you need to have decided in advance which one is right.
Before touching a pipeline that produces a figure someone uses, find out what that figure currently means. Not what it should mean — what it does.
Does "revenue" include tax? Refunds? Cancelled orders? In which currency, converted at which rate, on which date? Is it booking date or settlement date?
These are almost never documented, they are frequently inconsistent between reports, and changing one silently is how you break a business process. Where the current definition is wrong, that's a finding to raise — not to fix quietly.
Assume every step runs more than once, because it will: backfills, late data, recovery from failure, a fixed bug.
today(), now() — makes re-runs produce different answers. Parameterize the date and pass it in.That last point is the most common defect in enterprise pipelines and the reason backfills produce wrong numbers.
Real source systems deliver late, deliver twice, and amend records after the fact.
The check that turns a silent failure into a loud one, and the single highest-value thing in this skill.
Compare the pipeline's output against the source of truth on a schedule: row counts by day, sums of the key measure, and distinct counts of the main entity. Alert on divergence beyond a stated tolerance.
Without reconciliation, a pipeline that silently drops 2% of records looks completely healthy. With it, you know within a day.
Also assert within the pipeline: row counts don't drop unexpectedly between stages, null rates stay within expected bounds, key columns stay unique where they should, and totals survive each transformation. Fail the run loudly rather than writing a plausible wrong answer.
A backfill is a production operation with the same discipline as a deploy — see deploy-runbook.
Establish: how far back, in what batch size, at what cost (warehouse compute is metered and backfills are expensive), how long it will take, whether it can run alongside the normal schedule or must be sequenced, and how you verify it worked.
Verify a backfill by reconciliation, not by completion. "The job finished" is not evidence; matching the source is.
Dashboards, scheduled reports, downstream pipelines, extracts to partners, and models. Each is a consumer whose numbers change when yours do.
A changed definition — even a corrected one — will be noticed by someone whose figures moved. Tell them beforehand. A silently corrected number is indistinguishable from a new bug to the person reading it, and you will spend a week proving otherwise.
Write to <workspace>/traces/pipeline-<name>.md:
# Pipeline — <name>
**Engagement:** <name> · **Author:** FDE · **Date:** <YYYY-MM-DD>
**Source of truth:** <system> · **Confidence:** <what's confirmed vs. inferred>
**Status:** draft
**Source revision:** <repo>@<short SHA>, or "no repository yet"
## Lineage
| # | Stage | Does | Grain | Idempotent | Confidence |
|---|---|---|---|---|---|
| 1 | Extract `orders` | CDC → landing | one per order | yes — upsert on `order_id` | confirmed |
| 2 | Transform | joins customer, converts currency | one per order | yes | confirmed |
| 3 | Aggregate | daily by region | **one per region per day** | yes — partition replace | confirmed |
| 4 | Report | finance dashboard | — | — | — |
## Semantics
| Measure | Definition as built | Documented? | Notes |
|---|---|---|---|
| `revenue` | Net of refunds, excl. tax, booking date, EUR @ daily close | **no** | Differs from the ops dashboard, which uses settlement date |
## Late, duplicate, amended
| Case | Current behavior | Correct? |
|---|---|---|
| Late arrival | Restates the affected day | yes |
| Duplicate delivery | Deduped on `order_id` | yes |
| Cancellation after aggregate | **Source silently drops the row** — aggregate not corrected | **no — defect** |
## Reconciliation
| Check | Against | Tolerance | Schedule | Alerts to |
|---|---|---|---|---|
| Daily row count | source `orders` | 0 | daily 06:00 | #data-oncall |
| Daily revenue sum | source | 0.01 | daily 06:00 | #data-oncall |
## Consumers
| Consumer | Owner | Notified of change |
|---|---|---|
## Backfill
**Range:** · **Batches:** · **Est. duration/cost:** · **Verification:** reconciliation over the range
Treating pipeline failure like service failure. Pipelines keep running and produce wrong answers. Build for detecting silence.
Non-idempotent steps. Re-running is routine, not exceptional.
Wall-clock dependence. now() inside a transformation makes backfills produce different answers than the original run.
No reconciliation. A pipeline silently dropping 2% looks perfectly healthy.
Changing a measure's definition quietly. Even a correction. Whoever reads it can't distinguish that from a new bug.
Not establishing what the number currently means. Almost never documented, frequently inconsistent, and load-bearing for someone's process.
Missing the grain change. Where numbers stop reconciling, and where nearly every dispute originates.
Verifying a backfill by completion. Finished is not correct. Reconcile.
Ignoring silent source deletes. Undetectable downstream, and they quietly corrupt every aggregate built on them.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
etl, elt, data-warehouse, data-quality, data-lineage, reconciliation
npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-data3 skills in this plugin
/data-archaeologyReconstruct an undocumented data model from whatever exists - migrations, DDL, ORM definitions, and most reliably the queries actually issued - then surface the gap between the schema's stated intent and its real use. Use when a schema is undocumented, when the domain model is unclear, before a migration or reporting change, when column names do not match their contents, or when you need to know what the data actually looks like rather than what the schema claims. The schema tells you what is allowed; the data tells you what happens./db-change-managementChange a schema against a live production database without taking an outage - expand and contract patterns, zero-downtime DDL, lock and replication-lag behavior on large tables, reversibility, and coordinating the migration with the application deploy that depends on it. Use before any schema change on a system that stays up, when adding or dropping a column on a large table, when a migration must be reversible, or when the deploy order between schema and application matters. Distinct from ordinary application change because the failure mode is a locked table, not a failed test.Other plugins' skills for the same job