dbt-labs avatar

Working With Dbt Mesh

If you're working with dbt Mesh, this handles the governance layer and cross-project refs that make splitting monolithic projects possible. The core insight is simple: upstream data flows through ref(), not source(), and every cross-project reference needs an explicit project name. It walks through dependencies.yml first, shows you how to disambiguate models with identical names across projects, and covers the four governance primitives (contracts, groups, access modifiers, versions) in adoption order. One critical callout: cross-project refs require dbt Cloud Enterprise, and the skill correctly gates you before writing two-argument refs if you can't confirm the plan level. Useful if you're either setting up mesh from scratch or debugging why a ref() is ambiguous.

skills.sh installs
892
GitHub stars
759
last updated
Aug 21, 2026

Install

$ npx -y skills add dbt-labs/dbt-agent-skills --skill working-with-dbt-mesh --agent claude-code

Installs into .claude/skills of the current project.

Files

Working with dbt Mesh

Core principle: In a mesh project, upstream data comes through ref(), not source(). Every cross-project reference requires the project name. When in doubt, read dependencies.yml first.

When to Use

  • Making a potentially breaking change to a model — renaming, removing, or retyping a column — especially when other models, exposures, or BI tools depend on it. Assess the blast radius before changing it, and reach for model versions rather than editing in place.
  • Versioning a model (versions:, latest_version, latest_version_pointer, deprecation_date) — this applies in a single project, not just multi-project setups
  • Working in a dbt project that references models from other dbt projects
  • Resolving ambiguity when multiple upstream projects have similarly-named models (e.g. multiple stg_ models)
  • Adding model contracts, access modifiers, or groups
  • Setting up cross-project references with dependencies.yml
  • Splitting a monolithic dbt project into multiple mesh projects

Do NOT use for:

Sponsors

Details

Repository
github.com/dbt-labs/dbt-agent-skills
Categories
AI & Agent Building, Release Management, Productivity & Planning
License
Apache-2.0
First seen
Jun 3, 2026

More from dbt-labs/dbt-agent-skills

All 13
1asyrafhussin avatargit-workflowasyrafhussin/agent-skillsGit best practices, branching strategies, commit conventions, and PR workflows. Use when reviewing git history, writing commits, setting up branching strategy, 890skills.sh installs
2github avatarsalesforce-apex-qualitygithub/awesome-copilotApex code quality guardrails for Salesforce development. Enforces bulk-safety rules (no SOQL/DML in loops), sharing model requirements, CRUD/FLS security, SOQL 885skills.sh installs
3pulumi avatarprovider-upgradepulumi/agent-skillsUpgrade any Pulumi provider to a newer version and reconcile the resulting diff. Use when users want to upgrade or update a provider (including editing package.885skills.sh installs
4github avatarreact-audit-grep-patternsgithub/awesome-copilotProvides the complete, verified grep scan command library for auditing React codebases before a React 18.3.1 or React 19 upgrade. Use this skill whenever runnin884skills.sh installs
5mblode avataragents-mdmblode/agent-skillsAudits, scores, and refactors AGENTS.md and CLAUDE.md agent instruction files using execution-first standards: working commands, real-failure gotchas, signal-to884skills.sh installs
6jasonjgardner avatarblockbench-hytalejasonjgardner/blockbench-mcp-projectCreate Hytale models and animations using Blockbench MCP tools. Use when working with Hytale character/prop formats, creating attachments, setting shading modes883skills.sh installs