/dlthub-platform:deploy-workspacefrom dlthub-platform
Deploys dlt pipelines to dltHub Platform. Guides production hardening (removing dev_mode, pinning versions) and handles deployment manifest approval.
Ships in dlthub-platform. 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.
Read when SKILL.md points to them.
Reference: https://dlthub.com/docs/hub/pipeline-operations/deployments.md | per-job options: https://dlthub.com/docs/hub/pipeline-operations/job-configuration.md
If this is a first deployment, complete (setup-runtime) and (prepare-deployment) first — they set up the workspace, configure credentials, and log in to runtime. Otherwise, continue from here.
If transformation scripts are included in this deployment and the production destination differs from the dev destination (e.g. DuckDB → BigQuery): STOP. Run (debug-transformation) from the transformations toolkit first and confirm no dialect and schema issues before continuing. Skipping this check is the most common cause of failed remote runs.
Review each script being deployed and fix patterns that are safe locally but harmful in production:
dev_mode=True from dlt.pipeline() calls — it drops and recreates the dataset on every run, destroying production data.limit=N parameters, .add_limit(N) calls, or hardcoded date ranges meant for testing. Either remove them or make them configurable (e.g. via dlt.config.value).write_disposition — "replace" is fine for full-refresh pipelines, but confirm the user doesn't actually want "merge" or "append" for incremental loads.if __name__ == "__main__": block — every script must have one or the runtime job does nothing. The block should NOT contain interactive/debug-only code.pyproject.toml — use == not >= to prevent unexpected upgrades on runtime. If user has a pre-release (e.g. 1.23.0a3), use uv pip install to install it and pin with == in pyproject (do NOT use uv add which may downgrade to latest stable).marimo apps):
dlt.attach() (not dlt.pipeline()) and that destination and dataset_name are explicitly passed (this is a temporary limitation of the dltHub Platform) altair, ibis-framework, pandas, etc.) are in pyproject.tomlReference: scheduling-triggers.md | advanced-patterns.md | runtime-settings.md
SKIP for simple workspaces without deployment manifest
If __deployment__.py is set up, first run dlthub deploy --dry-run to preview changes, then STOP — show the plan and get approval from the user before deploying.
If the diff touches require.instance.size, execute.timeout, or a trigger cadence, call it out separately and explicitly with its budget impact — a general "yes, deploy" does not cover a resource change (the always-loaded job-resources rule).
dlthub deploy # synchronizes deployment module with runtime
Summarize the output (which jobs created/updated/archived)
Before running on the cloud, simulate each job locally. dlthub local run resolves the job exactly like the runtime does (deployment manifest, triggers, profile config) but executes on your machine — failures surface immediately without a deploy cycle:
dlthub local run <job_name> # simulate a batch job locally (uses deployment manifest, no sync)
dlthub local run <job_name> --profile prod # simulate with production credentials
dlthub local run <job_name> --start 2024-01-01 --end 2024-02-01 # interval override (ISO 8601)
dlthub local run <job_name> --config KEY=VALUE # ad-hoc config override (short: -c)
dlthub local run <job_name> --dry-run # resolve entry point without launching
dlthub local serve my_notebook.py # serve an interactive job locally (notebook, dashboard, app)
A --profile prod simulation is the fastest way to catch missing prod credentials or destination misconfiguration before anything reaches the platform.
dlthub run my_pipeline.py # sync code + run batch job on cloud
dlthub run my_pipeline.py -f # sync + run, stream logs while running
dlthub run my_pipeline.py --refresh # sync + refresh run: reloads data only with auto_refresh_pipeline_mode (Step 4)
dlthub serve my_notebook.py # sync code + run interactive job on cloud
dlthub serve my_notebook.py -f # sync + serve, stream logs
dlthub job logs my_pipeline # check output (use job name)
dlthub job logs my_pipeline -f # stream logs in real-time
After launching:
dlthub job logsdebug-deployment) to diagnosedlthub show to open the dltHub web UI and show the user their pipeline is liveScheduling requires a __deployment__.py manifest. Go back to (prepare-deployment) and execute Step 5 if not yet done.
Add a trigger to the @run.pipeline decorator:
from dlt.hub import run
from dlt.hub.run import trigger
@run.pipeline("my_pipeline", trigger=trigger.schedule("0 0 * * *")) # daily at midnight UTC
def run_my_pipeline():
pipeline = dlt.pipeline(
pipeline_name="my_pipeline",
destination="warehouse",
dataset_name="my_dataset",
)
pipeline.run(my_source())
A bare cron string also works: trigger="0 0 * * *".
Then deploy:
dlthub deploy # sync manifest to Runtime
dlthub deploy --dry-run # preview without applying
dlthub job list # confirm triggers are set
Other trigger types (from dlt.hub.run.trigger):
trigger.every("6h") -- every 6 hourstrigger.once("2026-12-31T23:59:59Z") -- one-shot at a timestampupstream_job.success -- chain after another job succeeds (followup trigger)Notes:
dlthub deploy reconciles all jobs -- new ones are added, removed ones are archived, unchanged ones are left alone.See scheduling-triggers.md for the full trigger types table and more examples.
See advanced-patterns.md for full examples of each pattern, and runtime-settings.md for dependency groups, timeouts, instance size and timezone:
trigger=ingest_job.success. The transform runs automatically after ingest succeeds. Use when you have non-incremental pipelines that should run in sequence.interval={"start": "2026-01-01T00:00:00Z"} and read run_context["interval_start"] / interval_end from the scheduler. Runtime handles continuity and refresh resets.freshness=[upstream.is_fresh] prevents a job from running until upstream's interval is complete. Use for transforms that shouldn't observe half-loaded data.--refresh on dlthub run, dlthub job trigger or dlthub local run starts a run with the refresh signal. A refresh run drops or truncates production data, so confirm with the user first.
auto_refresh_pipeline_mode="drop_sources" (or drop_resources / drop_data) on @run.pipeline / @run.job, or under [jobs] in config. Every pipeline in the job then reloads in a refresh run. Without it, pipelines do not reload, unless the code reads run_context["refresh"]. Interval jobs still restart from interval.start.refresh_propagation="always" on a backfill job sends the signal to all downstream jobs. "auto" (the default) passes on a signal the job received, and "block" stops it. refresh= is the deprecated name.@run.job for general batch work (DQ checks, reports), @run.interactive for MCP servers, dashboards, REST APIs.require={"dependency_groups": ["ibis"]} installs extra packages only for jobs that need them. Declare groups in [dependency-groups] in pyproject.toml.execute={"timeout": "6h"} overrides the default 120-minute limit. Use for backfill or long-running jobs.require={"instance": {"size": "medium"}} gives the runner more vCPU/RAM (default small: 2 vCPU / 4 GiB). Charged by a budget multiplier on every run — never set or change it without asking the user first (see the always-loaded job-resources rule), and tune the pipeline via the performance toolkit (optimize-performance) before proposing a bump.Share an interactive job (notebook or dashboard) publicly:
dlthub job publish <job_name> # generate a public URL
dlthub job unpublish <job_name> # revoke public access
Note: the argument is a job name (e.g.
my_notebook), not a file path. Drop any.pyextension — passingmy_notebook.pywill fail because the CLI looks for a job literally namedmy_notebook.py.
if __name__ == "__main__": or the job does nothing.pyproject.toml — add all needed packages (e.g. uv add numpy pandas if using .df()).require.instance.size, execute.timeout, trigger cadence) require explicit human permission every time — propose with the budget math, wait for a yes, never bundle one into a dlthub deploy with other edits. See the always-loaded job-resources rule.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin dlthub-platform4 skills in this plugin
/debug-deploymentDebug a failed or misbehaving dltHub Platform deployment. Use when a runtime job fails, produces unexpected results, or the user wants to check job status and logs./prepare-deploymentPrepare production credentials and destinations for dltHub Platform. Use when setting up prod profile secrets, splitting dev/prod credentials, or configuring a production destination like Motherduck./setup-runtimeVerify dlthub workspace is ready for dltHub Platform. Use when user wants to deploy for the first time, or when another skill reports missing prerequisites like .workspace file or dlt[hub] dependency.Other plugins' skills for the same job