01-yaml-table-setup

Create Gold layer tables from YAML schema definitions using Python scripts.

1|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/prashsub/vibe_coding_lakehouse_starter_repo --skill 01-yaml-table-setup-prashsub
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 01-yaml-table-setup
Source: https://github.com/prashsub/vibe_coding_lakehouse_starter_repo/tree/main/data_product_accelerator/skills/gold/pipeline-workers/01-yaml-table-setup
Command: npx skills add https://github.com/prashsub/vibe_coding_lakehouse_starter_repo --skill 01-yaml-table-setup-prashsub

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pyyaml, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the creation of Gold layer tables by using YAML files as the single source of truth, eliminating the need for embedded SQL DDL strings in Python code and simplifying schema management.

Core Features & Use Cases

  • Dynamic Table Creation: Generates CREATE TABLE statements from YAML definitions at runtime.
  • Schema Management: Ideal for managing numerous tables, frequent schema evolution, or ensuring consistency across domains.
  • Use Case: When you need to define and create 15 new dimension tables for your analytics platform, each with specific primary keys and column descriptions, this Skill allows you to manage all definitions in YAML and create them with a single script execution.

Quick Start

Use the 01-yaml-table-setup skill to create tables defined in the gold_layer_design/yaml directory for the 'compute' domain.

Frequently Asked Questions about 01-yaml-table-setup

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

FAQPage Schema
How do I create Databricks Gold layer tables from YAML schema definitions?

You can create Gold layer tables from YAML schema definitions by using Python scripts within Databricks Asset Bundles. This approach generates CREATE TABLE statements at runtime, using YAML as the single source of truth to eliminate embedded SQL DDL strings in your pipeline code.

What is the best way to manage schema evolution for multiple Databricks tables without embedded SQL DDL?

Managing schema evolution without embedded SQL DDL is best handled by defining table names, columns with types, nullability, primary keys, and table properties in YAML files. This ensures consistency across domains and allows dynamic table creation through a single script execution.

Can I define primary keys and table properties when generating tables from YAML?

Yes, you can define primary keys and table properties when generating tables from YAML. The schema definitions support specifying table names, columns with data types and nullability constraints, primary keys, and custom table properties for your Gold layer tables.

Does this YAML table creation approach work with Databricks Asset Bundles?

Yes, this YAML table creation approach works directly with Databricks Asset Bundles. The Skill uses Python scripts and Databricks Asset Bundles to dynamically create Gold layer tables at runtime from YAML definitions organized by domain.

Do I need pyyaml installed to dynamically create Gold tables from YAML?

Yes, you need the pyyaml package installed to dynamically create Gold tables from YAML files. It is the only required dependency for parsing the YAML schema definitions and generating the corresponding CREATE TABLE statements.

When should I use YAML schema definitions instead of writing SQL DDL strings for table creation?

You should use YAML schema definitions instead of SQL DDL strings when managing numerous tables with frequent schema evolution, or when ensuring consistency across multiple domains. YAML provides a single source of truth, simplifying schema management for analytics platforms.