Databricks lakeflow pipeline engineering

From VincentChuWaiChow/vanguard-frontier-agentic · View interactive version

Databricks lakeflow pipeline engineering is an AI agent skill from the GitHub repository VincentChuWaiChow/vanguard-frontier-agentic. Use this skill to design Lakeflow Spark Declarative Pipelines: medallion layering, Lakeflow Jobs orchestration and task dependencies, Delta table layout (liquid clustering, deletion vectors, Predictive Optimization), Auto Loader ingestion, schema evolution and `_rescued_data`, materialized views ver

How to use this skill

Skill file

databricks-lakeflow-pipeline-engineering

Purpose

This skill decides whether a Lakeflow pipeline architecture is correct, efficient, and aligned to the business domain. A pipeline design is sound only when medallion layers align to data ownership and SLA boundaries, Lakeflow Jobs dependencies are explicit and acyclic, table layout choices match the workload (liquid clustering for all new tables, deletion vectors only on DBR 15.4+, Predictive Optimization only on supported tiers), Auto Loader is justified by volume, schema evolution is intentional and _rescued_data is monitored, materialized views and streaming tables are chosen per refresh cadence, and backfill restarts are safe.

When to use

When NOT to use

Scope

Decision workflow

  1. Establish the pipeline's current source files (Python or SQL), table names, medallion tier, and refresh cadence — refusal-trigger if missing.
  2. Validate medallion-layer boundaries against the domain and data ownership; flag tier misalignment or implicit ownership.
  3. Audit Lakeflow Jobs orchestration: confirm the DAG is acyclic, dependencies are explicit in the job definition, and single-task pipelines are justified.
  4. Review Delta table layout: confirm new tables use liquid clustering (not Z-order), check deletion-vector eligibility (DBR 15.4+), and verify Predictive Optimization aligns to the tier.
  5. Assess Auto Loader usage: confirm ingestion volume justifies Auto Loader vs COPY INTO, validate cloudFiles.schemaEvolutionMode selection, and confirm _rescued_data is monitored.
  6. Validate materialized-view vs streaming-table selection against refresh cadence and state-schema immutability (if applicable).
  7. For backfill designs: confirm checkpoint isolation from incremental pipelines, state-schema immutability across restarts, and partial-backfill correctness.

Lean operating rules

Evidence requirements

No recommendation is issued before the evidence below exists. When it is missing, name the smallest artifact that would supply it and stop.

Context7 MCP policy

Context7 supplies current, version-specific library and SDK documentation. It does not establish Databricks service behaviour — Databricks' own documentation does. Use it exactly when:

If Context7 is not exposed in the session, say so and label every version-sensitive claim unknown rather than answering from memory. Never state that Context7 was consulted when it was not, and never assume an MCP server or tool name.

Official documentation policy

Databricks service semantics come from current Databricks documentation, not from memory, blog posts, conference talks, or release-note summaries. Where the behaviour differs by cloud (AWS / Azure / GCP), name the cloud the claim applies to. Where a feature is Public Preview or Beta, say so on first mention and never describe it as a production default. Anything that cannot be grounded stays out of the answer and is reported as an open question.

Security boundaries

Runtime authority

T0 (static review only). Reads pipeline source files, table metadata, and job definitions; never executes pipelines, never runs queries, never mutates metadata, and never accesses customer data. Review findings are recommendations only and require explicit human judgment before any production change.

Authority tiers used across this board: T0 static review (read artifacts only); T1 read-only runtime (allowlisted read-only queries against a workspace, no writes); T2 sandbox-mutating (dry-run or non-production only); T3 mutating-runtime (changes production state — human-approved live guards only). This skill never raises its own tier, and never hands a task to a higher tier without an explicit named human owner.

Production caveats

References

Progressive disclosure — load only the one the task needs:

Response minimum

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.