dv-generate

Generate Snowflake SQL DDL and insert-only load patterns for Pragmatic Data Vault constructs.

35|7|Updated Apr 14, 2022
One-click install
npx skills add https://github.com/PatrickCuba/the_data_must_flow --skill dv-generate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dv-generate
Source: https://github.com/PatrickCuba/the_data_must_flow/tree/main/dvos-skills/skills/dv-generate
Command: npx skills add https://github.com/PatrickCuba/the_data_must_flow --skill dv-generate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automates the generation of Snowflake SQL DDL and insert-only load patterns for a validated Pragmatic Data Vault construct.

Core Features & Use Cases

  • Doctrine gate enforcement: validate the vault model before SQL is produced.
  • Project-level settings orchestration: collect hash algorithm, BKCC, and tenant configuration.
  • End-to-end SQL artifact generation: create DDL, hash expressions, ghost records, and insert-only patterns for hubs, links, and satellites.

Quick Start

Provide a validated construct definition to the tool and execute it to generate the DDL and load patterns.

Frequently Asked Questions about dv-generate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Snowflake SQL DDL for a Data Vault model?

To generate Snowflake SQL DDL for a Data Vault model, you provide a validated vault construct to an automated generator. The tool orchestrates project settings and produces DDL, hash expressions, ghost records, and insert-only load patterns for hubs, links, and satellites.

What is an insert-only load pattern in Data Vault 2.0?

An insert-only load pattern in Data Vault 2.0 is a data loading method that appends historical records without updating existing rows. This approach preserves historical accuracy across hubs, links, and satellites by enforcing append-only insert patterns.

Do I need a validated Data Vault construct before generating SQL?

Yes, you need a validated Data Vault construct before generating SQL. The generation process enforces a Doctrine gate that requires a pre-validated vault model to ensure structural integrity before producing DDL and load patterns.

Can I configure hash algorithms and tenant settings for Data Vault SQL generation?

Yes, you can configure hash algorithms and tenant settings for Data Vault SQL generation. The process gathers project-level settings including hash algorithm selection, Business Key Collision Code (BKCC), and tenant configuration to apply to the generated SQL artifacts.

How do I create ghost records for Data Vault hubs and links?

You create ghost records for Data Vault hubs and links by running an automated SQL generator against a validated construct. The tool systematically produces DDL and ghost record expressions to initialize your hubs, links, and satellites.

What are the limitations of automated Data Vault SQL generation?

A limitation of automated Data Vault SQL generation is its strict requirement for a pre-validated vault construct to pass the Doctrine gate. Without this validated input model, the generator cannot produce DDL or insert-only load patterns.