/drt:drt-initfrom drt
Guides users through initializing a new drt project, including installation, template scaffolds, interactive wizard, dbt manifest scaffold, and Apache Ossie semantic-model scaffold.
Ships in drt. 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.
Guide the user through initializing a new drt project.
Confirm drt is installed. Pick the install line for the user's source:
pip install drt-core # core (DuckDB / SQLite / REST API source — no extras)
pip install drt-core[bigquery] # BigQuery source
pip install drt-core[postgres] # Postgres / Redshift source
pip install drt-core[mysql] # MySQL source
pip install drt-core[clickhouse] # ClickHouse source
pip install drt-core[snowflake] # Snowflake source
pip install drt-core[databricks] # Databricks source
pip install drt-core[sqlserver] # SQL Server source
pip install drt-core[deltalake] # Delta Lake source
pip install drt-core[iceberg] # Iceberg source
(Or uv add drt-core[...] if the user prefers uv.)
Pick the right starter shape. Four flows produce the same sync YAML shape:
A) Template scaffolds (fastest, ~3 commands) — best when the user just wants something running:
mkdir my-drt-project && cd my-drt-project
drt init --template duckdb_to_rest # DuckDB → REST API (no accounts needed, uses httpbin.org)
Other templates:
drt init --template list # see all available templates
drt init --template postgres_to_slack # operational alerts
drt init --template duckdb_to_hubspot # CRM-style upsert
Each template prints next-steps for the env vars / source data it needs.
B) Interactive wizard (guided) — best when the user wants to be walked through a real warehouse setup:
mkdir my-drt-project && cd my-drt-project
drt init
Prompts for project name and one of the interactive wizard's source types (bigquery / duckdb / sqlite / postgres / redshift / clickhouse), then asks for source-specific connection fields and auth method. The other built-in source types (snowflake / mysql / databricks / sqlserver / deltalake / iceberg / rest_api) remain available through templates or a hand-authored profiles.yml entry; drt profile add also covers MySQL and Snowflake.
C) dbt manifest scaffold — best when a dbt project already has built models:
drt init --from-dbt target/manifest.json
This interactively lists dbt models and writes selected
syncs/sync_<model>.yml files without overwriting existing files.
D) Apache Ossie semantic-model scaffold — best when the source metadata is already portable Ossie YAML/JSON:
drt init --from-ossie semantic_model.yaml --destination postgres
drt init --from-ossie semantic_model.yaml --dataset customer --dataset account --dialect SNOWFLAKE
By default this writes one upsert sync per dataset with a primary_key and
prints why unkeyed datasets are skipped. Supported destination stubs are
postgres and hubspot; generated TODOs still need credentials, target
table/object, and property mappings. A requested field dialect falls
back to ANSI_SQL; metrics are listed but not generated because entity grain
is unclear.
The template and wizard flows write a full project shell; metadata scaffolds
write sync YAML into syncs/ (or Ossie's --output-dir):
my-drt-project/
├── drt_project.yml
└── syncs/<name>.yml # first sync, runnable
plus credentials to ~/.drt/profiles.yml.
Set up auth for the chosen source (only the relevant bullet):
gcloud auth application-default login or export GOOGLE_APPLICATION_CREDENTIALS=/path/to/sa.jsonexport DRT_PG_PASSWORD=...)DATABRICKS_TOKEN (personal access token from Workspace → User Settings)export REST_API_TOKEN=...)For deployed environments, an *_env field may contain an aws-sm://,
gcp-sm://, or vault:// provider URI instead of an env-var name; install
the matching optional extra. For Postgres, Snowflake, Databricks, and
BigQuery, keep managed_schema: _drt (default) or choose an isolated
schema/dataset if snapshot-diff incremental or warehouse-backed state will
be used. This is drt bookkeeping space, not the query's default schema.
Both drt init flows already write a profile to ~/.drt/profiles.yml. To add
another later (a second warehouse, a prod/dev split) without re-running init:
drt profile add <name> # interactive — prompts for source type + connection fields
drt profile list # names + source types already configured
drt profile show <name> # inspect one, inline secrets masked
Validate the setup — credential first, since that is the step most likely to fail:
drt profile test <name> # actually connects, using the source's own connection check
drt doctor # env-level triage — catches missing env vars, malformed profile, etc.
drt validate # YAML schema check
drt list # confirm syncs are discovered
drt plugins list # installed entry-point extensions + isolated load failures
drt doctor and drt validate inspect configuration; only drt profile test
proves the warehouse accepts the credential. Run it before the first sync so a
bad password surfaces here rather than mid-run.
Offer to create a first sync using the /drt-create-sync skill.
drt_project.yml selects which profile from ~/.drt/profiles.yml to use; override per-run with --profile <name> or DRT_PROFILE.syncs/<name>.yml file (sync discovery is glob-based).drt sources --detailed and drt destinations --detailed print every connector's required env vars and a sample YAML stanza — useful when hand-authoring beyond the templates.drt run --dry-run runs through the engine without writing data; --dry-run --diff previews record-level changes for queryable destinations. drt run --limit 10 (#774) really loads at most 10 rows for a safe first send (watermark won't advance; refused for mode: mirror / replace).state: {backend: warehouse, connection_profile: <profile>}. Postgres, Snowflake, Databricks, and BigQuery store _drt_runs, _drt_history, and _drt_dlq under that profile's managed_schema; this is separate from sync.watermark.storage.drt build (#777) runs each sync and then its tests: in one pass — the dbt build shape; drt build --select tag:crm --fail-fast stops at the first failure.drt test --unit runs top-level unit_tests: fixture rows through computed fields, mappings, masking, and metadata without source/destination credentials.drt status shows recent run results; drt status --output json is the CI-friendly form.drt run that resolves syncs also writes target/drt/run_results.json; --target-path relocates it for CI artifact upload.--select state:modified --state <manifest.json> (also valid on build/test/validate).drt docs generate (v0.7.11+) renders a static HTML catalog of your project — every sync, its model, destination, and a lineage DAG — to target/docs/. Labels are docs-safe by default (endpoints/emails/phones stripped, #696); add --format mermaid or --format json for other outputs. Since v1.3.1 each sync page also shows recent run history, drt plan coverage and whether its column contract is hand-written or dbt-derived; large projects get an owner/maturity/tag filter.location in profiles.yml (e.g. "EU", "asia-northeast1").duckdb_to_rest template pre-scaffolded.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
6 skills in this plugin
/drt-create-syncGenerate a drt sync YAML configuration file. Use this skill whenever a user wants to create a new drt sync, connect a data warehouse table to an external service, or set up a Reverse ETL pipeline with drt.
/drt-debugDebug and fix a failing drt sync. Use this skill whenever a user reports errors running drt, asks why a sync is failing, or needs to diagnose drt configuration problems (auth errors, rate limits, template errors, etc.).
/drt-migrateHelp migrate from Census, Hightouch, Polytomic, or custom scripts to drt. Use this skill when a user wants to replace their existing Reverse ETL tool with drt, or asks how to replicate a sync they had in another tool.
/drt-review-syncReview what a drt sync is about to change and apply it only after a human approves. Use this skill whenever a user asks to preview, review, approve or safely apply a sync, especially one that deletes rows (mirror/replace), updates many records, or writes to a production CRM. Uses drt_plan / drt_apply (MCP) or `drt plan` / `drt apply` (CLI).
/drt-troubleshootWalk a drt setup through a full top-to-bottom diagnostic checklist when something is off but the failing layer isn't obvious. Use this when a user says "drt isn't working", a sync silently does nothing, results look wrong, or they want to verify a fresh setup end-to-end — broader than /drt-debug, which fixes a specific known error.
npx claudepluginhub drt-hub/drt --plugin drtOther plugins' skills for the same job