backfill
Plan and execute historical data backfills with bounded scope, deterministic transformations, idempotent partitions, capacity controls, validation…
by Dadmin88★ 52 GitHub stars
Install backfill 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
About this skill
Backfill
Use when historical records must be recomputed, corrected, enriched, migrated, or populated after a pipeline/schema/logic change.
Procedure
- Define the exact historical scope, target dataset/fields, transformation revision, source-of-truth inputs, and reason the backfill is needed.
- Estimate record/byte volume, read/write load, runtime, cost, rate limits, storage growth, and impact on live pipelines or databases before execution.
- Partition the work into deterministic bounded units with stable identifiers or ranges so progress can be retried, audited, and resumed.
- Make each unit idempotent or define a safe replace/upsert strategy. Re-running a completed partition must not duplicate or compound the transformation.
- Freeze or version the transformation and dependencies used for the run so a multi-day backfill does not silently change behavior midstream.
- Define concurrency and throttling based on source/target capacity. Protect production latency and live ingestion with explicit limits and pause controls.
- Track checkpoint/progress, failures, retries, input/output counts, and transformation version. Failed partitions should be identifiable without rescanning everything.
- Validate a small representative sample and aggregate invariants before expanding, then validate counts, quality rules, distributions, and downstream effects after completion.
- Define how downstream caches, aggregates, indexes, materializations, or consumers are refreshed or invalidated after historical values change.
- Preserve run metadata and cleanup temporary state only after the final dataset and dependent outputs are verified.
Decision rules
- A backfill is a production workload and must respect production capacity.
- Never rely on “run the script again” unless the operation is actually idempotent or replace-safe.
- Historical correction can change downstream business metrics; coordinate consumer expectations when semantics change.
- Prefer bounded resumable work over one uncheckpointed full-table/full-history job.
Quality gate
The backfill is complete when every intended partition is accounted for, retries cannot corrupt results, the exact transformation is traceable, live systems remained within accepted limits, data quality and downstream reconciliation are verified, and the run can be audited or resumed from recorded state.
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the backfill skill do?
Plan and execute historical data backfills with bounded scope, deterministic transformations, idempotent partitions, capacity controls, validation, resumability, and safe downstream reconciliation.
How do I install the backfill 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 backfill skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…