Skip to content
Back to skills

Data Pipeline Design

ASecurity

Designs idempotent, testable batch pipelines with safe backfills and data quality checks. Use it when planning or reviewing a scheduled data job.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added November 15, 2026
ai-agents

Security analysis

A100/100

Scanned November 15, 2026

npx -y skills add workspace-templates/ai-agent-templates --skill data-pipeline-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Pipeline Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Pipeline Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/workspace-templates-data-pipeline-design/badge)](https://www.skillsdirectory.com/skills/workspace-templates-data-pipeline-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-pipeline-design
description: Designs idempotent, testable batch pipelines with safe backfills and data quality checks. Use it when planning or reviewing a scheduled data job.
---

# Data pipeline design

Design for the rerun. Assume every job will fail midway and be started again.

## Steps

1. Define the contract: source, destination, schedule, the grain of the output, and who consumes it. Write the output schema with types and a unique key.
2. Partition by processing window (usually a date). Each run takes the window as a parameter and never reads "now" or "latest" implicitly.
3. Make writes idempotent: overwrite the partition, or `MERGE`/upsert on the key. Write to a staging location, validate, then swap or publish atomically. Never append blindly.
4. Separate stages: extract (raw, immutable copy), transform (pure functions of raw data), load. Keep transform code free of I/O so it can be unit tested with a tiny fixture.
5. Add quality checks between stages: row count against the source within a tolerance, non-null keys, unique keys, value ranges, and freshness. A failed check stops the run and alerts; it does not warn and continue.
6. Plan late and changed data: reprocess a trailing window (for example 3 days) or key on event time with a watermark.
7. Document the backfill: the command, the date range parameters, the expected runtime, and how to verify afterwards.

## Rules

- No hidden state: no files in local temp directories, no global counters.
- Secrets come from the environment, never from the repo.
- Prefer boring tools already in the stack over a new orchestrator.

## Report

A stage diagram in text, the key and partition choices, the checks with thresholds, the failure modes considered, and the backfill steps.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.