/fabric-dw:dbt-setupfrom Fabric DW Agent Skills
Scaffolds a complete dbt-fabric project for a Fabric Data Warehouse, generating profiles.yml, dbt_project.yml, column-rich _sources.yml, requirements.txt, and .gitignore.
Ships in Fabric DW Agent Skills. 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.
Generates a complete dbt-fabric project scaffold using the fabric-dw MCP tools and writes all files to the local filesystem.
Gather these from the user (via $ARGUMENTS or natural language) before starting:
dbo)default (DefaultAzureCredential), sp (service principal), or interactive (default: default)_sources.yml (default: true, recommended)Call get_warehouse with the workspace and warehouse name. This returns the warehouse metadata including the connection string used in the dbt profile.
Call list_schemas and list_tables to confirm that the warehouse is reachable and to identify the schemas and tables that will appear as dbt sources.
Show the user a summary: number of schemas found, number of tables found.
Call generate_dbt_profile with:
workspace, warehouse, project_name, schema, authentication as providedwith_sources=true (unless the user explicitly opted out)When with_sources=true, the tool performs a bulk column fetch and emits a models/staging/_sources.yml that already includes each table's columns: block with name and formatted data_type for every column. This output is ready for dbt contract enforcement and column-level documentation without any manual assembly.
Write all file contents returned by generate_dbt_profile to the user's working directory. The expected set of files:
| Path | Purpose |
|---|---|
profiles.yml | dbt connection profile |
dbt_project.yml | dbt project definition |
models/staging/_sources.yml | Source definitions with column types (when with_sources=true) |
requirements.txt | Python package dependencies (dbt-fabric) |
.gitignore | Excludes secrets and build artefacts |
Before writing, check whether any of these files already exist and confirm with the user before overwriting.
After writing the files, give the user the following instructions:
# Install dependencies
pip install -r requirements.txt
# Verify the connection
dbt debug
# Run your first dbt project
dbt run
Also remind the user to:
profiles.yml and fill in any {{ env_var(...) }} placeholders (service-principal credentials are never written as literals; they are templated).AZURE_TENANT_ID, AZURE_CLIENT_ID, AZURE_CLIENT_SECRET) are set before running dbt debug if using service-principal auth.authentication=sp, the generated profiles.yml uses {{ env_var(...) }} placeholders for tenant ID, client ID, and client secret. Never write literal credential values. Remind the user that these must be set in environment before committing profiles.yml to version control.get_table_columns and get_view_columns are available for ad-hoc schema inspection (e.g., if the user wants to review a specific table before deciding which columns to expose), but explicit calls to those tools are not required; column data is built into generate_dbt_profile with with_sources=true.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
dbt, fabric-data-warehouse, project-scaffold, data-engineering
npx claudepluginhub sdebruyn/fabric-dw-mcp-cli --plugin fabric-dw3 skills in this plugin
/query-optimizerAnalyzes query performance on a Fabric Data Warehouse: captures the estimated execution plan, inspects query insights history, identifies costly operators and missing or stale statistics, inspects data-clustering columns, and proposes or applies optimizations. Use when the user asks to "optimize a query", "why is my query slow", "check query performance", "analyze execution plan", "missing statistics", "fix clustering", "re-cluster table", or any variant of diagnosing slow Fabric DW SQL.
/warehouse-performanceInvestigates the performance of an ENTIRE Fabric Data Warehouse (warehouse-wide, not a single query): surfaces long-running and frequent queries, reads SQL pool resource-pressure insights, audits statistics health, checks result-set caching, reviews and tunes SQL pool configuration, and produces a prioritized findings + recommendations report. Use when the user asks to "investigate warehouse performance", "why is my warehouse slow", "tune sql pools", "find expensive queries", "find the most frequent queries", "check sql pool pressure", or "enable result set caching". For diagnosing or rewriting ONE specific query (execution plan, missing statistics on its tables, clustering), use /query-optimizer instead.
Other plugins' skills for the same job