/starlake-skills:metricsfrom starlake-skills
Compute statistics and profile table data with `starlake metrics` — min/max/mean/stddev for continuous columns, distinct counts and category frequencies for discrete ones, stored in the SL_METRICS audit table
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.
Computes statistical metrics on a table's data. Metrics are based on the metric type defined on each attribute: continuous for numeric columns (min, max, mean, stddev, etc.) and discrete for categorical columns (distinct count, frequency distribution).
starlake metrics [options]
--domain <value>: Domain name (required)--schema <value>: Table/schema name (required)--authInfo k1=v1,k2=v2: Auth info for the connection (e.g. gcpProjectId=my-project)--reportFormat <value>: Report output format: console, json, or htmlMetrics are configured per attribute in table YAML files:
# In table.sl.yml
table:
attributes:
- name: "total_amount"
type: "decimal"
metric: "continuous" # min, max, mean, median, variance, stddev, percentiles
- name: "status"
type: "string"
metric: "discrete" # count distinct, category frequency
- name: "order_id"
type: "long"
# No metric - not computed
| Metric Type | Computed Values |
|---|---|
continuous | min, max, sum, mean, median, variance, stddev, skewness, kurtosis, 25th/75th percentiles, missing values, row count |
discrete | count distinct, category frequency, top categories, row count |
# metadata/application.sl.yml
application:
metrics:
active: true
discreteMaxCardinality: 10 # Max distinct values for discrete metrics
path: "{{SL_ROOT}}/metrics" # Custom metrics output path
Metrics are stored in the SL_METRICS audit table for historical tracking and analysis. This enables:
starlake metrics --domain starbake --schema orders
starlake metrics --domain starbake --schema orders --authInfo gcpProjectId=my-gcp-project
starlake metrics --domain starbake --schema products --reportFormat json
What 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