Individual skill

using-datavault4dbt

Builds Data Vault 2 models in dbt with the datavault4dbt package — staging, hubs, links, satellites, and business-vault entities — using the YAML-metadata macro pattern with correct hashkeys, hashdiffs, naming, and materializations. Use when creating or editing datavault4dbt models, setting up a raw vault, choosing which Data Vault entity to use, or configuring the package's hashing and global variables.

skills/datavault4dbt/skills/using-datavault4dbt/SKILL.md

Read pinned source

Source commit 578a0533f5e3c85317a66bd93d58dca7966ff590

What was checked

Matches the observed repository HEAD
Yes
Scanner rules are current
No
Repository scan complete
No
Skill scan complete
No
Observed behavior
Not checked yet
Last checked
Nov 7, 2026

These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.

Install this skill

Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.

An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.

Repository context

Repository stars (not skill ratings)
23
Repository last updated
Oct 19, 2026
License
Apache-2.0

Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.

Files and excerpt

File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.

Browse files
Read excerpt

# Using datavault4dbt

[datavault4dbt](https://github.com/ScalefreeCOM/datavault4dbt) is a dbt package that generates Data
Vault 2.0 SQL from compact YAML metadata. You write a `{%- set yaml_metadata -%}` block and call a
macro; the package generates the insert-only loading logic, hashing, and high-water-mark optimization.

**Core principle:** every model is *staging-driven*. The `stage` macro computes the hashkeys and
hashdiffs once; hubs, links, and satellites then just reference those pre-computed columns. Get staging
right and the raw vault falls into place.

## When to use

- Building or editing datavault4dbt models: staging, hubs, links, satellites, PITs, snapshot control.
- Setting up a raw vault from flat source tables.
Back to top