/duckless:setupfrom DuckLess
Guides setting up DuckLess in a GCP project using either its Terraform module (recommended for teams) or the `duckless init` quick-start command, then wiring the .envrc.
Ships in DuckLess. 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.
DuckLess runs DuckDB jobs on right-sized VMs (Cloud Batch) or containers (Cloud Run Jobs) in
the user's own GCP project. Everything it needs is created by duckless init, through
Infrastructure Manager, with the caller's credentials.
duckless init is not required: the CLI only reads the settings (DUCKLESS_*) the DuckLess
Terraform module outputs. Ask how the team manages infrastructure:
duckless-infra account is created. This is the
recommended way for teams.duckless init, five minutes.Add the module where their other stacks live, pinned to the CLI version they install:
module "duckless" {
source = "git::https://github.com/tosun-si/duckless.git//duckless/terraform?ref=v<version>"
project_id = "<project>"
region = "europe-west1"
runner_image_tag = "<version>"
data_buckets = [...] # buckets jobs read and write, any project
bigquery_datasets = [...] # read: `dataset` or `project.dataset`
bigquery_write_datasets = [...] # write (to_bigquery)
# ducklake = true, network/subnetwork = full paths on a Shared VPC
}
output "envrc" { value = module.duckless.envrc }
Inputs and requirements: duckless/terraform/README.md; a full caller: examples/terraform/main.tf.
Terragrunt: a unit whose terraform { source = "git::…//duckless/terraform?ref=v<version>" },
with the inputs in inputs = { … }; follow the repository's existing unit layout.
Provider: the module needs hashicorp/google >= 7.18; their lock file decides the exact version.
DuckLake: the network needs private services access (often already there on a Shared VPC); if not, it belongs in their network code, not in the module.
Plan in CI, apply after review, then put the envrc output in the project's .envrc.
Upgrades: bump ref and runner_image_tag together, read the release notes, plan, apply.
Help them wire the module; do not copy its resources into their code: a copy drifts and misses the fixes of later releases.
When they must use their own modules (company rules on naming, CMEK, labels…): build the
resources from the Requirements page (https://tosun-si.github.io/duckless/reference/requirements/),
layer by layer: DuckLess (APIs, work bucket with the runs/ lifecycle, runner account and its roles,
image reachable without external IP, Private Google Access), then DuckLake only if they use it
(private services access, Cloud SQL with IAM auth, the runner's IAM database user and Cloud SQL
roles), BigQuery only if they read or write it, and the job submitters' roles. Map each requirement to their
module's inputs, keep the DUCKLESS_* settings as outputs, and tell them to check the release
notes for requirement changes on each upgrade.
uv tool install duckless (or pip install duckless). Python 3.13.gcloud auth login --update-adc. The caller needs to be able to enable APIs,
create service accounts and grant project roles (Owner, or an admin set equivalent).duckless preflight -m n2-highmem-16 --project <project>
tells whether the region has the quota.duckless init --project <project> (region: --region, default europe-west1).
--data-bucket <bucket> (repeatable): existing buckets jobs may read and write.--ducklake: also create a DuckLake catalog (see the ducklake skill). About 10 more minutes.--bigquery-dataset <dataset> (repeatable): datasets of the project jobs may read.--bigquery-write-dataset <dataset> (repeatable): datasets jobs may write (to_bigquery).--network <vpc>: network of the jobs; default otherwise.export … lines init prints into the project's .envrc (direnv), then
direnv allow. They are not secrets but are per-project.duckless run job.sql -m n2-standard-4 (see the writing-jobs skill).The duckless-infra account init creates holds its roles only while init or destroy runs,
and its project IAM admin role is limited by a condition to the runner's roles.
init checks and createsBLOCKED, nothing was created: read the failing
check, fix the policy or pick another region, run init again.--ducklake, a Cloud SQL catalog.duckless init again with a newer CLI upgrades in place. Options left out keep the
deployment's values (--ducklake included); --no-ducklake is explicit.duckless destroy --project <project> removes what init created. --force is needed when
the work bucket holds objects or a DuckLake catalog exists: confirm with the user first, it
deletes data. The network peering of DuckLake is kept (shared); destroy prints how to remove it.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
5 skills in this plugin
/ducklakeUse DuckLake tables with DuckLess - a Cloud SQL catalog attached as `lake` in every job, data as Parquet on GCS, snapshots and time travel. Use when someone wants tables instead of loose Parquet files, incremental loads, updates/deletes, time travel, or when a DuckLake attach fails./sizingChoose the machine, Spot, local SSD and runner (Cloud Batch or Cloud Run Jobs) for a DuckLess job, and resize it from the metrics of a previous run. Use when deciding `-m`, `--spot`, `--local-ssd` or `--on` for `duckless run`/`exec`, or when a job is slow, spills, runs out of memory or costs too much./troubleshootingDiagnose a failed, stuck or slow DuckLess job or a failing `duckless init`, from `duckless status`, `logs` and `result` to the fix. Use when a job is FAILED, stays QUEUED or SCHEDULED, is slower than expected, or when init/destroy errors.npx claudepluginhub tosun-si/duckless --plugin ducklessOther plugins' skills for the same job