dlt-pipeline

dlt-pipeline is a skill for Claude Code, Codex from mexmarv/ai-genie-factory. It costs 122 tokens per session (3,933 once invoked), scanned A, original, MIT.

A set of patterns for Delta Live Tables, Databricks pipelines that ingest, clean, and prepare data in stages called Bronze, Silver, and Gold.

In plain words
What is it for?
Use it for data ingestion, streaming, change tracking, Bronze/Silver/Gold tables, schema changes, and slowly changing records.
Why use it?
It prevents raw data from being mixed with business logic and enforces a consistent path for data quality and table creation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for data ingestion, streaming, change tracking, Bronze/Silver/Gold tables, schema changes, and slowly changing records.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mexmarv/ai-genie-factory/dlt-pipeline
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add mexmarv/ai-genie-factory --skill dlt-pipeline
Clone the repo
git clone --depth 1 https://github.com/mexmarv/ai-genie-factory

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 dlt-pipeline

README.md
[![agentmods](https://agentmods.dev/badge/skills/mexmarv/ai-genie-factory/dlt-pipeline/github.svg)](https://agentmods.dev/skills/mexmarv/ai-genie-factory/dlt-pipeline)
Your own site
<a href="https://agentmods.dev/skills/mexmarv/ai-genie-factory/dlt-pipeline"><img src="https://agentmods.dev/badge/skills/mexmarv/ai-genie-factory/dlt-pipeline/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 dlt-pipeline

Your own site · 80×15
<a href="https://agentmods.dev/skills/mexmarv/ai-genie-factory/dlt-pipeline"><img src="https://agentmods.dev/badge/skills/mexmarv/ai-genie-factory/dlt-pipeline.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,933 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.00122 $0.03933
Opus 5 $0.00061 $0.01966
Sonnet 5 $0.00024 $0.00787
Haiku 4.5 $0.00012 $0.00393

Measured 12d ago against content hash 74de2392bfda, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

dlt-pipeline 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 12d 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.

skills/dlt-pipeline/SKILL.md · 484 lines

How it starts

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

DLT Pipeline Patterns — Alpura Medallion Architecture

Apply to every DLT pipeline notebook. Pipelines always flow Bronze → Silver → Gold. Never skip Silver. Never write business logic in Bronze.


Rules

  • Bronze: raw ingestion via Auto Loader — no transformations, no filtering
  • Silver: validated, deduped, cleaned — @dlt.expect_or_drop on every quality dimension
  • Gold: aggregated, app-ready, business-metric-named — @dlt.materialized_view preferred
  • Never skip Silver — no Bronze → Gold directly
  • Always use Databricks Volumes (/Volumes/catalog/schema/path) — never dbfs:/
  • Use dlt.read() / dlt.read_stream() — never spark.read() inside DLT
  • Name tables: bronze_<source>, silver_<entity>, gold_<metric>
  • Log ingestion count and key metrics at every layer — use _logger.py
  • All pipeline code runs in DLT notebooks — never in regular notebooks
  • Schema evolution: use cloudFiles.schemaEvolutionMode = "rescue" at Bronze

Bronze — Auto Loader Ingestion

JSON / CSV from Volumes

import dlt
from pyspark.sql import functions as F
from _logger import get_logger
logger = get_logger(__name__)

@dlt.table(
    name="bronze_sales_orders",
    comment="Raw sales orders — Auto Loader ingestion from Volumes landing zone",
    table_properties={"quality": "bronze", "pipelines.reset.allowed": "true"},
)
def bronze_sales_orders():
    logger.info("Ingesting bronze_sales_orders")
    return (
        spark.readStream.format("cloudFiles")
        .option("cloudFiles.format", "json")
        .option("cloudFiles.schemaLocation",  "/Volumes/prod/raw/checkpoints/sales_orders_schema")
        .option("cloudFiles.schemaEvolutionMode", "rescue")   # new columns → _rescued_data
        .option("cloudFiles.inferColumnTypes", "true")
        .load("/Volumes/prod/raw/landing/sales_orders/")
        .withColumn("_ingested_at",  F.current_timestamp())
        .withColumn("_source_file",  F.input_file_name())
    )

Parquet / Delta from Volumes

Read the full file on GitHub · 484 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. 12d ago First seen · 484 lines · 122 tokens per session scan A 74de2392bfda

Subscribe to this mod's changes

dlt-pipeline is a skill published in the GitHub repository mexmarv/ai-genie-factory (5 stars, last pushed 1mo ago), licensed MIT. It adds 122 tokens to every session and 3,933 once invoked, about $0.0006 per session on Opus 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-31.