/starlake-skills:semantic-exportfrom starlake-skills
Export semantic models from metadata/semantic to Apache Ossie, Looker LookML, or Power BI TMDL with the starlake semantic-export command
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.
Export the semantic models stored in metadata/semantic/ to another semantic format. Three targets:
ossie (default): Apache Ossie (Incubating), formerly Open Semantic Interchange, a vendor-neutral interchange format consumable by any Ossie-compatible BI tool, query engine, or AI agent.lookml: a Looker project, one <table>.view.lkml per table plus a <model>.model.lkml with explores derived from relationships.tmdl: a Power BI TMDL folder per model (database.tmdl, model.tmdl, relationships.tmdl, tables/<table>.tmdl).starlake semantic-export [options]
| Option | Description |
|---|---|
--format <fmt> | Target format: ossie (default), lookml, or tmdl |
--model <name> | Export a single model, matched by its name field or file basename. All models by default |
--output <dir> | Output directory. metadata/semantic/export/<format>/ by default |
--connection <name> | lookml: Looker connection name written in the model file. tmdl: Starlake connection used to derive each table's Power Query source |
--reportFormat <fmt> | Report format: console, json, html |
Examples:
starlake semantic-export # export every model to metadata/semantic/export/ossie/
starlake semantic-export --model ecommerce_analytics # one model only
starlake semantic-export --output /tmp/ossie-models # custom output directory
starlake semantic-export --format lookml --connection looker_wh
starlake semantic-export --format tmdl --model ecommerce_analytics --connection snowflake_prod
Output per format (the command fails if --model names a model that does not exist):
ossie: each model <name>.yaml produces <name>.ossie.yaml.lookml: each model produces <model>.model.lkml (connection, include: "*.view.lkml", one explore per relationship with sql_on built from the relationship columns) plus one <table>.view.lkml per table (dimensions, dimension_groups for time dimensions, measures from metrics).tmdl: each model produces a folder with database.tmdl, model.tmdl, relationships.tmdl (composite keys handled via concatenated key columns) and tables/<table>.tmdl (columns, measures, a Power Query partition derived from --connection). Names are kept verbatim and quoted per TMDL rules when they are not plain identifiers.The converter targets Ossie core-spec version 0.2.0.dev0:
| Starlake semantic model | Ossie |
|---|---|
model name / description | semantic_model[0].name / description |
tables[] | datasets[] with source = database.schema.table |
dimensions[] | fields[] with dimension: {is_time: false} |
time_dimensions[] | fields[] with dimension: {is_time: true} |
facts[] | fields[] (no dimension block) |
column expr / data_type | expression.dialects[{dialect: ANSI_SQL}] / Ossie datatype enum |
synonyms | ai_context.synonyms |
primary_key.columns / unique dimensions | primary_key / unique_keys |
table and model metrics[] | model-level metrics[] (table origin recorded in extension) |
relationships[] | relationships[] with from/to and column arrays |
verified_queries[].question | model ai_context.examples |
Nothing is lost: attributes with no Ossie equivalent (filters, sample_values, is_enum, access_modifier, cortex_search_service, verified query SQL, join_type / relationship_type) are preserved verbatim in custom_extensions blocks under vendor_name: STARLAKE, per the Ossie extensibility model. A round-trip or another converter can read them back.
Unknown data_type values map to the Ossie Opaque datatype; absent ones are omitted.
sum, count, avg, min, max over a column) become real DAX measures; anything else becomes a BLANK() measure carrying the original SQL in a TODO comment for manual porting.Sql.Database for sqlserver, engine-specific connectors otherwise; unrecognized engines fall back to a generic source with a warning).ANSI_SQL dialect entries. Table-level metrics whose expressions reference bare column names may need qualification (table.column) for consumers that evaluate them model-wide; the source table is recorded in the metric's STARLAKE extension.semantic: authoring reference for the source models in metadata/semantic/starflow-semantic-model-design: guided workflow that produces the source modelsWhat SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
Generated from the plugin's indexed repository (starlake-ai/starlake-skills) — no native marketplace selected
npx claudepluginhub p/starlake-ai-starlake-skills75 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./bq-infoGet BigQuery table information with `starlake bq-info` — schema, row count, size, partitioning, and clustering details for datasets and tables in a GCP project/cnxloadLoad a Parquet, CSV, or JSON file directly into a JDBC database table with `starlake cnxload`. Use to push one file into PostgreSQL, MySQL, or any JDBC target without the full Starlake load pipeline or YAML schemas./col-lineageTrace column-level lineage for one transform task with `starlake col-lineage` — show how each output column derives from its source columns through the SQL, for fine-grained data provenance and impact analysis