/starlake-skills:infer-schemafrom starlake-skills
Infer a Starlake table schema from a data file with `starlake infer-schema`: detect column names and types from a CSV, JSON, XML, or Parquet sample (or a JSON Schema) and generate the load YAML config
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.
Analyzes a data file (CSV, JSON, XML, Parquet) and infers the Starlake table schema, generating the corresponding YAML configuration file with detected column names, types, and format metadata.
starlake infer-schema [options]
--input <value>: Path to the data file or directory to analyze (required)--domain <value>: Domain name for the generated schema (e.g. starbake)--table <value>: Table name for the generated schema (e.g. orders)--outputDir <value>: Output directory for the YAML file (default: metadata/load)--write <value>: Write mode: OVERWRITE or APPEND--format <value>: Force input file format: DSV, JSON, JSON_FLAT, JSON_ARRAY, XML, PARQUET--rowTag <value>: Row tag for XML files (e.g. record)--variant: Infer schema as a single variant attribute (schema-on-read)--clean: Delete previous YAML file before writing--encoding <value>: Input file encoding (default: UTF-8)--from-json-schema: Input file is a JSON Schema file (not data)--reportFormat <value>: Report output format: console, json, or htmlThe command generates a table YAML file like:
# Generated: metadata/load/starbake/orders.sl.yml
version: 1
table:
name: "orders"
pattern: "orders_.*.json"
attributes:
- name: "customer_id"
type: "long"
sample: "9"
- name: "order_id"
type: "long"
sample: "99"
- name: "status"
type: "string"
sample: "Pending"
- name: "timestamp"
type: "iso_date_time"
sample: "2024-03-01T09:01:12.529Z"
metadata:
format: "JSON_FLAT"
encoding: "UTF-8"
array: true
writeStrategy:
type: "APPEND"
starlake infer-schema --domain starbake --table order_lines --input /data/order-lines_20240301.csv --format DSV
starlake infer-schema --domain starbake --table orders --input /data/orders_20240301.json
starlake infer-schema --domain starbake --table products --input /data/products.xml --rowTag record
starlake infer-schema --domain starbake --table events --input /data/events.parquet
starlake infer-schema --domain starbake --table orders --input /schemas/orders.json --from-json-schema
starlake infer-schema --domain starbake --table orders --input /data/orders.json --clean
starlake infer-schema --domain starbake --table events --input /data/events.json --variant
What SKILL.md sets; muted values are Claude Code's defaults
Other 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.Generated from the plugin's indexed repository (starlake-ai/starlake-skills) — no native marketplace selected
npx claudepluginhub p/starlake-ai-starlake-skills