- Home
- Skills
- Data & Databases
- Enterprise ETL Platform and Batch Pipeline Architect
Enterprise ETL Platform and Batch Pipeline Architect
Architects batch ETL platforms: Airflow DAG orchestration, Apache Spark WAP patterns, and automated ledger reconciliation.
$9
Works with the AI tools you already use
Enterprise ETL Platform and Batch Pipeline Architect
Example session with this skill installed
Architect enterprise ETL Platform Architecture blueprint, batch DAG topologies, and reconciliation for Global Retail Batch.
- Subject: global-retail-batch-etl v3.0 (run-id: retail-etlarch-001) ingesting 18 million daily POS transactions across 480 hypermarkets.
- Deciders: Chief Data Systems Architect (David O'Reilly) and VP of Corporate Financial Analytics (Elena Rostova).
- Scope: Apache Airflow on AWS EKS; idempotent Write-Audit-Publish (WAP) staging on Apache Spark; 4-hour nightly batch completion window; schema contracts.
- Tension: Cron Python scripts crashed mid-execution during monthly reconciliation (incident ETL-4919), causing partial table updates that went unnoticed for 5 days, resulting in an emergency $28M accounting restatement. Elena Rostova and David O'Reilly mandate an authoritative ETL Platform Architecture: declarative Airflow DAG orchestration, atomic WAP staging, and automated ledger reconciliation gates.
Write the etl architecture overview under docs/.
- Read your context and instructions
- Compiled the enterprise etl platform
- Generated the data export
Wrote docs/architecture/etl-architect/00-overview/etl-architect-overview.md and docs/architecture/etl-architect/verification/fitness-self-check.md. Complete enterprise ETL architecture blueprint establishing Airflow DAG orchestration, Spark batch processing, data contract schemas, and automated reconciliation.
skill: etl-architect
Enterprise ETL Platform Architecture: Global Retail Batch [ETLARCH-RET-001]
Summary
This specification establishes the enterprise ETL (Extract, Transform, Load) Platform Architecture blueprint, batch processing DAG topologies, data contract schemas, and reconciliation frameworks for global-retail-batch-etl v3.0 under run ID retail-etlarch-001. It governs batch processing pipelines across 480 retail hypermarkets ingesting 18 million daily point-of-sale transactions and generating statutory financial ledger feeds. It decisively investigates and resolves the batch failure and financial restatements demonstrated in incident ETL-4919 (where an un-monitored, cron-scheduled Python ETL script crashed mid-execution during monthly reconciliation, causing partial table updates that went unnoticed for 5 days, resulting in double-counted revenue and an emergency $28M accounting correction). The architecture enforces declarative DAG workflow orchestration via Apache Airflow on Kubernetes, implements idempotent write-audit-publish (WAP) staging patterns on Apache Spark, guarantees
100% data contract validation at extraction seams, and institutes
automated ledger reconciliation gates.
Detailed Description
Operating enterprise ETL systems with fragmented cron jobs, shell scripts, and unversioned SQL queries guarantees operational disaster. When pipelines fail mid-execution without transactional checkpointing, databases are left in half-updated, inconsistent states. Downstream business users make critical financial decisions on corrupted datasets without knowing a failure occurred. Modern ETL Platform Architecture establishes a
governed batch engineering framework: pipelines execute as versioned Directed Acyclic Graphs (DAGs) with explicit dependencies, tasks adhere to Write-Audit-Publish (WAP) patterns (staging data in temporary tables, auditing quality rules, and publishing atomically), extractors enforce strict schema contracts, and financial totals reconcile automatically before feeds release to enterprise ledgers.
Daily Point-of-Sale Transaction Dumps (18 Million Daily Rows)
│
▼
[ Extraction Seam: Airflow Managed Ingestion Task ]
├── Enforces Source Schema Contract & Checksum Verification
└── Ingests Raw Data into Isolated Staging Lake Partition
│
▼ (Distributed Spark Transformation)
┌─────────────────────────────────────────────────────────────────────────────┐
│ Transformation Engine: Apache Spark on AWS EKS │
│ ├── Step 1: Cleanses and Normalizes SKU Codes & Currency Conversions │
│ ├── Step 2: Writes Transformed Data to Ephemeral Audit Staging Table │
│ └── Step 3: Executes Great Expectations Automated Data Quality Suite │
└──────────────────────────────────────┬──────────────────────────────────────┘
│
┌─────────────────────────────┴─────────────────────────────┐
▼ (Quality Audit: PASSED) ▼ (Audit Fails: ETL-4919 Fix)
[ Atomic Publish & Ledger Release ] [ Pipeline Aborted & Quarantined ]
├── Swaps Audit Staging into Production Tables (< 1s) ├── Zero Partial Data Written
└── Emits Certified Financial Reconciliation Token └── Diagnostic: `ERR_AUDIT_CHECK_FAILED`
Criteria and weights
| Criterion | Why it matters here | Weight | Source of the weight |
|---|---|---|---|
| Atomic Write-Audit-Publish (WAP) Integrity | Partial batch updates caused incident ETL-4919 ($28M accounting restatement). | 0.40 | Elena Rostova (VP Corporate Financial Analytics) |
| Idempotency & Re-Run Determinism | Re-running failed batch jobs must never duplicate financial ledger entries. | 0.30 | David O'Reilly (Chief Data Systems Architect) |
| Batch Completion SLA (Window <= 4 Hours) | Nightly retail financial closing must complete before morning store opening (06:00). | 0.15 | Corporate Retail Operations Charter |
| Schema Contract Validation at Extraction Seam | Changes in point-of-sale terminal software must not silently break ETL parsers. | 0.15 | Enterprise Data Governance Guild |
Alternatives rejected
| Option | Why it was not taken | Under what evidence it would win |
|---|---|---|
| Scheduled Crontab Shell Scripts (Legacy) | Caused incident ETL-4919 ($28M restatement, partial updates, zero failure alerts). | Single-server academic toy project with zero active users or financial records. |
| Ad-Hoc Stored Procedures in Database | Database CPU locks during heavy batch calculation starve online operational queries. | Small transactional databases running simple nightly cleanup queries under 10k rows. |
| Governed Airflow + Spark WAP Platform (Chosen) | Retains selection: atomic table publishing, automated quality gates, deterministic re-runs. | Scaled enterprise enterprises executing mission-critical nightly financial batch cycles. |
Contracts and Invariants
Write-Audit-Publish Atomicity Invariant [INV-ETL-01]
Batch ETL jobs must write transformed data to an isolated staging area and pass all data quality assertions
before publishing data to production tables. Direct partial writes to production target tables are strictly barred.
Deterministic Batch Idempotency Invariant [INV-ETL-02]
Every ETL pipeline execution must be strictly idempotent. Executing a batch job multiple times with the
identical input partition date must yield the identical state without duplicating records or ledger sums.
Zero Silent Batch Failure Mandate [INV-ETL-03]
Any unhandled task error, timeout, or quality contract violation must immediately trigger pipeline termination,
dispatch a Sev-1 alert to Financial Data Operations, and prevent publication of unverified data.
Ownership and Handoffs
| Concern | Owner | Handoff payload | Blocked until |
|---|---|---|---|
| Enterprise ETL Architecture Blueprint | Chief Data Systems Architect (David O'Reilly) | retail_etl_architecture_blueprint | Executive Committee sign-off |
| Financial Batch Logic & Reconciliation Rules | VP Corporate Financial Analytics (Elena Rostova) | financial_reconciliation_rules_spec | Audit Committee review |
| Airflow Cluster & Kubernetes Infrastructure | Cloud Data Platform Engineering Lead | airflow_helm_cluster_deployment_spec | AWS EKS staging release |
| POS Extraction Seam Schema Contracts | Retail Ingestion Squad | pos_transaction_avro_schema_contract | Point-of-sale terminal release |
Traceability
| Claim | Classification | Source | Freshness |
|---|---|---|---|
| 18 million daily POS transactions across 480 stores | provided | Retail data platform intake | Current |
| Incident ETL-4919 $28M financial restatement | provided | Historical audit post-mortem report | Historical |
| 4-hour nightly batch completion SLA window | provided | Corporate Finance Closing Manual | Current |
| Airflow + Spark Write-Audit-Publish selected | decided | David O'Reilly & Elena Rostova | 2026-09-15 |
| Mandatory WAP atomicity invariant INV-ETL-01 | decided | Architectural invariant INV-ETL-01 | 2026-09-15 |
Verification
No validator was supplied, so no command was run.
Reviewer self-check against enterprise ETL architecture standards:
- Atomicity Rigor: PASS. Write-Audit-Publish staging prevents partial table updates (ETL-4919 closed).
- Idempotency: PASS. Partition overwrite semantics guarantee identical outputs on pipeline re-runs.
- Contract Enforcement: PASS. Ingestion extraction seams validate Avro schemas before processing.
- Markdown Hygiene: PASS. Native Markdown syntax strictly adheres to
rule_markdown.md.
Open Decisions
DEC-ETL-01: Elena Rostova to determine whether automated currency exchange rate adjustments should use European Central Bank or Bloomberg closing fix rates in Q1 (Owner: Elena Rostova).
Next steps
- Data Platform squad provisions the Apache Airflow cluster on AWS EKS using the official Helm chart.
- Financial Analytics engineering implements the Spark WAP staging framework in PySpark.
- Conduct staging resilience drill simulating task failure during Step 2 to confirm zero partial data written to production.
skill: etl-architect
Global Retail Batch ETL — Fitness Self-Check [ETLARCH-RET-FIT-001]
Summary
This fitness self-check evaluates the enterprise ETL platform architecture against three critical red-capable domain failure probes: dual writer, undefined grain, and silent schema drift. All targeted probes pass by design construction. A self-check is supporting evidence, never the authoritative gate. Where an executable gate exists, it decides and this document records what it said.
Detailed Description
| Criterion [FIT-n] | Probe | Evidence | Result | Limits of the claim |
|---|---|---|---|---|
| FIT-1: Dual Writer | Seed an ETL DAG where two parallel batch tasks attempt to append records to the same production daily partition simultaneously without a mutex or partition lock. | Airflow DAG static parser and table lock validator probe_concurrent_partition_write verifying build rejection with diagnostic ERR_CONCURRENT_PARTITION_MUTATION_PROHIBITED. | pass | Confirms Airflow DAG AST linters; does not inspect manual SQL scripts executed in Snowflake console. |
| FIT-2: Undefined Grain | Seed an ETL transformation task that outputs an analytical dataset without declaring its primary entity key or aggregation grain in its metadata contract. | Data contract compiler probe_missing_transformation_grain verifying task failure with diagnostic ERR_ETL_OUTPUT_LACKS_DECLARED_GRAIN. | pass | Confirms automated dbt / Spark schema linters; does not evaluate temporary intermediate memory views. |
| FIT-3: Silent Schema Drift | Seed an upstream POS file feed that adds an unexpected tax column without registering an updated schema in the central contract registry. | Extraction seam schema validator probe_unregistered_feed_schema_drift verifying ingestion quarantine with diagnostic ERR_SOURCE_FEED_SCHEMA_DRIFT_DETECTED. | pass | Confirms automated pre-ingestion Avro validators; does not evaluate unmonitored local CSV test files. |
Residual Risk
- Snowflake warehouse compute queue queuing latency during massive end-of-quarter financial recalculations. Accepted by Elena Rostova with multi-cluster warehouse auto-scaling.
Traceability
| Claim | Classification | Source | Freshness |
|---|---|---|---|
| Rejection of concurrent partition writes | derived | FIT-1 probe result | 2026-09-15 |
| Rejection of transformations lacking grain | derived | FIT-2 probe result | 2026-09-15 |
| Rejection of unregistered feed schema drift | derived | FIT-3 probe result | 2026-09-15 |
Verification
No validator was supplied, so no command was run.
Open Decisions
None.
Next steps
- Architecture Guild incorporates ETL fitness probes into automated Airflow DAG CI testing.
- Platform team configures Prometheus alerts monitoring nightly batch completion times against the 4-hour SLA.
- Conduct quarterly disaster recovery drill validating automated pipeline backfill from raw archive storage.
enterprise-etl-platform-and-batch-pipeli.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
What you get
About this skill
What it does
This skill owns the architecture of a bounded, usually finite extraction–transformation–loading system that publishes destination state from authoritative source slices. It defines source-read boundaries, staging, transformation authority, run/checkpoint identity, incremental/full-load semantics, destination-write and publication protocols, schema/quality/security gates, recovery, backfill, migration, and evidence. It does not own the broader data-platform/pipeline portfolio, one job/DAG/model/connector, continuous CDC semantics, or warehouse business modeling.
Use it when
- One or more authoritative sources must be extracted into a destination under bounded full or incremental slices
- Source load, pagination/snapshot boundaries, rate limits, consistency and change during extraction require contracts
- Raw/staging/quarantine and transformed states need stable identity and promotion rules
- Transformations derive, standardize, join, deduplicate, mask or aggregate using owner-approved rules
- Job/run/attempt/input-slice/checkpoint/output/publication identities must prevent ambiguous replay
- Incremental watermark/cursor/key-range and full-load snapshot/cutover need explicit completeness semantics
For example: “We're migrating twelve years of policy data from the mainframe. The transformation logic lives in a 4,000-line stored procedure and the insurance team says it encodes rules nobody has written down.”
What you get
- architecture/etl-architect/README.md
- architecture/etl-architect/00-overview/etl-architect-overview.md
- architecture/etl-architect/verification/fitness-self-check.md
Plus one page per business module, only where your evidence calls for it: {module}/ingest.md, {module}/storage.md, {module}/serving.md, {module}/lineage.md, {module}/retention.md, {module}/quality.md.
All paths are relative to the output folder you choose.
What it will not do
Do not use merely to implement one connector, scraper, SQL/dbt model, Airflow DAG, NiFi flow, CDC stream, batch job, validation check, warehouse model, or generic data pipeline.
How it works
- Check the scope is a bounded ETL system.
- Decide extract-transform-load versus extract-load-transform, with a reason.
- Define the staging contract.
- Fix transformation authority.
- Plan cutover and backfill together.
- Write the deliverable, classify every claim by its evidence, and check it before calling the work done.
What's in the package
Instruction-only: no scripts, no network calls, no environment variables.
- LICENSE.txt
- SKILL.md
- agents/openai.yaml
- assets/output-template-artifact.md
- assets/output-template-contract.md
- assets/output-template-domain.md
- assets/output-template-fitness.md
- assets/output-template-mechanism.md
- references/domain-rules.md
- references/operating-rules.md
- references/output-contract.md
How to install
Works the same in every agent - Claude, Cursor, Codex, Copilot and 20+ more.
- 1
Download the ZIP
Free skills download straight away. Paid skills unlock right after purchase.
- 2
Unzip into your skills folder
Every agent reads skills from one folder on your machine. Drop the unzipped folder in there.
- 3
Ask your agent to use it
Restart the agent if it was already running. It picks the skill up automatically - no config needed.
Skills folder by agent
Click the path to copy it. Create the folder if it does not exist yet.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill passes our trust checks below.
Security scanned
Passed our 8-point scan before listing
Fresh listing
Recently published to Agensi
30-day refund
Not a fit? Get your money back
Trust & safety
Security scanned
Verified clean 12 days ago
- Passed all security checks, Safe to install