/starlake-skills:preloadfrom starlake-skills
Check whether files are ready for loading with `starlake preload` — counts stageable files in the incoming/landing area (imported), staged files in the pending area (pending), or tests an ack file (ack). Use in orchestration to gate stage/load steps.
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.
Checks for files available for loading in the landing or pending area. This is useful for orchestration to determine whether files are ready before triggering the actual load process.
starlake preload [options]
--domain <value>: Domain to check (required)--tables <value>: Comma-separated tables to check. With imported, omitted = all tables in the domain; with pending, only the tables you pass are counted — omitting --tables yields an empty (never-ready) result, so always pass them--strategy <value>: Pre-load strategy: imported, pending, or ack (case-insensitive here, but use lowercase — the orchestration option pre_load_strategy accepts ONLY lowercase). Omitted/unknown value = no gating: the check always succeeds--globalAckFilePath <value>: Path to the global acknowledgment file (required in practice with --strategy ack — without it the ack check fails)--notReadySentinel <uri>: If set, a zero-byte marker is written at this URI when files are not ready, and the command exits 0 (the sentinel is the signal); real errors still exit non-zero. Lets orchestrators distinguish "retry later" from failure. Accepts any storage-handler URI (gs://, s3://, file://, hdfs://)--options k1=v1,k2=v2: Substitution arguments--reportFormat <value>: console, json, or html| Strategy | Check performed | On success | Pairs with |
|---|---|---|---|
imported | Scans the domain's incoming directory and counts stageable files per table | Report of per-table counts; empty = not ready | A following starlake stage (import) step, then load — chain preload >> stage >> load |
pending | Lists the domain's pending (staged) area and counts files matching each table's pattern | Per-table counts; empty = not ready | Direct load — files are already staged |
ack | Tests whether --globalAckFilePath exists; if it exists, the file is DELETED (each ack is consumed exactly once) | Proceed; missing ack = failure (or sentinel) | A producer that re-creates the ack for every delivery |
Generated and one-off DAGs drive this command through the pre_load_strategy job option (imported/ack/pending/none — strict lowercase; invalid values raise at DAG definition time). What the framework adds on top of the CLI:
none creates NO pre-load task at all.check_{domain}_incoming_files (imported), check_{domain}_pending_files (pending), check_{domain}_ack_file (ack).skip_or_start gate follows the pre-load task and skips the downstream load when the check reported nothing to do.imported → pre_load >> skip_or_start >> import >> loads; ack/pending → pre_load >> skip_or_start >> loads.global_ack_file_path (default: {datasets}/pending/{domain}/{YYYY-MM-DD}.ack — date-coupled, prefer an explicit path) and ack_wait_timeout (seconds, default 3600) which becomes the retry delay of the ack-check task — the "wait" is implemented as task retries, not a sensor.pre_load_sensor (default false), pre_load_poke_interval (default 300 s), pre_load_timeout (default 3600 s) and pre_load_sensor_soft_fail switch the pre-load task to a poke loop that re-runs this command until files arrive; in sensor mode ack_wait_timeout is ignored (pre_load_timeout governs the wait).pre_load_not_ready_sentinel_path plugs --notReadySentinel into the pre-load task (requires starlake CLI 1.5.15 or newer) so a "not ready" outcome is distinguished from a real failure instead of both reading as "nothing to load".starlake preload --domain starbake --strategy imported
starlake preload --domain starbake --tables orders,products --strategy pending
starlake preload --domain starbake --strategy ack --globalAckFilePath /data/pending/starbake/GO.ack
starlake preload --domain starbake --strategy imported --reportFormat json
pre_load_strategypre_load_strategypre_load_strategyWhat 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