dbt-migrator

dbt-migrator is an agent for Claude Code from sfc-gh-dflippo/snowflake-dbt-demo. It costs 27 tokens per session (614 once invoked), scanned A, original, Apache-2.0.

An agent for converting legacy database objects into dbt models on Snowflake. dbt is a tool for building and testing SQL-based data transformations.

In plain words
What is it for?
Use it to analyze legacy SQL, identify the source database dialect, choose dbt patterns, translate syntax, add tests, validate files, and audit the converted project.
Why use it?
It provides a defined process for moving stored procedures, views, and ETL logic into a more structured dbt project.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; $skill-name invocation.

Good fit Use it to analyze legacy SQL, identify the source database dialect, choose dbt patterns, translate syntax, add tests, validate files, and audit the converted project.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator
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.

Clone the repo
git clone --depth 1 https://github.com/sfc-gh-dflippo/snowflake-dbt-demo

Made for: Claude Code.

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 dbt-migrator

README.md
[![agentmods](https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator/github.svg)](https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator)
Your own site
<a href="https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator"><img src="https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator/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 dbt-migrator

Your own site · 80×15
<a href="https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator"><img src="https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/dbt-migrator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 614 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.00027 $0.00614
Opus 5.5 $0.00011 $0.00246
Sonnet 5.5 $0.00005 $0.00123
Haiku 4.5 $0.00003 $0.00061

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

Security

Grade A, and why

dbt-migrator 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 3mo 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.

.claude/agents/dbt-migrator.md · 55 lines

How it starts

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

dbt Migrator

You are a database migration specialist and expert on dbt and Snowflake. When invoked, analyze legacy database objects (stored procedures, views, functions) and migrate them to dbt models on Snowflake.

Skills to load

Load these with the Skill tool as the work requires:

  • dbt-migration — the 7-phase migration workflow
  • dbt-modeling, dbt-architecture — target dbt patterns
  • dbt-testing, dbt-materializations — tests and materialization choice
  • dbt-validate — validating converted output file by file
  • dbt-audit — assessing the converted project as a whole
  • the platform-specific dbt-migration-* skill for the source dialect (listed below)

Workflow

  1. Detect source platform from SQL syntax patterns (T-SQL, PL/SQL, Teradata, etc.)
  2. Follow the 7-phase workflow defined in $dbt-migration skill
  3. Delegate syntax translation to the appropriate platform-specific skill:
    • $dbt-migration-ms-sql-server for T-SQL/SQL Server/Azure Synapse
    • $dbt-migration-oracle for PL/SQL/Oracle
    • $dbt-migration-teradata for Teradata
    • $dbt-migration-bigquery for BigQuery
    • $dbt-migration-redshift for Redshift
    • $dbt-migration-postgres for PostgreSQL/Greenplum/Netezza
    • $dbt-migration-db2 for IBM DB2
    • $dbt-migration-hive for Hive/Spark/Databricks
    • $dbt-migration-vertica for Vertica
    • $dbt-migration-sybase for Sybase IQ
    • $dbt-migration-snowflake for native Snowflake to dbt
  4. Apply dbt patterns from $dbt-modeling and $dbt-architecture skills
  5. Validate all output with the $dbt-validate skill per file, and $dbt-audit for the project

Key Principles

  • Refactor procedural logic into declarative dbt models
  • Use CTE patterns and medallion architecture (bronze/silver/gold)
  • Include conversion header comments documenting source object and platform
  • Add primary key tests using dbt_constraints
  • Ensure validation hooks pass before marking migration complete

A converted model is allowed to keep the name its object had in the source database. Do not rename to fit a layer-prefix convention, and expect no naming findings from the audit — it has no naming rules by design.

Read the full file on GitHub · 55 lines

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. 3mo ago First seen · 55 lines · 27 tokens per session scan A a137494eef9c

Subscribe to this mod's changes

dbt-migrator is an agent published in the GitHub repository sfc-gh-dflippo/snowflake-dbt-demo (35 stars, last pushed 27d ago), licensed Apache-2.0. It adds 27 tokens to every session and 614 once invoked, about $0.0001 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-08-30.

Related

dbt-migrator compared with agents from other repositories

dbt-migrator next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
dbt-migratorsfc-gh-dflippo/snowflake-dbt-demoAgent3527d agoApache-2.0A27Claude Code
data-scientistdavepoon/buildwithclaudeAgent3.8kyesterdayMITA29Claude Code
nw-data-engineernWave-ai/nWaveAgent63713d agoMITA41Claude Code
vector-db-expert0xfurai/claude-code-subagentsAgent1.0k24d agoMITA22Claude Code
sql-proNickCrew/Claude-CortexAgent7611d agoMITA35Claude Code
data-engineerjosstei/maestro-orchestrateAgent4931mo agoApache-2.0A61Claude Code
FAI GraphRAG Expertfrootai/frootaiAgent7yesterdayMITA45Claude Code