/dlthub-setup:setup-dlthub-workspacefrom dltHub Setup
Sets up a dltHub workspace in a project: installs uv, dlt, and the dltHub AI harness tools for building data pipelines (e.g., loading from Stripe into DuckDB).
Ships in dltHub Setup. 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.
Set up dlthub in the current project. Then hand over to dlthub-router from the init toolkit, which installs the toolkit that the user needs.
Use the dlthub CLI for every install, so that each toolkit has only one copy.
Run these checks in order. Do not install anything yet.
uv --version. If it fails, uv is missing.test -f pyproject.toml. Note if pyproject.toml exists. Step 3 uses this result.uv run --no-sync dlthub ai status.
dlt[hub] is missing.dlthub ai init not yet run, init is missing.dlthub-router.Show the user what is missing and what you will run:
dlthub setup:
uv: ✓ installed (x.y.z) / ✗ missing
pyproject.toml: exists / missing
dlt[hub]: ✓ installed (x.y.z) / ✗ missing
init: ✓ installed / ✗ missing
task: <task>
Actions:
1. Install uv (if missing)
2. uvx [email protected] (if dlt[hub] is missing)
+ uv add "dlt[hub]" "fastmcp>=3.1.0" (if pyproject.toml exists)
3. dlthub ai init --overwrite (if init is missing)
4. dlthub-router picks and installs the toolkit (if the user has a task)
Ask the user to approve the plan. If the user refuses, stop.
Run only the actions that the user approved.
1. Install uv (if missing):
uv is still not found, tell the user to open a new shell, because the install changes PATH.2. Install dlt[hub] and the workspace:
Choose the commands from the result of the pyproject.toml check in Step 1.
If pyproject.toml is missing, run:
uvx [email protected]
If pyproject.toml exists, run:
uvx [email protected]
uv add "dlt[hub]" "fastmcp>=3.1.0"
dlthub-init sets up the current folder in place. It writes .dlt/, .mcp.json and a few init skills in .agents/skills/. It does not install the rules.dlthub-init skips an existing pyproject.toml. Then it does not add dlt[hub] or fastmcp, but it still exits 0.uv add adds the two dependencies that dlthub-init skipped. dlt[hub] gives the dlthub command. fastmcp runs the MCP server.dlthub-init is not available or fails: run uvx --from "dlt[hub]" dlthub init.Then run uv run dlthub --version.
ai init.dlthub-init does not show if dlt[hub] is installed.3. Install init:
uv run dlthub --non-interactive ai init --overwrite
init toolkit. This includes dlthub-router and the toolkit index.--overwrite replaces the old init skills that dlthub-init bundles.--overwrite only when dlthub ai init did not run before in this project. Otherwise it replaces files that the user changed.4. Check the status:
Run uv run dlthub ai status. If it shows a WARNING about the MCP server, fix it before you continue:
pip install "fastmcp", run uv add "fastmcp>=3.1.0". Then run uv run dlthub ai status again.Skip this step if the user only asked to set up dlthub.
dlthub-router from init picks the toolkit for the task and installs it. Do not pick the toolkit yourself.
The router and the init rules are on disk now, but not in your context until the reload. Read them from the project folder:
| Coding assistant | Init rules (with the toolkit index) | Router |
|---|---|---|
| Claude Code | .claude/rules/init-dlthub-workspace.md | .claude/skills/dlthub-router/SKILL.md |
| Cursor | .cursor/rules/init-dlthub-workspace.mdc | .cursor/skills/dlthub-router/SKILL.md |
| Codex | .agents/skills/init-dlthub-workspace/SKILL.md | .agents/skills/dlthub-router/SKILL.md |
Follow the router to pick and install the toolkit, with these changes:
uv run dlthub --non-interactive ai toolkit install <toolkit>.uv run dlthub ai CLI instead of the dlt-workspace-mcp tools.The new skills, rules and MCP server load at session start. The agent cannot reload them itself.
The router says that no restart is needed. That is true only when init was loaded at session start. Here it was not.
Tell the user the step for their coding assistant:
| Coding assistant | Tell the user |
|---|---|
| Claude Code | "Run /reload-skills to use the new skills now. Restart the session later to load the rules and the MCP server." |
| Codex | "Restart the session to load the rules and the MCP server." |
| Cursor | "Restart the session to load the new skills, rules and MCP server." |
Do not wait for the reload. Continue with the handover step of dlthub-router:
read the workflow rule and the entry skill of the new toolkit from the project folder, and follow the entry skill with the context that you already have.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub dlt-hub/dlthub-ai-harness --plugin dlthub-setupOther plugins' skills for the same job