/tycoon:reading-project-statefrom tycoon
Reads tycoon project state: pipeline/source status, ingestion/dbt run history, row counts, and table freshness. Supports machine-readable output via DuckDB queries for scripts and CI.
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.
| Command | Shows |
|---|---|
tycoon data status | Layered view: Sources → Staging → Intermediate → Marts, with freshness |
tycoon data history [-t dlt|dbt] [-n N] [-s SOURCE] | Recent runs (default 20) |
tycoon data history show <RUN_ID> | One run: status, duration, error, per-table row counts (short id prefix OK) |
tycoon data schema | Tables, row counts, file sizes across raw + warehouse (no arguments) |
Marts panels appear only after a dbt manifest exists (run dbt at least once).
There is no --json flag anywhere. The programmatic surface is the
observability database at .tycoon/metadata.duckdb, queried through tycoon
(which handles locks):
tycoon data query --db .tycoon/metadata.duckdb \
"SELECT r.source_schema, r.load_id, r.status, r.inserted_at,
sum(t.rows_loaded) AS rows_loaded
FROM dlt_runs r LEFT JOIN dlt_rows_by_table t USING (source_schema, load_id)
GROUP BY r.source_schema, r.load_id, r.status, r.inserted_at
ORDER BY r.inserted_at DESC LIMIT 20"
Tables: dlt_runs, dlt_rows_by_table, dbt_runs, dbt_nodes,
dbt_manifest_snapshots, dbt_schema_changes, fivetran_connectors.
Discover columns with DESCRIBE <table>.
tycoon data query also reaches the other databases:
tycoon data query "SELECT count(*) FROM marts.my_table" # warehouse
tycoon data query --raw "SELECT * FROM raw_pokeapi.pokemon LIMIT 5"
tycoon data query -s pokeapi "SHOW TABLES" # one source's schema
A local DuckDB file opens read-only. A MotherDuck connection does not: it is
read-write, and the token's scope decides what it may change, so treat
tycoon data query against md: as able to write. Warehouse queries route
through Quack automatically while tycoon start is running, so they work even
when the local file is locked.
tycoon data observability scaffold generates models/_tycoon/ staging
models over the metadata DB and ATTACHes it as tycoon_meta in profiles.yml.
Use this when dashboards should show pipeline health.
tycoon data clean --all deletes the raw and warehouse files but
preserves .tycoon/metadata.duckdb (run history) unless --metadata is
passed too.
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
/adding-data-sourcesUse when adding, configuring, or running a data source in a tycoon project: REST APIs, SQL databases, files (CSV/Parquet), or catalog sources like GitHub, Stripe, Slack, Notion, Google Sheets; when an ingestion run must be scripted with no prompts (CI); when credentials or record caps are involved; or when a source run fails with "not installed" or missing-config errors./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.