[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F3ST8YRBS3ASBY669NFZ5S":3,"skill-same:01M6F3ST8YRBS3ASBY669NFZ5S":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":35,"linkOnly":36,"markdownContent":37,"markdownBody":38,"frontMatter":39,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":45,"repositoryHtmlUrl":46,"repositoryHomepageUrl":47,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6F3ST8YRBS3ASBY669NFZ5S","running-dbt-commands",null,"Formats and executes dbt CLI commands, selects the correct dbt executable, and structures command parameters. Use when running models, tests, builds, compiles, or show queries via dbt CLI. Use when unsure which dbt executable to use or how to format command parameters.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",66,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fdbt-labs\u002Fdbt-agent-skills\u002Frunning-dbt-commands\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34],"dbt","commands","running dbt commands","cli","how","correct","format","command","use","models","queries","show","tests","false","how to","via","2026-11-10 10:12:30",false,"---\nname: running-dbt-commands\ndescription: Formats and executes dbt CLI commands, selects the correct dbt executable, and structures command parameters. Use when running models, tests, builds, compiles, or show queries via dbt CLI. Use when unsure which dbt executable to use or how to format command parameters.\nuser-invocable: false\nmetadata:\n  author: dbt-labs\n---\n\n# Running dbt Commands\n\n## Preferences\n\n1. **Use MCP tools if available** (`dbt_build`, `dbt_run`, `dbt_show`, etc.) - they handle paths, timeouts, and formatting automatically\n2. **Use `build` instead of `run` or `test`** - `test` doesn't refresh the model, so testing a model change requires `build`. `build` does a `run` and a `test` of each node (model, seed, snapshot) in the order of the DAG\n3. **Always use `--quiet`** with `--warn-error-options '{\"error\": [\"NoNodesForSelectionCriteria\"]}'` to reduce output while catching selector typos\n4. **Always use `--select`** - never run the entire project without explicit user approval\n\n## Quick Reference\n\n```bash\n# Standard command pattern\ndbt build --select my_model --quiet --warn-error-options '{\"error\": [\"NoNodesForSelectionCriteria\"]}'\n\n# Preview model output\ndbt show --select my_model --limit 10\n\n# Run inline SQL query\ndbt show --inline \"select * from {{ ref('orders') }}\" --limit 5\n\n# With variables (JSON format for multiple)\ndbt build --select my_model --vars '{\"key\": \"value\"}'\n\n# Full refresh for incremental models\ndbt build --select my_model --full-refresh\n\n# List resources before running\ndbt list --select my_model+ --resource-type model\n```\n\n## dbt CLI Flavors\n\nThree CLIs exist. **Ask the user which one if unsure.**\n\n| Flavor | Location | Notes |\n|--------|----------|-------|\n| **dbt Core** | Python venv | `pip show dbt-core` or `uv pip show dbt-core` |\n| **dbt Fusion** | `~\u002F.local\u002Fbin\u002Fdbt` or `dbtf` | Faster and has stronger SQL comprehension |\n| **dbt Cloud CLI** | `~\u002F.local\u002Fbin\u002Fdbt` | Go-based, runs on platform |\n\n**Common setup:** Core in venv + Fusion at `~\u002F.local\u002Fbin`. Running `dbt` uses Core. Use `dbtf` or `~\u002F.local\u002Fbin\u002Fdbt` for Fusion.\n\n## Selectors\n\n**Always provide a selector.** Graph operators:\n\n| Operator | Meaning | Example |\n|----------|---------|---------|\n| `model+` | Model and all downstream | `stg_orders+` |\n| `+model` | Model and all upstream | `+dim_customers` |\n| `+model+` | Both directions | `+orders+` |\n| `model+N` | Model and N levels downstream | `stg_orders+1` |\n\n```bash\n--select my_model              # Single model\n--select staging.*             # Path pattern\n--select fqn:*stg_*            # FQN pattern\n--select model_a model_b       # Union (space)\n--select tag:x,config.mat:y    # Intersection (comma)\n--exclude my_model             # Exclude from selection\n```\n\n**Resource type filter:**\n```bash\n--resource-type model\n--resource-type test --resource-type unit_test\n```\n\nValid types: `model`, `test`, `unit_test`, `snapshot`, `seed`, `source`, `exposure`, `metric`, `semantic_model`, `saved_query`, `analysis`\n\n## List\n\nUse `dbt list` to preview what will be selected before running. Helpful for validating complex selectors.\n\n```bash\ndbt list --select my_model+              # Preview selection\ndbt list --select my_model+ --resource-type model  # Only models\ndbt list --output json                   # JSON output\ndbt list --select my_model --output json --output-keys unique_id name resource_type config\n```\n\n**Available output keys for `--output json`:**\n`unique_id`, `name`, `resource_type`, `package_name`, `original_file_path`, `path`, `alias`, `description`, `columns`, `meta`, `tags`, `config`, `depends_on`, `patch_path`, `schema`, `database`, `relation_name`, `raw_code`, `compiled_code`, `language`, `docs`, `group`, `access`, `version`, `fqn`, `refs`, `sources`, `metrics`\n\n## Show\n\nPreview data with `dbt show`. Use `--inline` for arbitrary SQL queries.\n\n```bash\ndbt show --select my_model --limit 10\ndbt show --inline \"select * from {{ ref('orders') }} where status = 'pending'\" --limit 5\n```\n\n**Important:** Use `--limit` flag, not SQL `LIMIT` clause.\n\n## Variables\n\nPass as STRING, not dict. No special characters (`\\`, `\\n`).\n\n```bash\n--vars 'my_var: value'                              # Single\n--vars '{\"k1\": \"v1\", \"k2\": 42, \"k3\": true}'         # Multiple (JSON)\n```\n\n## Analyzing Run Results\n\nAfter a dbt command, check `target\u002Frun_results.json` for detailed execution info:\n\n```bash\n# Quick status check\ncat target\u002Frun_results.json | jq '.results[] | {node: .unique_id, status: .status, time: .execution_time}'\n\n# Find failures\ncat target\u002Frun_results.json | jq '.results[] | select(.status != \"success\")'\n```\n\n**Key fields:**\n- `status`: success, error, fail, skipped, warn\n- `execution_time`: seconds spent executing\n- `compiled_code`: rendered SQL\n- `adapter_response`: database metadata (rows affected, bytes processed)\n\n## Defer (Skip Upstream Builds)\n\nReference production data instead of building upstream models:\n\n```bash\ndbt build --select my_model --defer --state prod-artifacts\n```\n\n**Flags:**\n- `--defer` - enable deferral to state manifest\n- `--state \u003Cpath>` - path to manifest from previous run (e.g., production artifacts)\n- `--favor-state` - prefer node definitions from state even if they exist locally\n\n```bash\ndbt build --select my_model --defer --state prod-artifacts --favor-state\n```\n\n## Static Analysis (Fusion Only)\n\nOverride SQL analysis for models with dynamic SQL or unrecognized UDFs:\n\n```bash\ndbt run --static-analysis=off\ndbt run --static-analysis=unsafe\n```\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Using `test` after model change | Use `build` - test doesn't refresh the model |\n| Running without `--select` | Always specify what to run |\n| Using `--quiet` without warn-error | Add `--warn-error-options '{\"error\": [\"NoNodesForSelectionCriteria\"]}'` |\n| Running `dbt` expecting Fusion when we are in a venv | Use `dbtf` or `~\u002F.local\u002Fbin\u002Fdbt` |\n| Adding LIMIT to SQL in `dbt_show` | Use `limit` parameter instead |\n| Vars with special characters | Pass as simple string, no `\\` or `\\n` |\n\n","# Running dbt Commands\n\n## Preferences\n\n1. **Use MCP tools if available** (`dbt_build`, `dbt_run`, `dbt_show`, etc.) - they handle paths, timeouts, and formatting automatically\n2. **Use `build` instead of `run` or `test`** - `test` doesn't refresh the model, so testing a model change requires `build`. `build` does a `run` and a `test` of each node (model, seed, snapshot) in the order of the DAG\n3. **Always use `--quiet`** with `--warn-error-options '{\"error\": [\"NoNodesForSelectionCriteria\"]}'` to reduce output while catching selector typos\n4. **Always use `--select`** - never run the entire project without explicit user approval\n\n## Quick Reference\n\n```bash\n# Standard command pattern\ndbt build --select my_model --quiet --warn-error-options '{\"error\": [\"NoNodesForSelectionCriteria\"]}'\n\n# Preview model output\ndbt show --select my_model --limit 10\n\n# Run inline SQL query\ndbt show --inline \"select * from {{ ref('orders') }}\" --limit 5\n\n# With variables (JSON format for multiple)\ndbt build --select my_model --vars '{\"key\": \"value\"}'\n\n# Full refresh for incremental models\ndbt build --select my_model --full-refresh\n\n# List resources before running\ndbt list --select my_model+ --resource-type model\n```\n\n## dbt CLI Flavors\n\nThree CLIs exist. **Ask the user which one if unsure.**\n\n| Flavor | Location | Notes |\n|--------|----------|-------|\n| **dbt Core** | Python venv | `pip show dbt-core` or `uv pip show dbt-core` |\n| **dbt Fusion** | `~\u002F.local\u002Fbin\u002Fdbt` or `dbtf` | Faster and has stronger SQL comprehension |\n| **dbt Cloud CLI** | `~\u002F.local\u002Fbin\u002Fdbt` | Go-based, runs on platform |\n\n**Common setup:** Core in venv + Fusion at `~\u002F.local\u002Fbin`. Running `dbt` uses Core. Use `dbtf` or `~\u002F.local\u002Fbin\u002Fdbt` for Fusion.\n\n## Selectors\n\n**Always provide a selector.** Graph operators:\n\n| Operator | Meaning | Example |\n|----------|---------|---------|\n| `model+` | Model and all downstream | `stg_orders+` |\n| `+model` | Model and all upstream | `+dim_customers` |\n| `+model+` | Both directions | `+orders+` |\n| `model+N` | Model and N levels downstream | `stg_orders+1` |\n\n```bash\n--select my_model              # Single model\n--select staging.*             # Path pattern\n--select fqn:*stg_*            # FQN pattern\n--select model_a model_b       # Union (space)\n--select tag:x,config.mat:y    # Intersection (comma)\n--exclude my_model             # Exclude from selection\n```\n\n**Resource type filter:**\n```bash\n--resource-type model\n--resource-type test --resource-type unit_test\n```\n\nValid types: `model`, `test`, `unit_test`, `snapshot`, `seed`, `source`, `exposure`, `metric`, `semantic_model`, `saved_query`, `analysis`\n\n## List\n\nUse `dbt list` to preview what will be selected before running. Helpful for validating complex selectors.\n\n```bash\ndbt list --select my_model+              # Preview selection\ndbt list --select my_model+ --resource-type model  # Only models\ndbt list --output json                   # JSON output\ndbt list --select my_model --output json --output-keys unique_id name resource_type config\n```\n\n**Available output keys for `--output json`:**\n`unique_id`, `name`, `resource_type`, `package_name`, `original_file_path`, `path`, `alias`, `description`, `columns`, `meta`, `tags`, `config`, `depends_on`, `patch_path`, `schema`, `database`, `relation_name`, `raw_code`, `compiled_code`, `language`, `docs`, `group`, `access`, `version`, `fqn`, `refs`, `sources`, `metrics`\n\n## Show\n\nPreview data with `dbt show`. Use `--inline` for arbitrary SQL queries.\n\n```bash\ndbt show --select my_model --limit 10\ndbt show --inline \"select * from {{ ref('orders') }} where status = 'pending'\" --limit 5\n```\n\n**Important:** Use `--limit` flag, not SQL `LIMIT` clause.\n\n## Variables\n\nPass as STRING, not dict. No special characters (`\\`, `\\n`).\n\n```bash\n--vars 'my_var: value'                              # Single\n--vars '{\"k1\": \"v1\", \"k2\": 42, \"k3\": true}'         # Multiple (JSON)\n```\n\n## Analyzing Run Results\n\nAfter a dbt command, check `target\u002Frun_results.json` for detailed execution info:\n\n```bash\n# Quick status check\ncat target\u002Frun_results.json | jq '.results[] | {node: .unique_id, status: .status, time: .execution_time}'\n\n# Find failures\ncat target\u002Frun_results.json | jq '.results[] | select(.status != \"success\")'\n```\n\n**Key fields:**\n- `status`: success, error, fail, skipped, warn\n- `execution_time`: seconds spent executing\n- `compiled_code`: rendered SQL\n- `adapter_response`: database metadata (rows affected, bytes processed)\n\n## Defer (Skip Upstream Builds)\n\nReference production data instead of building upstream models:\n\n```bash\ndbt build --select my_model --defer --state prod-artifacts\n```\n\n**Flags:**\n- `--defer` - enable deferral to state manifest\n- `--state \u003Cpath>` - path to manifest from previous run (e.g., production artifacts)\n- `--favor-state` - prefer node definitions from state even if they exist locally\n\n```bash\ndbt build --select my_model --defer --state prod-artifacts --favor-state\n```\n\n## Static Analysis (Fusion Only)\n\nOverride SQL analysis for models with dynamic SQL or unrecognized UDFs:\n\n```bash\ndbt run --static-analysis=off\ndbt run --static-analysis=unsafe\n```\n\n## Common Mistakes\n\n| Mistake | Fix |\n|---------|-----|\n| Using `test` after model change | Use `build` - test doesn't refresh the model |\n| Running without `--select` | Always specify what to run |\n| Using `--quiet` without warn-error | Add `--warn-error-options '{\"error\": [\"NoNodesForSelectionCriteria\"]}'` |\n| Running `dbt` expecting Fusion when we are in a venv | Use `dbtf` or `~\u002F.local\u002Fbin\u002Fdbt` |\n| Adding LIMIT to SQL in `dbt_show` | Use `limit` parameter instead |\n| Vars with special characters | Pass as simple string, no `\\` or `\\n` |\n\n",{"name":5,"metadata":40,"description":7,"user-invocable":36},{"author":41},"dbt-labs","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fdbt-labs\u002Fdbt-agent-skills\u002Frunning-dbt-commands",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill running-dbt-commands",{"tool":57,"command":58},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill running-dbt-commands",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill running-dbt-commands","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fdbt-labs\u002Fdbt-agent-skills\u002Frunning-dbt-commands\u002FSKILL.md",true,[],[66,80,90,99,105,112],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":76,"publishedAt":35},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[71],{"categoryNo":72,"categoryName":73,"taxonomyType":74,"taxonomyTypeDesc":75},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[77,78,79],"model","model hierarchy","model hierarchy skill",{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":86,"publishedAt":35},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[85],{"categoryNo":72,"categoryName":73,"taxonomyType":74,"taxonomyTypeDesc":75},[87,88,89],"MCP","zoom","zoom mcp",{"skillNo":91,"name":92,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":35},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[96,97,98,88],"sdk","zoom apps sdk","apps",{"skillNo":100,"name":101,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":35},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[101],{"skillNo":106,"name":107,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":111,"publishedAt":35},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[110],{"categoryNo":72,"categoryName":73,"taxonomyType":74,"taxonomyTypeDesc":75},[107],{"skillNo":113,"name":114,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":35},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[114]]