/sql-database-pipeline:validate-sql-database-data [pipeline-name] [concerns]from sql-database-pipeline
Validates schema and data after a dlt SQL database pipeline load. Inspects table schemas, row counts, data types, and column mappings using the pipeline dataset API.
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.
After a successful pipeline load, verify the schema and data make sense.
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 validation concerns (e.g. "decimal precision", "missing columns")uv run dlthub local pipeline schema <pipeline_name> --format mermaid
Show the mermaid diagram to the user. This gives a quick overview of tables, columns, types, and relationships.
Tell the user to run the Workspace Dashboard:
uv run dlthub local pipeline show <pipeline_name>
This opens a browser with table schemas, row counts, and sample data.
import dlt
pipeline = dlt.attach("<pipeline_name>")
dataset = pipeline.dataset()
# Row counts for all tables
dataset.row_counts().df()
# Sample rows from a table
dataset["<table_name>"].head().df()
Never import the destination library (e.g. duckdb) directly — use pipeline.dataset() instead, which is destination-agnostic.
Ask the user if the schema and data look right. Common issues for SQL sources:
The default sqlalchemy backend reflects types from the source DB. If types look wrong after switching backends (e.g. to pyarrow), check reflection_level:
sql_table(
table="<table>",
reflection_level="full_with_precision", # preserves decimal scale and string length
)
IMPORTANT: Never convert monetary or precision-sensitive values to float. Always keep them as Decimal.
Columns that are all-null on first load won't have inferred types. Add explicit column hints:
sql_table(
table="<table>",
columns={"amount": {"data_type": "decimal", "precision": 18, "scale": 4}},
)
Note:
columns={}hints do not work with backends that skip dlt normalisation (pyarrow,pandas,connectorx). If you need schema hints and are using one of those backends, usetable_adapter_callbackinstead.
dlt normalizes column names to snake_case by default. If source DB column names contain spaces or special chars, they are renamed. Check the schema mermaid output to see the mapped names.
Re-run the pipeline after changes (dev_mode=True gives a fresh dataset each time). Use debug-sql-database-pipeline to inspect traces after each run. Repeat until the user is satisfied with the schema.
adjust-table to remove limits and configure incremental loading for productionadd-tabledebug-sql-database-pipelineWhat 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./adjust-tableAdjust a working dlt SQL database pipeline for production — remove dev limits, add incremental loading, configure merge keys. Use when the user wants to remove .add_limit(), load the full table, or set up incremental loading on a cursor column. For speed/memory tuning (backend, chunk size, parallelism) use optimize-sql-performance instead. For inspecting loaded data or fixing column types/schema after a load, use validate-sql-database-data instead./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.Other plugins' skills for the same job