backfill-runbook

backfill-runbook is a skill for Claude Code, Codex from zakelfassi/skills-driven-development. It costs 76 tokens per session (1,038 once invoked), scanned A, original, MIT.

A runbook for safely reprocessing historical data for one stage of a data pipeline. A backfill fills in results that were missing or added after the original processing.

In plain words
What is it for?
Use it to estimate data volume, perform a dry run, back up an existing table, process date ranges in chunks, and verify row counts.
Why use it?
It reduces the risk of overloading a database, overwriting data incorrectly, or failing to check whether each batch worked.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python scripts/backfill.py \.

Good fit Use it to estimate data volume, perform a dry run, back up an existing table, process date ranges in chunks, and verify row counts.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/zakelfassi/skills-driven-development
agentmods
npx agentmods add skills/zakelfassi/skills-driven-development/backfill-runbook

Made for: Claude Code, Codex.

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 backfill-runbook

README.md
[![agentmods](https://agentmods.dev/badge/skills/zakelfassi/skills-driven-development/backfill-runbook/github.svg)](https://agentmods.dev/skills/zakelfassi/skills-driven-development/backfill-runbook)
Your own site
<a href="https://agentmods.dev/skills/zakelfassi/skills-driven-development/backfill-runbook"><img src="https://agentmods.dev/badge/skills/zakelfassi/skills-driven-development/backfill-runbook/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 backfill-runbook

Your own site · 80×15
<a href="https://agentmods.dev/skills/zakelfassi/skills-driven-development/backfill-runbook"><img src="https://agentmods.dev/badge/skills/zakelfassi/skills-driven-development/backfill-runbook.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,038 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.
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.00076 $0.01038
Opus 5.5 $0.00030 $0.00415
Sonnet 5.5 $0.00015 $0.00208
Haiku 4.5 $0.00008 $0.00104

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

Security

Grade A, and why

backfill-runbook 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 3mo 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.

examples/data-pipeline/skills/backfill-runbook/SKILL.md · 96 lines

How it starts

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

Backfill Runbook

Safely reprocess historical data for a pipeline stage without locking tables or losing existing rows.

Inputs

  • Stage name (e.g., customer_ltv)
  • Start date (YYYY-MM-DD)
  • End date (YYYY-MM-DD, defaults to yesterday)
  • Chunk size (number of days per chunk, defaults to 7)
  • Dry run? (boolean, defaults to true — always start with dry-run)

Steps

  1. Scope the backfill Estimate the volume:

    select count(*), min(event_date), max(event_date)
    from raw.{source_table}
    where event_date between '{start_date}' and '{end_date}';
    

    Multiply by your stage's typical row-expansion ratio. If the result is >10M rows, reduce the chunk size to 3 days.

  2. Dry-run the first chunk

    python pipelines/transforms/{stage_name}/transform.py \
      --start {start_date} \
      --end {start_date + 6 days} \
      --dry-run
    

    The dry-run prints the SQL or DataFrame operations without writing output. Review for correctness before proceeding.

  3. Back up the target table (if it exists)

    create table {stage_name}_backup_{today} as
    select * from {layer}.{stage_name};
    

    Keep the backup for 7 days.

  4. Execute in chunks

    python scripts/backfill.py \
      --stage {stage_name} \
      --start {start_date} \
      --end {end_date} \
      --chunk-days {chunk_size} \
      --pause-seconds 5
    

    The backfill script:

    • Processes one chunk at a time
    • Pauses {pause_seconds} between chunks (reduces lock contention)
    • Logs progress: [chunk {n}/{total}] {start}–{end}: {rows_written} rows
    • Writes a checkpoint file (backfill-{stage}-{run_id}.checkpoint) so it can resume after a failure
  5. Verify each chunk (or verify the full range after completion)

    -- Row count by date
    select event_date, count(*) as rows
    from {layer}.{stage_name}
    where event_date between '{start_date}' and '{end_date}'
    group by event_date
    order by event_date;
    

    Compare against the raw source counts from step 1. Flag any date with zero rows.

Read the full file on GitHub · 96 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. 3mo ago First seen · 96 lines · 76 tokens per session scan A 7fccf437a7f3

Subscribe to this mod's changes

backfill-runbook is a skill published in the GitHub repository zakelfassi/skills-driven-development (18 stars, last pushed 28d ago), licensed MIT. It adds 76 tokens to every session and 1,038 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-08-30.

Related

backfill-runbook compared with skills from other repositories

backfill-runbook next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
backfill-runbookzakelfassi/skills-driven-developmentSkill1828d agoMITA76Claude Code, Codex
dbt-sf-to-bq-translatorgoogle/skillsSkill26ktodayApache-2.0A93Claude Code, Codex
bigquery-bigframesgoogle/skillsSkill26ktodayApache-2.0A61Claude Code, Codex
google-cloud-solution-hybrid-search-alloydbgoogle/skillsSkill26ktodayApache-2.0A115Claude Code, Codex
similarity-search-patternsforyourhealth111-pixel/Vibe-SkillsSkill3.9k25d agoApache-2.0A30Claude Code, Codex
coverage-trackerelvisun/newsjackSkill1.7k9d agoMITA47Claude Code
vector-db-rag-expertroedyrustam/vibes-plugSkill132yesterdayMITA47Cursor