---
title: "Mermaid dbt Lineage: review, setup & limitations · Undominated.ai"
canonical: https://undominated.ai/skills/dbt-labs-creating-mermaid-dbt-dag/
description: "Render model lineage with explicit local, production or artifact provenance."
---

# Mermaid dbt Lineage: review, setup & limitations · Undominated.ai

> Render model lineage with explicit local, production or artifact provenance.

[← Explore all skills](/skills/)

DATA ENGINEERING / dbt-labs

# Mermaid dbt Lineage

Render model lineage with explicit local, production or artifact provenance.

 [See setup guidance ↓](#setup)[Original source ↗](https://github.com/dbt-labs/dbt-agent-skills/tree/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag)

SOURCE REVIEW

 Reviewed 2026-10-15
 Evidence 5 linked sources
 Publisher dbt-labs
 Licence [Apache-2.0 ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/LICENSE)
 Revision 7c7b5fa39e61
 [Read what was—and wasn’t—checked ↓](#review)

“Generates a Mermaid flowchart diagram of dbt model lineage using MCP tools, manifest.json, or direct code parsing as fallbacks. Use when visualizing dbt model lineage and dependencies as a Mermaid diagram in markdown format.”

 [dbt-labs · upstream description ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md) Our analysis follows below.

01 / THE REASONING

## Why this made the selection.

 - It draws a Mermaid lineage diagram from dbt MCP, manifest.json, or parsed code, in that order.
- Allowed tools are the two lineage MCP calls plus read-only search and jq, and a node is selected only when an MCP tool said so.
- The definition orders lineage fallbacks and the manifest reference derives parents from depends_on.nodes and children by reverse lookup, warning about stale parse state.
- Explain upstream/downstream dependencies around a named model

### A good fit for

 - Drawing the lineage of one named dbt model without treating a description as an instruction
- Explain upstream/downstream dependencies around a named model
- Produce a readable diagram when only a local manifest is available

### Weigh up before choosing

 - The skill asks for the model name instead of guessing it.
- A diagram drawn from a description must not mark a node selected.
- Bash is limited to jq, so the file does not grant a general shell.
- This review did not execute the resource.
- Development and production lineage can differ; fallback availability must not silently change the requested environment.
- Manifest lineage reflects the last parse. Direct SQL parsing is incomplete for dynamic macros, cross-project dependencies and resources outside the parsed set.

02 / THE REVIEW RECORD

## What we actually inspected.

Source review has boundaries. A clear record is more useful than a “safe” badge.

### Material inspected

 - skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md
- skills/dbt-extras/skills/creating-mermaid-dbt-dag/references/using-manifest-json.md
- README.md
- LICENSE

### Our findings

 - Lineage is fetched first from local MCP, then production MCP, then manifest.json, then direct parsing.
- allowed-tools names two dbt MCP lineage tools, Read, Glob, Grep, and Bash limited to jq.
- A selected or focal color is used only when an MCP tool identified that model.
- Model names, descriptions, and SQL comments are not executed as commands.
- The definition orders lineage fallbacks and the manifest reference derives parents from depends_on.nodes and children by reverse lookup, warning about stale parse state.

### Not established by this review

 - The resource was not executed and its tools were not called.
- No skill execution, authenticated service operation, or outcome benchmark was performed.
- Not executed: it was not installed or run.

The review applies to the material and revision named here. A newer upstream release can change its behavior.

03 / PUT IT TO WORK

## Add a skill to your workflow.

[Upstream setup instructions ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/README.md)

DOCUMENTED COMMAND

 npx skills add dbt-labs/dbt-agent-skills/skills/dbt-extras/skills/creating-mermaid-dbt-dag Copy command ↗

Run in your terminal to choose your AI tools, project or global scope, and installation method. This short command follows the current upstream version; the review covers the revision shown above.

 Optional: install the reviewed revision

Keeps the original source and installer version where recorded, while leaving your AI tools and installation scope for you to choose.

 npx skills add https://github.com/dbt-labs/dbt-agent-skills/tree/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag Copy reviewed-revision command ↗ - Install the pinned skill directory interactively, retaining its bundled references and scripts.
- Choose the focal model, environment and whether tests belong in scope.
- Use the matching lineage API or a current manifest, map parent/child identities and include a resource-type legend plus coverage caveats.

### Before you start

 - A compatible dbt project and the selected CLI/MCP capabilities
- Warehouse or platform credentials only for operations that require them

### Compatibility

Agents supporting SKILL.md instructions; upstream marks this skill user-invocable: false

### Local instructions; runtime access depends on the workflow

 - Read local SQL/YAML/manifest or authenticated metadata APIs; write Mermaid Markdown without warehouse mutations.

### Cost model

The skill is free; service usage and infrastructure can incur charges.

04 / FOLLOW THE EVIDENCE

## The source trail.

Our notes are separate from the original resource. Check upstream before adopting a new version.

 - [Pinned skill definition ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md) Checked 2026-10-14 https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md Supports: summary, whySelected, bestFor, limitations, install, access, review
- [Publisher repository and installation guidance ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/README.md) Checked 2026-10-14 https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/README.md Supports: install
- [Apache-2.0 licence ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/LICENSE) Checked 2026-10-14 https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/LICENSE Supports: license
- [skills/dbt-extras/skills/creating-mermaid-dbt-dag/references/using-manifest-json.md ↗](https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/references/using-manifest-json.md) Checked 2026-10-14 https://github.com/dbt-labs/dbt-agent-skills/blob/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/references/using-manifest-json.md Supports: review, limitations, access, install
- [2026-10-15 C2-W09 source re-review at the existing pin ↗](https://raw.githubusercontent.com/dbt-labs/dbt-agent-skills/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md) Checked 2026-10-15 https://raw.githubusercontent.com/dbt-labs/dbt-agent-skills/7c7b5fa39e61694f1ae2b8ea1b8065e195c814ce/skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md Supports: upstreamDescription, review.notTested, review.reviewedAt

KEEP COMPARING

## Other approaches to consider.

Related by category or shared topics. These are alternatives to inspect, not a measured quality order.

 [### Answer Business Questions with dbt ↗ Answer warehouse questions through existing semantic metrics before resorting to carefully scoped SQL.](/skills/dbt-labs-answering-natural-language-questions-with-dbt/)[### Build the dbt Semantic Layer ↗ Define semantic entities, dimensions and metrics using the specification supported by the project.](/skills/dbt-labs-building-dbt-semantic-layer/)[### dbt Analytics Engineering ↗ Build and revise transformations with source profiling, explicit lineage and targeted validation.](/skills/dbt-labs-using-dbt-for-analytics-engineering/)

 [AI Tools ↗](/tools/)[Skills ↗](/skills/)[Agents ↗](/agents/)[MCP Servers ↗](/mcp-servers/)[Workflows ↗](/workflows/)

## Continue your investigation

 - [Choose a toolkit](/tools/)
- [Inspect execution hosts](/agents/)
- [Check tool access](/mcp-servers/)
- [Check project dependencies](/check-repo/)
