/tycoon:diagnosing-projectsfrom tycoon
Diagnoses tycoon project issues: failed commands, dbt profile mismatches, DuckDB file locks, Python version conflicts, and schema_version errors. Guides on tycoon doctor vs CI gates.
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.
Start with tycoon doctor: it reports the Python interpreter, tycoon.yml,
dbt and Rill projects, warehouse credentials (MotherDuck/Snowflake/BigQuery),
the dbt profile, staging-model coverage per source, and the observability DB.
tycoon doctor always exits 0. It is a report, not a gate; putting it
in CI never fails the job. The commands that exit 1 on failure are:
tycoon profiles doctor # dbt profile valid + matches stack.warehouse
tycoon semantics doctor # OSI YAML valid (only if you use semantics)
Use those for CI; use tycoon doctor for humans.
data run-all fails where data transform run worksThese two resolve the dbt profile differently:
data transform run uses the full resolution chain: --profiles-dir →
tycoon.yml dbt_profiles_dir → the dbt project dir → $DBT_PROFILES_DIR →
~/.dbt. It also runs the dbt binary co-located with the tycoon venv.data run-all hardcodes --profiles-dir <dbt_project_dir> and uses
whatever dbt is first on PATH. A profile that only exists in
~/.dbt/profiles.yml works under transform run and breaks under
run-all. Setting DBT_PROFILES_DIR does not fix run-all.Fix: put (or symlink) profiles.yml inside the dbt project directory, or
replace run-all with the two explicit steps:
tycoon data sources run-all && tycoon data transform run
Supported interpreter range is 3.12 ≤ Python < 3.14 (dbt has no 3.14
wheels). A bad interpreter fails at data transform run, far from the cause.
tycoon setup builds a project-local .venv via uv and installs tycoon
into it (flags: --python, --from, --force).tycoon doctor --fix builds the same .venv but cannot swap the running
interpreter; activate it afterwards (source .venv/bin/activate).schema_version laddertycoon init --upgrade (comment-preserving, idempotent).tycoon start is running, Quack holds an exclusive lock on the
warehouse. tycoon data query transparently routes warehouse queries
through it, but external tools (duckdb CLI, BI tools) will hit the lock:
tycoon stop first.tycoon.yml's
database: block.data/parquet/ rather than the DuckDB
files precisely to avoid these locks; that is by design.Project-root discovery walks up looking for tycoon.yml or
pyproject.toml. Inside any Python repo, tycoon roots itself there and then
reports no tycoon.yml. cd into the actual tycoon project directory.
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./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).