/rest-api-pipeline:adjust-endpoint [pipeline-name] [adjustments]from rest-api-pipeline
Hardens a working dlt REST API pipeline for production by removing dev limits, verifying pagination, adding incremental loading, and configuring retry/backoff for 429 errors.
Ships in rest-api-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 to make.add_limit() requires verified pagination.add_limit(1) during development masks pagination problems — only one page is fetched, so a broken paginator never loops. Removing it without explicit pagination causes stuck pipelines.
Before removing .add_limit():
"paginator" config. If any rely on auto-detection, add one first.debug-pipeline with INFO logging for the first unlimited run to watch pagination progress and catch loops early.Pipeline worked with .add_limit(1). After removing the limit, it hung forever — dlt's auto-detected paginator looped. Fix: added explicit "paginator": {"type": "cursor", "cursor_path": "next_page", "cursor_param": "page"}. Full load then completed in 5 seconds.
Some endpoints return 404 or an error body for certain parent items (e.g. a repo with no issues, an org with no members). In production this kills the pipeline. Fix with response_actions — no custom Python needed. See new-endpoint step 3A for syntax and examples.
Load only new or updated records each run instead of re-fetching everything. In rest_api, declare an incremental cursor on the query parameter the API filters by:
{
"name": "issues",
"endpoint": {
"path": "repos/{owner}/{repo}/issues",
"params": {
"since": { # the API's "updated since" query param
"type": "incremental",
"cursor_path": "updated_at", # field in each record to track
"initial_value": "2024-01-01T00:00:00Z",
"lag": 604800, # re-load a trailing window (see below)
},
},
},
"primary_key": "id",
"write_disposition": "merge", # upsert on primary_key
}
Key decisions:
since, updated_since, start_date…): the API parameter that filters server-side — without it the API returns everything and dlt only filters client-side.cursor_path: the field in each record holding the cursor value (e.g. updated_at).initial_value: where the first run starts — also how you expand or shrink the backfill date range.write_disposition: "merge" + primary_key: required so updated records upsert instead of duplicating.lag (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. Requires merge + primary_key, or the re-fetched rows duplicate. Ref: https://dlthub.com/docs/general-usage/incremental/lagdlt stores the last cursor value in pipeline state and resumes next run — check it with uv run dlthub -v local pipeline info <name> (look for last_value).
Ref: https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/basic#incremental-loading
Throughput tuning — parallelizing child/independent resources, page size, running resources concurrently — lives in optimize-rest-api-performance. Use it once the pipeline loads correctly and you need it faster.
dlt automatically retries HTTP 429 (Too Many Requests) and respects Retry-After response headers. The defaults (5 retries, 60s timeout) work for most APIs. For APIs with strict per-minute limits or high request volume, tune in .dlt/config.toml:
[runtime]
request_max_attempts = 10 # retries per request (default: 5)
request_backoff_factor = 1.5 # steeper backoff so waits grow longer (default: 1)
Per-second vs per-minute limits: if the API sends Retry-After headers, dlt uses those values directly — the backoff config is irrelevant. If it doesn't, raise request_backoff_factor so the wait grows with each retry and the window has time to reset.
request_timeout (default: 60s) is how long dlt waits for a single HTTP response. Raise it when:
requests.exceptions.ReadTimeout or ConnectionTimeout in the trace[runtime]
request_timeout = 120 # or higher — match the API's documented response time SLA
Ref: https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/advanced.md
If a quick-start path is active, follow that path's sequence instead — this list is for standalone use.
explore-data) to chart and analyze the dataoptimize-rest-api-performance (parallel resources, page size, concurrency)optimize-performance (install if not present: uv run dlthub --non-interactive ai toolkit install performance)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dlt, pipeline-production, pagination, incremental-loading, rate-limiting
npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin rest-api-pipeline8 skills in this plugin
/create-rest-api-pipelineCreate a dlt REST API pipeline. Use for the rest_api core source, or any generic REST/HTTP API source. Not for sql_database or filesystem sources./debug-pipelineDebug and inspect a dlt pipeline after running it. Use after a pipeline run (success or failure) to inspect traces, load packages, schema, data, and diagnose errors like missing credentials or failed load jobs. Also covers pipelines built on a verified source./find-sourceFind a dlt source for a given API or data provider. Use when the user asks about a source, wants to find a connector, or asks to implement a pipeline for a specific data source./new-endpointAdd a new REST API endpoint/resource to an existing dlt pipeline. Use when the user wants to pull additional data from an API that already has a working pipeline./optimize-rest-api-performanceSpeed up a dlt REST API pipeline. Use when a REST/HTTP API pipeline is slow because of many sequential requests, nested child resources, or large responses, and the user wants higher throughput — parallelize resources, use async, tune page size and concurrency. For removing .add_limit(), fixing pagination, first-time incremental/merge setup, or retry/backoff on 429 / rate-limit errors use adjust-endpoint instead./validate-dataValidate schema and data after a successful dlt pipeline load. Use when the user wants to check if loaded data looks correct, inspect table schemas, fix data types, flatten nested structures, or refine the data shape.Other plugins' skills for the same job