# Dbt dag modeling

> Dbt dag modeling is an open-source agent skill for analytics and data. Guides agents through dbt manifest parsing, lineage DAGs and test coverage checks. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Database-Tycoon/tycoon-cli/tree/main/skills/dbt-dag-modeling
- **Repository:** https://github.com/database-tycoon/tycoon-cli
- **GitHub stars:** 8
- **License:** MIT
- **Skill name:** dbt-dag-modeling
- **Collection:** https://github.com/Database-Tycoon/tycoon-cli
- **Categories:** [analytics and data](https://ai-powered.com/categories/analytics-and-data)
- **Listing updated:** 2026-12-03

## About

This skill points an AI coding agent at the internals of a dbt project's catalog layer. It describes how to read dbt manifest.json, run_results.json and sources.json, and how the bundled tooling derives lineage by parsing view SQL with sqlglot, without executing queries against a database. It also covers column-level lineage and ingesting OSI semantic models while keeping their joins separate from DAG edges.

The guide spells out two data contracts the agent should respect: the city.json and runs.json exports, which have validation schemas in the web layer and a byte-stable requirement for city.json at version 1. It also sets honesty rules, so unmeasured attributes such as freshness or test status are reported as unknown or with a named absence note rather than defaulted to passing.

The skill is a single SKILL.md with no scripts. It refers to source files in the tycoon-cli Python repository, so the agent is expected to work inside that codebase and have dbt artifacts available to read.

## When your agent uses it

> Best practices for dbt manifest parsing, model materialization, lineage DAG derivation, test coverage analysis, source freshness SLAs, and OSI semantic models.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/skills/dbt-dag-modeling)
- [License: MIT](https://github.com/Database-Tycoon/tycoon-cli/tree/HEAD/skills/dbt-dag-modeling)

## Features

- **Manifest Parsing Guidance:** Explains how to read dbt manifest, run results and sources artifacts in the catalog loader.
- **SQL Lineage Derivation:** Covers deriving table and column lineage from view SQL with sqlglot, without database execution.
- **OSI Semantic Model Ingestion:** Describes ingesting semantic models while keeping joins distinct from DAG edges.
- **Export Contract Boundaries:** Lists the city.json and runs.json contracts and their validation locations.
- **Unknown-State Reporting Rules:** Requires unmeasured attributes to be reported as unknown or as named absences.

## Good for

- Map upstream and downstream lineage for a dbt model
- Check which dbt models lack test coverage
- Review source freshness results against SLA expectations
- Add a semantic model without mixing joins into DAG edges
- Update the city.json export without breaking its byte-stable format

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/dbt-dag-modeling` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/dbt-dag-modeling &&
cp -R "$tmp/skills/dbt-dag-modeling" ~/.claude/skills/dbt-dag-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/dbt-dag-modeling` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/dbt-dag-modeling` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/dbt-dag-modeling &&
cp -R "$tmp/skills/dbt-dag-modeling" ~/.agents/skills/dbt-dag-modeling &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/dbt-dag-modeling` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/dbt-dag-modeling` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/dbt-dag-modeling &&
cp -R "$tmp/skills/dbt-dag-modeling" ~/.cursor/skills/dbt-dag-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/dbt-dag-modeling` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Database-Tycoon/tycoon-cli.git --path skills/dbt-dag-modeling
```

Or copy the folder to `~/.gemini/skills/dbt-dag-modeling` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/dbt-dag-modeling`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/dbt-dag-modeling &&
cp -R "$tmp/skills/dbt-dag-modeling" ~/.copilot/skills/dbt-dag-modeling &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/dbt-dag-modeling` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Database-Tycoon/tycoon-cli.git
```

Then copy `tycoon-cli/skills/dbt-dag-modeling` into your agent's skills folder as `dbt-dag-modeling`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

It is guidance only, with no scripts. It assumes the tycoon-cli Python codebase and dbt artifacts such as manifest.json, run_results.json and sources.json are available.

### Does Dbt dag modeling execute SQL against my warehouse?

The described lineage parser uses sqlglot to parse view SQL without database execution.

### How should missing data be reported?

Unmeasured attributes should be marked unknown or given an explicit named absence note, not treated as fine or passing.

### How do I install Dbt dag modeling in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/dbt-dag-modeling to use it in all your projects, or to .claude/skills/dbt-dag-modeling in one project.

### Does Dbt dag modeling run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Dbt dag modeling?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Dbt dag modeling?

The closest alternatives to Dbt dag modeling are Building models and dashboards, Adding data sources, Data scientist, Operating pipelines and Data pipeline work.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Building models and dashboards](https://ai-powered.com/skills/building-models-and-dashboards): Building models and dashboards is an open-source agent skill for analytics and data.
- [Adding data sources](https://ai-powered.com/skills/adding-data-sources): Adding data sources is an open-source agent skill for analytics and data.
- [Data scientist](https://ai-powered.com/skills/data-scientist): Data scientist is an open-source agent skill for analytics and data.
- [Operating pipelines](https://ai-powered.com/skills/operating-pipelines): Operating pipelines is an open-source agent skill for analytics and data.
- [Data pipeline work](https://ai-powered.com/skills/data-pipeline-work): Data pipeline work is an open-source agent skill for analytics and data.
- [Bigquery basics](https://ai-powered.com/skills/bigquery-basics): Bigquery basics is an open-source agent skill for databases.

---
Source: https://ai-powered.com/skills/dbt-dag-modeling
