/rest-api-pipeline:new-endpoint [endpoint-description]from rest-api-pipeline
Adds a new REST API endpoint/resource to an existing dlt pipeline. Useful when pulling additional data from an API that already has a working pipeline.
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.
Add a new resource to an existing dlt REST API pipeline source.
Parse $ARGUMENTS:
endpoint-description (required): what data the user wants to add (e.g., "claude code analytics", "user profiles", "transactions")Read the pipeline .py file to understand:
@dlt.source function and its parametersRESTAPIConfig: client setup (base_url, auth, paginator)__main__ runs the pipeline (dev_mode, add_limit, with_resources)Note what patterns the existing resources use:
replace, merge, append)If a docs.yaml scaffold exists, read it for endpoint details.
Web search the API documentation for the new endpoint:
Read dlt docs if you need to refresh on config options:
https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/basic.mdhttps://dlthub.com/docs/general-usage/resource.mdIf the endpoint fits the existing client config (base_url, auth, paginator), add it to the "resources" list in RESTAPIConfig. Key decisions:
client.paginator — override per-resource if differentmap/filter/yield_map if needed (e.g., Decimal for money — NEVER float)response_actions{
"name": "org_members",
"endpoint": {
"path": "orgs/{org}/members",
"response_actions": [
{"status_code": 404, "action": "ignore"}, # org has no members — skip silently
{"content": "Not Found", "action": "ignore"}, # match response body substring
{"status_code": 200, "content": "error", "action": "ignore"}, # AND condition
set_encoding, # callable — applied to every response
],
},
}
Use "ignore" for optional endpoints that return 404 for some parent items (e.g. repos with no issues). Use a callable to fix encoding, add/remove fields, or patch malformed responses before dlt parses them. Never write a processing_steps workaround for something response_actions handles. Ref: https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/advanced.md
parallelized{
"resources": [
"posts",
{
"name": "post_comments",
"parallelized": True, # fetch comments for all posts concurrently
"endpoint": {
"path": "posts/{resources.posts.id}/comments",
},
},
],
}
Use when the resource is a child of another (transformer pattern) and each parent has many independent child records. Caveat: all child pages for one parent are buffered in memory before yielding — avoid for parents with very large child sets. Ref: https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/advanced.md
Some endpoints can't be described in RESTAPIConfig:
Define a custom @dlt.resource inside the @dlt.source function. Use RESTClient (from dlt.sources.helpers.rest_client) for HTTP calls with built-in auth and pagination. Loop over dates (or other dimensions) in the resource, call client.paginate() for each, and yield the data. The source then yields both rest_api_resources(config) and the custom resource.
Read dlt docs on RESTClient: https://dlthub.com/docs/dlt-ecosystem/verified-sources/rest_api/advanced.md
Update the source docstring to list the new resource and show with_resources() examples.
Use debug-pipeline after each run to inspect traces and load packages.
Use with_resources() to load only the new resource:
source = my_source()
pipeline.run(source.with_resources("new_resource").add_limit(1))
Temporarily edit __main__ or run from a Python shell. This avoids re-loading all existing resources while iterating.
Run the pipeline:
uv run python <source>_pipeline.py
Iterate over the resource directly without loading to destination:
for item in source.resources["my_resource"]:
print(item)
Now Use debug-pipeline skill with the tricks above!
Check if the existing pipeline uses patterns that the new resource should also adopt:
incremental config? Should the new one too?merge used with primary_key? Should the new resource also merge?columns for nullable fields?.dlt/config.toml [runtime] retry settings — dlt handles 429 automatically but defaults (5 retries, 60s timeout) may need tuning. See adjust-endpoint for the config block.Flag any gaps to the user — the new resource works now but may need these patterns for production use.
After adding, use validate-data to verify schema and data look correct.
Endpoint added: <resource_name>
- Path: <endpoint_path>
- Tables created: <list of tables including child tables>
Load with:
source.with_resources("<resource_name>") # just this endpoint
source # all endpoints
Available resources: <list all resource names>
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin rest-api-pipeline8 skills in this plugin
/adjust-endpointAdjust a working dlt pipeline for production — remove dev limits, verify pagination (including stuck or looping paginators), configure incremental loading, expand date ranges, and handle rate-limit/429 errors with retries, backoff, and request timeouts. Use when the user wants to remove .add_limit(), load more data, fix stuck or looping pagination, set up incremental loading, or make the pipeline retry/back off on 429s. For throughput/concurrency tuning (parallel resources, page size) when a working pipeline is slow, use optimize-rest-api-performance instead. For inspecting loaded data, fixing column types, or flattening nested structures after a load, use validate-data instead./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./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