/tycoon:building-models-and-dashboardsfrom tycoon
Bootstrap dbt models and Rill dashboards inside a tycoon project: register/create dbt projects, generate staging models from sources, run dbt via tycoon, and manage sentinel-based regeneration protection.
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 register dbt --create # bootstrap a sibling repo ../<name>-dbt
tycoon register dbt --create ./dbt_project # or bootstrap in-project
tycoon register dbt ../existing-dbt --profile my_profile --target dev # BYO
--create refuses if dbt_project.yml already exists at the target, and
only supports DuckDB/MotherDuck warehouses (Snowflake/BigQuery: hand-author
the project, then register it).tycoon_meta in profiles.yml
and generates models/_tycoon/ unless --no-attach-metadata.tycoon.yml, expect a
warehouse-alignment prompt.Profile resolution order for data transform *: --profiles-dir →
tycoon.yml dbt_profiles_dir → the dbt project dir → $DBT_PROFILES_DIR →
~/.dbt. Profile name: --profile → tycoon.yml dbt_profile →
dbt_project.yml. Target: --target → tycoon.yml dbt_target → profile
default → dev.
tycoon data analyze <source> # scaffold stg_<source>__<table> models
tycoon data analyze <source> --build # + dbt build --select staging
tycoon data analyze <source> --rill # + Rill source/metrics/explore YAML
tycoon data analyze --all # every source, but silently SKIPS --rill/--build
Models land in models/staging/<source>/stg_<source>__<table>.sql.
Every generated file's first line is a sentinel (-- @generated by tycoon analyze / YAML equivalent). Regeneration only overwrites files whose
sentinel is intact. Deleting the sentinel line claims the file as
hand-authored, and tycoon then skips it forever unless --force. This is the
mechanism, not a bug; edit generated models by removing the sentinel.
tycoon data transform run [-s SELECTOR] [-t TARGET] [--full-refresh]
tycoon data transform test [-s SELECTOR]
tycoon data transform build [-s SELECTOR]
tycoon data transform docs [-p PORT] # generate + serve
These use the venv-co-located dbt binary and record run history in the
observability DB. Prefer them over raw dbt calls so history stays complete.
--rill exports each raw table to Parquet under data/parquet/<schema>/ and
generates Rill source/metrics-view/explore YAML. The Parquet bridge is
deliberate: Rill reading the DuckDB files directly would conflict with
tycoon's locks. Start the dashboard with tycoon start (Rill + Quack;
--only rill to skip Quack), stop with tycoon stop.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dbt, rill, tycoon, data-modeling, staging-models, dashboard-generation
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./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).