darknecrocities/skillbuilder/data-pipelines

Claude Code and agent skill by darknecrocities/skillbuilder

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Data pipeline engineering, streaming ETL with backpressure, Apache Arrow memory structures, DuckDB in-process analytics, schema validation, and dead-letter queues (DLQ).

Install

npx vskill@latest install darknecrocities/skillbuilder/data-pipelines

SKILL.md

Data Pipelines, Streaming Ingest & Embedded Analytics (/data-pipelines)

Philosophy: Unbounded in-memory aggregation is an architectural failure. Stream large datasets with backpressure. Validate schemas at every record boundary. Enforce idempotency on batch runs. Route poisoned records to Dead-Letter Queues (DLQ) without crashing the pipeline.

This skill establishes defensive engineering standards for data pipelines, batch ETL, and embedded analytical workloads using DuckDB, Apache Arrow, Polars, and Pandas.


1. Quick Navigation & Progressive Disclosure

Resource TypeDocumentDescription
Referencereferences/streaming-etl-and-arrow.mdColumnar memory, zero-copy RecordBatches, bounded queue backpressure.
Referencereferences/duckdb-and-dlq-patterns.mdVectorized in-process analytics, Parquet queries, DLQ quarantine schemas.
Utilityscripts/verify_pipeline_integrity.pyScans pipeline code for unbounded reads, missing DLQ handling, and unindexed joins.

2. The Core Pipeline Architecture Gates

mermaid
flowchart TD
A["Raw Ingestion Stream (CSV / JSONL / Parquet)"] --> B["Gate 1: Streaming Ingest with Backpressure (Chunked IO)"]
B --> C["Gate 2: Schema Validation (Pydantic / Zod / Arrow Types)"]
C --> D["Gate 3: Dead-Letter Routing (Quarantine Poisoned Rows)"]
D --> E["Gate 4: In-Process Analytical Queries (DuckDB / Arrow Vectors)"]
E --> F["Gate 5: Idempotent Sink & Checkpointing (ACID Commit)"]
  1. Gate 1: Chunked Streaming IO: Prohibit loading entire multi-megabyte datasets into memory with unbuffered reads. Process records in bounded chunks (e.g., 5,000–10,000 rows).
  2. Gate 2: Strict Record Boundary Validation: Validate all incoming payloads against typed schemas before executing transformations.
  3. Gate 3: Dead-Letter Queue (DLQ) Isolation: When an individual record fails transformation, route it with failure metadata to a DLQ table or storage path rather than terminating the entire pipeline batch.
  4. Gate 4: High-Performance In-Process Analytics: Use DuckDB or Apache Arrow zero-copy columnar buffers for local aggregations, filtering, and analytical queries.
  5. Gate 5: Idempotent Delivery & Deduplicated Pre-Sink Snapshot: Every pipeline batch run must use an idempotency key (batch_id / hash(data)) to prevent duplicate writes during retries, and maintain a single SHA-256 deduplicated backup slot (manage_deduplicated_backup.py) before overwriting analytical tables. Never purge Dead-Letter Queues (DLQ) or target sinks without notifying the user first.

2. Resilient Streaming Pipeline with DLQ (Python)

python
import io
import csv
from typing import Generator, Dict, Any, List, Tuple
from pydantic import BaseModel, ValidationError
class TransactionRecord(BaseModel):
transaction_id: str
amount: float
account_id: str
def process_stream_chunk(
csv_stream: io.TextIOBase,
chunk_size: int = 5000
) -> Generator[Tuple[List[TransactionRecord], List[Dict[str, Any]]], None, None]:
"""Streams CSV chunks with schema validation and dead-letter queue routing."""
reader = csv.DictReader(csv_stream)
valid_batch: List[TransactionRecord] = []
dead_letter_batch: List[Dict[str, Any]] = []
for row in reader:
try:
valid_batch.append(TransactionRecord(**row))
except ValidationError as err:
dead_letter_batch.append({"raw_row": row, "error": str(err)})
if len(valid_batch) + len(dead_letter_batch) >= chunk_size:
yield valid_batch, dead_letter_batch
valid_batch = []
dead_letter_batch = []
if valid_batch or dead_letter_batch:
yield valid_batch, dead_letter_batch

3. High-Performance Embedded DuckDB Analytics (Python)

python
import duckdb
def compute_tenant_summary(parquet_path: str) -> list:
"""Executes vectorized SQL over Parquet files without loading data into Python memory."""
con = duckdb.connect(database=":memory:")
query = """
SELECT
account_id,
count(*) AS total_transactions,
sum(amount) AS gross_volume,
avg(amount) AS average_ticket
FROM read_parquet(?)
WHERE amount > 0
GROUP BY account_id
ORDER BY gross_volume DESC
LIMIT 50;
"""
return con.execute(query, [parquet_path]).fetchall()

4. Pipeline Integrity Verification CLI

Audit pipeline scripts for unbuffered in-memory loading and missing dead-letter queues:

bash
python3 skills/data-pipelines/scripts/verify_pipeline_integrity.py --path . --strict

Audited Rules:

  • PIPELINE-UNBOUNDED-READ: Flags read_csv() without chunksize or unbuffered f.read() on large streams.
  • PIPELINE-MISSING-DEAD-LETTER-QUEUE: Flags batch pipelines discarding failed records silently without DLQ routing.
  • PIPELINE-MISSING-SCHEMA-VALIDATION: Flags pipelines passing raw string dictionaries directly to analytical sinks.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
13
Repository forks
2
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/darknecrocities/skillbuilder/data-pipelines/badge)](https://verified-skill.com/skills/darknecrocities/skillbuilder/data-pipelines)

Something wrong with this skill or its page? Tell us.