config/agents/skills/dbt/SKILL.md
dbt Expert Engineer Skill - Comprehensive guide for dbt development best practices, command execution, and environment configuration Use when: - Running dbt commands (debug, compile, run, test, show) - Setting up Issue-specific targets in profiles.yml - Working with Databricks SQL dialect in dbt
npx skillsauth add kumewata/dotfiles dbtInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill provides a comprehensive guide for dbt development.
Always specify these options with dbt commands:
--profiles-dir ~/.dbt --no-use-colors
Always verify connection at work start:
dbt debug --profiles-dir ~/.dbt --no-use-colors
Use dbt show command for ad-hoc queries in dbt:
# Basic query execution
dbt show --inline "select 1 as test, current_timestamp() as now" --profiles-dir ~/.dbt --no-use-colors
# Specify row limit (default is 5)
dbt show --inline "select * from table_name" --limit 10 --profiles-dir ~/.dbt --no-use-colors
# Reference dbt models
dbt show --inline "select * from {{ ref('model_name') }}" --profiles-dir ~/.dbt --no-use-colors
# Direct reference using catalog.schema.table format
dbt show --inline "select * from catalog_name.schema_name.table_name" --limit 3 --profiles-dir ~/.dbt --no-use-colors
Notes:
--limit option and causes errorVerification steps when dbt run cannot be executed to avoid production impact:
dbt compile --profiles-dir ~/.dbt --no-use-colorstarget/compiled/bq query or databricks command (recommend using LIMIT)Verification steps when dbt run is allowed
in development/sandbox environments:
dbt run --select +model_name --profiles-dir ~/.dbt --no-use-colorsdbt test --select +model_name --profiles-dir ~/.dbt --no-use-colorsNotes:
--select option to limit scope--select "staging.target,tag:tag_name"Always set up Issue-specific target before dbt run during Issue work.
~/.dbt/profiles.yml and check existing settingsdev targetmy_databricks_dbt:
outputs:
dev:
# Existing settings...
issue_123: # Name based on issue number
catalog: dbt_dev_{username} # Same as dev
host: dbc-xxxxx.cloud.databricks.com # Same as dev
http_path: /sql/1.0/warehouses/xxxxx # Same as dev
schema: dwh_issue_123 # Include issue number in schema name
threads: 1
token: dapixxxxx # Same as dev
type: databricks
target: dev
Then switch with --target option when executing dbt commands
# Execute with issue_123 target
dbt run --select +model_name --target issue_123 --profiles-dir ~/.dbt --no-use-colors
# Verify connection
dbt debug --target issue_123 --profiles-dir ~/.dbt --no-use-colors
{schema}_dbt_intermediates-- Reference catalog name with hyphen
select * from `catalog-name`.schema_name.table_name;
-- Reference full-width column name
select `full-width column` from table_name;
[Documentation-based response]
Source: [source_url]
Fetched: [fetched_at]
tools
Use when creating a new skill or making a substantial change to an existing skill and you also need to design, update, or review Waza-based executable evaluations. This includes deciding whether Waza is warranted, mapping `evals.json` cases into Waza tasks, choosing fixtures and graders, selecting a valid model with `waza models --json`, and running a local-first `waza run` workflow. Do NOT use for installing the Waza CLI itself or for general skill-authoring advice that does not involve Waza; use `skill-creator` for skill design and this skill for the Waza execution layer. Trigger especially when the user mentions Waza, `waza run`, `waza models`, executable evals, compare, graders, fixtures, or wants to validate a skill change with model-backed evaluation.
tools
Use when the user wants Codex to ask Claude Code for a second opinion or review on code, docs, diffs, PR changes, or design notes without modifying files. This delegates bounded review-only analysis through the Claude Code CLI (`claude -p`). Do NOT use for implementation or file edits; keep this skill review-only. Trigger especially when the user says ask Claude, ask Claude Code, cc-delegate, Claude review, second opinion from Claude, compare Codex and Claude, or review this diff/document with Claude Code.
tools
Airflow DAG development skill for writing, reviewing, testing, and debugging Apache Airflow workflows. Use whenever the user mentions Airflow, DAGs, tasks, operators, sensors, schedules, retries, catchup, DAG import errors, DAG parse performance, or workflow orchestration in Python. Also use for Amazon MWAA / Managed Workflows for Apache Airflow work, including MWAA DAG deployment, requirements.txt, plugins.zip, aws-mwaa-docker-images, S3 DAG folders, CloudWatch logs, and MWAA-specific dependency or IAM issues.
development
Use when the user asks for help drafting a GitHub PR description, a PR review comment, or a Slack post in their own tone (i.e., their personal writing voice). The skill detects the context (formal for PR / review, casual for Slack) and target_type (pr_description, pr_review, slack), drafts the body with an explicit reflection step that avoids verbose, mechanical phrasing, and stages the draft to `~/.local/state/tone/drafts/` via `tone-stage-draft.sh`. The user later runs `/tone-capture <url>` after posting, which pairs the staged draft with the final body to build a corpus for future tone tuning. Trigger especially when the user mentions PR description, PR review comment, Slack post, または「文を書いて」「文面を作って」「自分らしく」「トーン」「tone」.