/starlake-skills:yml2ddlfrom starlake-skills
Generate SQL DDL (CREATE/ALTER TABLE) from Starlake YAML table definitions with `starlake yml2ddl`: target BigQuery, Snowflake, Postgres, Redshift, Synapse, or DuckDB via type mappings, optionally applying directly to the database
Ships in starlake-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Generates SQL DDL (Data Definition Language) statements: CREATE TABLE, ALTER TABLE, etc.: from your Starlake YAML table definitions. Supports multiple target databases through type mappings defined in types/default.sl.yml.
starlake yml2ddl [options]
--datawarehouse <value>: Target data warehouse name: must match a DDL mapping key in types/default.sl.yml (required). Examples: bigquery, snowflake, postgres, redshift, synapse, duckdb--connection <value>: JDBC connection name with read/write access (for --apply mode)--output <value>: Output directory for generated DDL files (default: ./{datawarehouse}/)--catalog <value>: Database catalog name (if applicable)--domain <value>: Generate DDL for this specific domain only (default: all domains)--schemas <value>: Comma-separated list of schemas within the domain to generate DDL for--apply: Execute the generated DDL directly against the database--parallelism <value>: Parallelism level (default: available CPU cores)--reportFormat <value>: Report output format: console, json, or htmltypes/default.sl.ymlThe DDL generation uses ddlMapping to map Starlake types to database-specific types:
# metadata/types/default.sl.yml
types:
- name: "string"
primitiveType: "string"
ddlMapping:
bigquery: "STRING"
snowflake: "VARCHAR"
postgres: "TEXT"
duckdb: "VARCHAR"
synapse: "NVARCHAR(MAX)"
- name: "long"
primitiveType: "long"
ddlMapping:
bigquery: "INT64"
snowflake: "BIGINT"
postgres: "BIGINT"
duckdb: "BIGINT"
- name: "decimal"
primitiveType: "decimal"
ddlMapping:
bigquery: "NUMERIC"
snowflake: "NUMBER(38,9)"
postgres: "NUMERIC"
starlake yml2ddl --datawarehouse bigquery
starlake yml2ddl --datawarehouse snowflake --domain starbake
starlake yml2ddl --datawarehouse postgres --connection my_pg_conn --apply
starlake yml2ddl --datawarehouse duckdb --output /tmp/ddl
starlake yml2ddl --datawarehouse snowflake --domain sales --schemas orders,customers
starlake yml2ddl --datawarehouse bigquery --parallelism 4
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (starlake-ai/starlake-skills) — no native marketplace selected
npx claudepluginhub p/starlake-ai-starlake-skillsOther plugins' skills for the same job
75 skills in this plugin
/acl-dependenciesVisualize access control with `starlake acl-dependencies` — graph which users and groups can access which tables, from the ACL and RLS (row-level security) definitions in your YAML, output as SVG, PNG, or JSON/autoloadInfer schemas from files in the incoming directory and load them into the warehouse in one step with `starlake autoload`. Use for quick starts or new data files with no YAML table definitions yet; generates the table configs automatically./bootstrapCreate a new Starlake project with `starlake bootstrap` — scaffold the standard metadata/load/transform directory structure and starter config from a template (quickstart, simple). Use when initializing or setting up a new project.