/tycoon:adding-data-sourcesfrom tycoon
Guides adding, configuring, and running data sources (REST APIs, SQL databases, files, SaaS catalogs) using the tycoon CLI. Covers registration, CI-safe scripting, credential handling, and DuckDB output.
Ships in tycoon. 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.
tycoon registers sources in tycoon.yml and runs them through dlt. Three
source types are native builders (rest_api, sql_database, filesystem);
everything else (github, stripe, slack, notion, google_sheets, hubspot) comes
from the source catalog and needs a one-time install.
| Command | Purpose |
|---|---|
tycoon data sources catalog | Show the built-in source catalog |
tycoon data sources add [TYPE] | Register a source (interactive without flags) |
tycoon data sources list | Registered sources |
tycoon data sources list show <NAME> | One source's config, secrets masked |
tycoon data sources run <NAME> [-n N] | Ingest one source; -n caps records per resource |
tycoon data sources run-all [-n N] | Ingest every source sequentially |
tycoon data sources remove <NAME> | Unregister (asks for confirmation) |
tycoon data sources add rest_api \
--base-url https://pokeapi.co/api/v2/ \
--resources pokemon,berry \
--no-prompt
tycoon data sources run pokeapi -n 100 # name auto-derived from hostname
tycoon data analyze pokeapi # scaffold dbt staging models (safe to re-run)
tycoon data transform run --select 'stg_pokeapi__*'
Generated staging models are named stg_<source>__<table>.sql under
models/staging/<source>/; select them with --select 'stg_<source>__*'.
One data/raw.duckdb file per project (not per source), with one DuckDB
schema per source: raw_<source_name> (hyphens become underscores). The dbt
warehouse is a separate file, data/warehouse.duckdb. Confirm with
tycoon data schema (takes no arguments).
--no-prompt rulesrest_api → --base-url · sql_database → --connection-string ·
filesystem → --path.--name/--schema are auto-derived only for rest_api (hostname's second
label, e.g. pokeapi) and filesystem (file stem). For every other type
--name is required under --no-prompt.--config key=value.Catalog sources default credential fields to ${ENV_VAR} references stored in
tycoon.yml; the secret itself is never written. Export the variable before
running. An unexpanded ${VAR} produces a warning then a failing API
call, not an upfront error, so check env vars first when a run 401s.
github/stripe/slack/notion/google_sheets/hubspot need dlt's source files on
disk before they run. Where those files go depends on the project. A project
with its own .venv keeps them in .tycoon/sources/<type>/ inside the
project. A project without one uses the shared ~/.tycoon/sources/<type>/.
tycoon data sources add <type> installs them. --no-prompt installs them
without asking, so it is the right flag for scripts.
Trap: some error messages suggest tycoon data sources catalog install <type>. That subcommand does not exist; run tycoon data sources add <type>.
If a source was installed globally before the project got its own .venv,
run tycoon data sources migrate to move it into the project.
tycoon auto-scaffolds dbt staging models for the source if a dbt project
exists and nothing references the source yet. Opt out per-call with
--no-scaffold, or project-wide with transform.auto_scaffold: false in
tycoon.yml.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub database-tycoon/tycoon-cli --plugin tycoon5 skills in this plugin
/building-models-and-dashboardsUse when turning ingested raw data into dbt models or Rill dashboards in a tycoon project: bootstrapping dbt from scratch, attaching an existing dbt project or profiles.yml, generating staging models for a source, running dbt through tycoon, or when previously generated model files refuse to regenerate./diagnosing-projectsUse when a tycoon project misbehaves: commands fail, dbt can't find a profile, `data run-all` fails where `data transform run` works, schema_version warnings or "newer than this tycoon" errors, DuckDB "Unique file handle conflict" or file-lock errors, wrong Python version, "No tycoon.yml found"; or when wiring tycoon health checks into CI./operating-pipelinesUse when running a tycoon project unattended or operating it day to day: scheduling recurring pipeline runs (cron/launchd/systemd), webhook notifications on success or failure, one-command full refreshes, snapshotting a cloud warehouse to a local DuckDB file for offline work, or resetting local databases without losing run history./reading-project-stateUse when checking what state a tycoon project is in (pipeline/source status, recent ingestion or dbt run history, row counts, table freshness) and especially when a script or CI job needs machine-readable output (no tycoon command has a --json flag).