/sql-database-pipeline:adjust-table [pipeline-name] [adjustments]from sql-database-pipeline
Removes dev limits, adds incremental loading, and configures merge keys on a dlt SQL database pipeline for production readiness.
Ships in sql-database-pipeline. 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.
Parse $ARGUMENTS:
pipeline-name (optional): the dlt pipeline name. If omitted, infer from session context. If ambiguous, ask the user and stop.hints (optional, after --): specific adjustments (e.g. "add incremental on updated_at", "remove limit").add_limit().add_limit(1) during development loads one chunk only — a broken setup (wrong column types, large blobs) won't surface until you load the full table. Before removing it:
validate-sql-database-data to confirm the schema and sample data look correct.Once the test run is validated, remove the development flags:
pipeline = dlt.pipeline(
pipeline_name="<name>",
destination="<destination>",
dataset_name="<name>",
# dev_mode=True, # remove — write to the fixed dataset name
# progress="log", # remove — or keep if the user wants it
)
load_info = pipeline.run(table, write_disposition="replace") # remove .add_limit(1)
Incremental loading fetches only new or updated rows on each run using a cursor column.
import dlt
from dlt.sources.sql_database import sql_table
table = sql_table(
table="<table_name>",
incremental=dlt.sources.incremental(
"<cursor_column>", # e.g. "updated_at" or "id"
initial_value="2020-01-01T00:00:00Z", # where to start on the first run
),
)
pipeline.run(table, write_disposition="merge", primary_key="<pk_column>")
Key decisions:
updated_at / modified_at for change tracking; id for append-only tableswrite_disposition="merge": required with incremental — replaces rows with matching primary keyprimary_key: set this to the table's primary key so upserts work correctlyinitial_value: where to start on the very first run — older values are excludedlag (Optional): re-load a trailing window each run so late-arriving or back-dated updates are caught. The unit is inferred from the shape of the cursor value, not from your config — dlt sniffs it with detect_datetime_format: a date ("2026-08-27") gets days, a datetime ("2026-08-27T00:00:00Z") gets seconds. So "re-load the last 7 days" is lag=7 on a date cursor but lag=604800 on a datetime cursor. Needs merge + primary_key, or the re-fetched rows duplicate. Ref: https://dlthub.com/docs/general-usage/incremental/lagCheck stored cursor state between runs:
uv run dlthub -v local pipeline info <pipeline_name>
Look for last_value in the resource state.
Ref: https://dlthub.com/docs/general-usage/incremental/troubleshooting.md
uv run python <name>_pipeline.py
Use debug-sql-database-pipeline to inspect the first full run — large tables can surface new issues (timeouts, type errors on edge-case values, memory pressure).
optimize-sql-performance (backend, chunk size, parallel tables, push-down)debug-sql-database-pipelineadd-tableWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin sql-database-pipeline8 skills in this plugin
/add-tableAdd a new table or view to an existing dlt SQL database pipeline. Use when the user wants to load additional tables from the same database that already has a working pipeline./create-sql-database-pipelineCreate a dlt pipeline from a SQL database source (postgres, mysql, mssql, oracle, sqlite, or any SQLAlchemy-supported database). Use when the user wants to load tables from a relational database to a destination like DuckDB, BigQuery, or Snowflake. Not for REST APIs or file sources./debug-sql-database-pipelineDebug and inspect a dlt SQL database pipeline after running it. Use after a pipeline run (success or failure) to inspect traces, load packages, schema, and diagnose errors like connection failures, missing credentials, driver issues, or failed load jobs./find-sql-database-sourceFind and explore a SQL database source for a dlt pipeline. Use when the user wants to load data from a relational database (postgres, mysql, mssql, oracle, sqlite, or any SQLAlchemy-supported database), mentions a database connection, wants to discover available tables, or asks to build a pipeline from a SQL source./optimize-sql-performanceSpeed up a dlt SQL database pipeline. Use when extraction from a relational database (postgres, mysql, mssql, oracle, snowflake, etc.) is slow or memory-heavy and the user wants to optimize it — pick a faster backend, tune chunk size, parallelize tables, or reduce reflection overhead. For first-time incremental/merge setup or removing .add_limit() use adjust-table instead./validate-sql-database-dataValidate schema and data after a successful dlt SQL database pipeline load. Use when the user wants to check if loaded data looks correct, inspect table schemas, fix data types, or verify column mappings from the source database.Other plugins' skills for the same job