upgrading-dbt

upgrading-dbt is a skill for Claude Code from dbt-labs/dbt-agent-skills. It costs 207 tokens per session (9,710 once invoked), scanned A, original, Apache-2.0.

A migration procedure for upgrading a dbt project from versions 1.3 through 1.7 to dbt 1.12. dbt is a tool for building and testing data transformations, often inside analytics projects.

In plain words
What is it for?
It is for detecting applicable migration changes, applying fixes through version 1.8, and setting later behavior flags when needed.
Why use it?
It handles version changes in order and preserves existing behavior where newer versions introduce incompatible changes.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the dbt-migration plugin — 3 skills shipped together

Good fit It is for detecting applicable migration changes, applying fixes through version 1.8, and setting later behavior flags when needed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dbt-labs/dbt-agent-skills/upgrading-dbt
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add dbt-labs/dbt-agent-skills --skill upgrading-dbt
Clone the repo
git clone --depth 1 https://github.com/dbt-labs/dbt-agent-skills

Made for: Claude Code.

Or install dbt-migration, the plugin that ships this one along with the rest of its 3 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for upgrading-dbt

README.md
[![agentmods](https://agentmods.dev/badge/skills/dbt-labs/dbt-agent-skills/upgrading-dbt/github.svg)](https://agentmods.dev/skills/dbt-labs/dbt-agent-skills/upgrading-dbt)
Your own site
<a href="https://agentmods.dev/skills/dbt-labs/dbt-agent-skills/upgrading-dbt"><img src="https://agentmods.dev/badge/skills/dbt-labs/dbt-agent-skills/upgrading-dbt/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for upgrading-dbt

Your own site · 80×15
<a href="https://agentmods.dev/skills/dbt-labs/dbt-agent-skills/upgrading-dbt"><img src="https://agentmods.dev/badge/skills/dbt-labs/dbt-agent-skills/upgrading-dbt.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 207 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00207 $0.09710
Opus 5.5 $0.00083 $0.03884
Sonnet 5.5 $0.00041 $0.01942
Haiku 4.5 $0.00021 $0.00971

Measured 1mo ago against content hash 830997dc9dfd, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

upgrading-dbt scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/dbt-migration/skills/upgrading-dbt/SKILL.md · 705 lines

How it starts

The opening of the file, as written. The whole thing — 705 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Migrate a dbt project to dbt 1.12

You upgrade a dbt v1 project all the way to 1.12 — not one minor bump. Two different mechanisms apply, and you must not confuse them:

  • Up to 1.8 — genuinely breaking changes with no compatibility shim. You replay every version boundary in order from the project's current version, because consistent changelogs exist only per single minor version.

  • After 1.8 — every backwards-incompatible change ships gated behind a behavior-change flag in dbt_project.yml flags:. You do not fix those behaviors. Instead, for each such change the project actually exhibits, you pin its gating flag to false so the project keeps its current semantics and parses on 1.12. Several of these flags already default to true in 1.12, so for an affected project leaving the flag unset silently adopts the new behavior — pinning is what makes the migration behavior-preserving.

    Pin only what applies: a flag for a behavior the project does not use is dead config that hides the ones that matter. Detection per issue decides.

This skill is data-driven. The issues to resolve are not listed here — they arrive as a precompiled bundle, references/kb_<FROM>_<ADAPTER>.json, colocated with this SKILL.md. One bundle per starting version × adapter, each self-contained: every issue carries its own action, automation_type, and context.detection / context.fixing. Read the bundle; never fabricate an issue or a fix from memory.

The kb/ YAML corpus is the source those bundles are compiled from, at build time, by CI. It is not read during a migration and does not ship in the package. Never try to read it at runtime — work from the bundle.

Each issue has an automation_type that decides how it is handled:

automation_type How you handle it
deterministic Handled by a tool where your profile has one. Locally, run the autofix operation (dbt-migrate-1x) and map its diff onto the issue. In Studio there is no such tool for this — apply the fix yourself per context.fixing, exactly like an agentic issue, then record it the same way; see your profile's autofix operation.
agentic You apply the fix directly (per context.fixing), then verify.
human You propose the fix, show the diff, confirm with the user, then apply (HITL). Never apply a human issue without explicit confirmation.
behavior_flag The set-flag operation handles it, only when detection found it present (Step 5). A post-1.8 change gated behind a flag: when the project actually exhibits the gated behavior, the flag named in the issue's behavior_flag.name is pinned to false in dbt_project.yml. Never pin one the project does not exhibit, and never "fix" the underlying behavior instead.

Two orthogonal flags modify handling regardless of automation_type:

  • out_of_repo_risk: true — the fix may reach outside the repo (job --select, selectors.yml, BI tools, mesh refs). Record it for the user; you cannot complete it from the repo alone.
  • environment_change: true — dependency / Python-runtime / profiles change. Make an advisory edit only (e.g. note the requirements.txt/profiles.yml change); never execute pip/installers, and exclude it from the parse gate.

Read the full file on GitHub · 705 lines

Files

What ships with it

60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +3 lines 830997dc9dfd
  2. 1mo ago Changed · +60 lines 68d328119a7c
  3. 2mo ago First seen · 642 lines · 207 tokens per session scan A f7a93e0fbc7d

Subscribe to this mod's changes

upgrading-dbt is a skill published in the GitHub repository dbt-labs/dbt-agent-skills (774 stars, last pushed 24d ago), licensed Apache-2.0. It adds 207 tokens to every session and 9,710 once invoked, about $0.0008 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-24.

Related

upgrading-dbt compared with skills from other repositories

upgrading-dbt next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
upgrading-dbtdbt-labs/dbt-agent-skillsSkill77424d agoApache-2.0A207Claude Code
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill101ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill330k2d agoMITA21Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill14kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144ktodayMITA95Claude Code