testing-a-datavault4dbt-project

testing-a-datavault4dbt-project is a skill for Claude Code from ScalefreeCOM/datavault4dbt-agent-skills. It costs 81 tokens per session (1,160 once invoked), scanned A, original, Apache-2.0.

A set of dbt tests for Data Vault 2 data models. Data Vault 2 is a database design for tracking changing data, while dbt is a tool for transforming data with SQL and checking the results.

In plain words
What is it for?
Use it to test unique and present keys in hubs, links, and satellites, confirm that links point to existing hubs, and check unique key-and-load-date combinations.
Why use it?
It checks key assumptions without blocking or discarding source records that do not conform. This makes problems visible while preserving the original data for investigation.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to test unique and present keys in hubs, links, and satellites, confirm that links point to existing hubs, and check unique key-and-load-date combinations.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project
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 ScalefreeCOM/datavault4dbt-agent-skills --skill testing-a-datavault4dbt-project
Clone the repo
git clone --depth 1 https://github.com/ScalefreeCOM/datavault4dbt-agent-skills

Made for: Claude Code.

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 testing-a-datavault4dbt-project

README.md
[![agentmods](https://agentmods.dev/badge/skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project/github.svg)](https://agentmods.dev/skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project)
Your own site
<a href="https://agentmods.dev/skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project"><img src="https://agentmods.dev/badge/skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project/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 testing-a-datavault4dbt-project

Your own site · 80×15
<a href="https://agentmods.dev/skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project"><img src="https://agentmods.dev/badge/skills/scalefreecom/datavault4dbt-agent-skills/testing-a-datavault4dbt-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,160 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00081 $0.01160
Opus 5 $0.00041 $0.00580
Sonnet 5 $0.00016 $0.00232
Haiku 4.5 $0.00008 $0.00116

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

Security

Grade A, and why

testing-a-datavault4dbt-project 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 10d 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/datavault4dbt/skills/testing-a-datavault4dbt-project/SKILL.md · 112 lines

How it starts

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

Testing a datavault4dbt project

Turn the Primary-Key and Foreign-Key assumptions of Data Vault 2 into dbt tests. In DV2 these are soft constraints — implemented as dbt tests that warn (and let you investigate) rather than hard database constraints that would silently drop "bad and ugly" raw data you still want to capture.

Default to soft constraints (dbt tests). Only use hard database constraints if you accept the risk of losing non-conforming raw data and have an Error Mart to catch it.

Where these tests live

Add data_tests in the model's YAML file (colocated with the .sql). Generic tests unique and not_null are built in; relationships covers FK integrity. For multi-column uniqueness (satellites) use dbt_utils.unique_combination_of_columns (add the dbt_utils package) or an equivalent.

The technical test matrix

Entity Column(s) Test
Hub hashkey not_null, unique
Link link hashkey not_null, unique
Link each foreign hashkey relationships to its connected hub's hashkey
Satellite v0 hashkey + load date unique combination of columns
Satellite v0 hashkey relationships to parent hub/link
Non-historized link link hashkey not_null, unique
Non-historized link each foreign hashkey relationships to connected hubs
Non-historized satellite v0 hashkey not_null, unique, relationships to parent NH-link
Multi-active satellite v0 hashkey + load date + multi-active key(s) unique combination of columns
Multi-active satellite v0 hashkey relationships to parent hub/link
Record-tracking satellite hashkey + load date unique combination of columns
Record-tracking satellite hashkey relationships to parent hub/link
Reference hub reference key(s) unique, not_null
Reference satellite v0 reference key(s) + load date unique combination of columns

(Authoritative source: dbt_packages/datavault4dbt/docs/26_general-usage-notes/40_testing-a-data-vault.)

Read the full file on GitHub · 112 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. 10d ago First seen · 112 lines · 81 tokens per session scan A 8f6fcfe34ad4

Subscribe to this mod's changes

testing-a-datavault4dbt-project is a skill published in the GitHub repository ScalefreeCOM/datavault4dbt-agent-skills (22 stars, last pushed 13d ago), licensed Apache-2.0. It adds 81 tokens to every session and 1,160 once invoked, about $0.0004 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-30.