/starlake-skills:extractfrom starlake-skills
Extract both schema AND data from a JDBC database in one shot with `starlake extract`: reverse-engineer tables into Starlake YAML then export the rows to files; also drives REST API and OpenAPI/Swagger extract configs
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.
Combines schema extraction and data extraction in a single command. First extracts the database schema metadata into Starlake YAML files, then extracts the actual data into files. This is a convenience command that runs extract-schema followed by extract-data.
starlake extract [options]
Combines all options from extract-schema and extract-data.
--config <value>: Database tables & connection info--outputDir <value>: Where to output YML files--tables <value>: Database tables to extract--connectionRef <value>: JDBC connection reference--all: Extract all schemas and tables--external: Output YML files to the external folder--parallelism <value>: Parallelism level--snakecase: Apply snake_case to column names--limit <value>: Limit number of records--numPartitions <value>: Partition parallelism--ignoreExtractionFailure: Continue on extraction failure--clean: Clean target files before extraction--incremental: Export only new data since last extraction--includeSchemas <value>: Domains to include--excludeSchemas <value>: Domains to exclude--includeTables <value>: Tables to include--excludeTables <value>: Tables to exclude--reportFormat <value>: Report output format: console, json, or htmlExtract commands use a configuration file (metadata/extract/{name}.sl.yml) to define which schemas and tables to extract:
# metadata/extract/externals.sl.yml
version: 1
extract:
connectionRef: "duckdb"
jdbcSchemas:
- schema: "starbake"
tables:
- name: "*" # "*" to extract all tables
tableTypes:
- "TABLE"
# metadata/extract/source_db.sl.yml
version: 1
extract:
connectionRef: "source_postgres"
jdbcSchemas:
- schema: "sales"
tableTypes:
- "TABLE"
- "VIEW"
tables:
- name: "orders"
fullExport: false # Incremental extraction
partitionColumn: "id" # Column for parallel extraction
numPartitions: 4 # Parallelism level
timestamp: "updated_at" # Incremental tracking column
fetchSize: 1000 # JDBC fetch size
- name: "customers"
fullExport: true
The connection referenced in the extract config must be defined in application.sl.yml:
# metadata/application.sl.yml
version: 1
application:
connections:
source_postgres:
type: jdbc
options:
url: "jdbc:postgresql://{{PG_HOST}}:{{PG_PORT}}/{{PG_DB}}"
driver: "org.postgresql.Driver"
user: "{{DATABASE_USER}}"
password: "{{DATABASE_PASSWORD}}"
Extract schemas and data from REST API endpoints. See dedicated skills for full details:
# metadata/extract/my-rest-api.sl.yml
version: 1
extract:
restAPI:
baseUrl: "https://api.example.com/v2"
auth:
type: bearer
token: "{{API_TOKEN}}"
rateLimit:
requestsPerSecond: 10
defaults:
pagination:
type: offset
limitParam: "limit"
offsetParam: "offset"
pageSize: 100
endpoints:
- path: "/customers"
as: "customer"
domain: "crm"
responsePath: "$.data"
incrementalField: "updated_at"
Supported auth types: bearer, api_key, basic, oauth2_client_credentials.
Supported pagination: offset, cursor, link_header, page_number.
Extract schemas from OpenAPI/Swagger specifications:
# metadata/extract/api.sl.yml
version: 1
extract:
openAPI:
basePath: /api/v2
domains:
- name: customers_api
# Schema filtering (regex)
schemas:
exclude:
- "Model\\.Common\\.Id"
- "Internal\\..*"
# Route selection
routes:
- paths:
include:
- "/users"
- "/orders"
- "/products"
Track data freshness with timestamp columns after extraction:
# Check freshness for specific tables
starlake freshness --tables dataset1.table1,dataset2.table2 --persist true
Monitoring table: SL_LAST_EXPORT in audit schema.
starlake extract --config externals --outputDir metadata/load
starlake extract --config source_db --outputDir /tmp/output --incremental
starlake extract --config source_db --tables sales.orders,sales.customers
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./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 analysisGenerated from the plugin's indexed repository (starlake-ai/starlake-skills) — no native marketplace selected
npx claudepluginhub p/starlake-ai-starlake-skills