/filesystem-pipeline:add-incremental-loadingfrom filesystem-pipeline
Adds incremental loading to a dlt filesystem pipeline, filtering files by modification date and optionally filtering records by a timestamp column with merge/dedup support.
Ships in filesystem-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.
Extends a working filesystem pipeline to load only new or modified files (and optionally only new records within those files) on each run.
Reference: https://dlthub.com/docs/tutorial/filesystem#7-loading-data-incrementally
Requires a working filesystem pipeline. If the pipeline file is not already known from session context, ask the user which file to modify before proceeding.
Read the pipeline file. Note:
replace, append, or already mergedev_mode=True is set (it must be removed before incremental runs)Ask the user in one round (parallel questions):
updated_at is newer than the last run)? If yes, which column?merge deduplication. If the data has no natural key, append write disposition is the fallback (no deduplication).File-level filtering (by file modification date) is always applied — do not ask about it.
Add incremental=dlt.sources.incremental("modification_date") to the filesystem() call:
# Single-table
reader = (
filesystem(file_glob="<pattern>", incremental=dlt.sources.incremental("modification_date"))
| read_csv()
).with_name("<table_name>")
For multi-table layout, add the same incremental= argument to each filesystem(...) call.
Call apply_hints on the reader after .with_name(...):
reader = (
filesystem(file_glob="<pattern>", incremental=dlt.sources.incremental("modification_date"))
| read_csv()
).with_name("<table_name>")
reader.apply_hints(
primary_key="<pk_column>",
incremental=dlt.sources.incremental("<timestamp_column>"),
)
If no primary key exists, skip apply_hints and use append write disposition (step 5) — dlt will accumulate rows without deduplication.
Change write_disposition="replace" → "merge" (or "append" if no primary key). Remove dev_mode=True from dlt.pipeline(...) — dev mode generates a fresh dataset name on every run, which breaks state tracking across runs.
pipeline = dlt.pipeline(
pipeline_name="<pipeline_name>",
destination="<destination>",
dataset_name="<dataset>",
# dev_mode removed
)
load_info = pipeline.run(reader, write_disposition="merge")
Run the pipeline twice to confirm incremental behaviour:
get_row_counts MCP tool or dlthub local pipeline show <name>.get_local_pipeline_state MCP tool to confirm the modification_date cursor advanced.If the user can add a test file to the bucket, run a third time to confirm only the new file is picked up.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
3 skills in this plugin
/create-filesystem-pipelineCreate a dlt filesystem pipeline that reads files (CSV, Parquet, JSONL, or custom) from local disk, S3, GCS, Azure, or SFTP into a destination. Use for the filesystem core source. Not for REST APIs (rest_api) or databases (sql_database)./optimize-filesystem-performanceSpeed up a dlt filesystem pipeline. Use when reading files (CSV, Parquet, JSONL) from local disk, S3, GCS, Azure, or SFTP is slow or memory-heavy and the user wants to optimize it — choose a faster reader, read files in parallel, narrow the glob, or stream in chunks. For first-time incremental/merge setup, or to skip files already loaded in previous runs, use add-incremental-loading instead.npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin filesystem-pipelineOther plugins' skills for the same job