unity-catalog-constraints

Official

Enforce relational integrity in Databricks.

Authordatabricks-solutions
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill ensures proper relational modeling and data integrity within Unity Catalog by standardizing the implementation of Primary Key (PK) and Foreign Key (FK) constraints, preventing common deployment errors.

Core Features & Use Cases

  • Standardized Constraint Implementation: Provides patterns and scripts for defining PKs on surrogate keys and FKs referencing them, adhering to dimensional modeling best practices.
  • Production Error Prevention: Guides users to avoid critical mistakes like defining FKs inline in CREATE TABLE statements, ensuring smoother deployments.
  • Use Case: When building a Gold layer star schema, use this Skill to correctly define PKs for dimension tables (e.g., dim_store) and FKs in fact tables (e.g., fact_sales) that link back to these dimension surrogate keys, ensuring data consistency and enabling BI tool discovery.

Quick Start

Use the unity-catalog-constraints skill to apply primary and foreign key constraints to your gold layer tables by running the apply_all_constraints function.

Dependency Matrix

Required Modules

None required

Components

scriptsreferencesassets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: unity-catalog-constraints
Download link: https://github.com/databricks-solutions/vibe-coding-workshop-template/archive/main.zip#unity-catalog-constraints

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.