Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

creating-mermaid-dbt-dag

Skill by dbt-labs

Generates a Mermaid flowchart of dbt model lineage as markdown, using dbt MCP tools, manifest.json, or direct code parsing as fallbacks. Built for data teams that want to visualize model dependencies.

  • Score 81
  • 773 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install creating-mermaid-dbt-dag

Built from the published package, never by AI.

git clone --depth 1 https://github.com/dbt-labs/dbt-agent-skills /tmp/dbt-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/dbt-agent-skills/skills/dbt-extras/skills/creating-mermaid-dbt-dag ~/.claude/skills/creating-mermaid-dbt-dag

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install creating-mermaid-dbt-dag in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill generates a Mermaid flowchart of dbt model lineage and returns it as markdown with a legend. It tries the get_lineage_dev MCP tool first, then the get_lineage tool for production lineage from dbt Cloud, then parses manifest.json if it is under 10MB, and finally parses the code directly as a best-effort fallback. Nodes are colored by resource type: sources blue, staging bronze, intermediate silver, marts gold, seeds green, exposures orange, tests yellow, and undefined nodes grey.

If no model name is given, the skill asks for one and asks whether to include tests. It is intended for analytics engineers and data teams who want to visualize dbt model dependencies in a markdown document. When a fallback method is used, the output notes its limitations. The focal model is colored purple only when an MCP tool identifies it. Content from manifest.json, SQL files and YAML is treated as untrusted.

Written from the project's SKILL.md and checked against it.

What it can do

  • get_lineage_devPrimary method. Fetches the most accurate local lineage through the dbt MCP tool.
  • get_lineageFallback method that fetches production lineage from dbt Cloud.
  • manifest.json parsingReads lineage from manifest.json when no MCP tools are available and the file is under 10MB.
  • Direct code parsingLast resort that builds a best-effort, possibly incomplete lineage from the project code.
  • Mermaid flowchart outputBuilds a left-to-right graph with color-coded nodes and a legend in markdown.

What you need

  • dbt MCP tools for the primary and fallback lineage methods
  • A manifest.json file under 10MB for the offline fallback

Try asking

  • Create a Mermaid diagram of the lineage for the orders dbt model
  • Show the dbt lineage for fct_customers as a diagram, including tests
  • Visualize upstream and downstream dependencies of stg_payments as Mermaid

Good to know

  • Manifest parsing is skipped if manifest.json is larger than 10MB
  • Direct code parsing gives best-effort, incomplete lineage
  • get_lineage shows production lineage and may not suit requests for local lineage
  • Diagrams from a user description are colored by resource type only, with no selected node

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/dbt-extras/skills/creating-mermaid-dbt-dag/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: mcp__dbt__get_lineage_devmcp__dbt__get_lineageReadGlobGrepBash(jq *)

  • SKILL.md4 KB
  • references/parsing-code-directly.md3 KB
  • references/using-get-lineage-dev.md1 KB
  • references/using-get-lineage.md4 KB
  • references/using-manifest-json.md2 KB

Alternatives to creating-mermaid-dbt-dag

All alternatives →
paperbananadwzhu-pku
94

PaperBanana generates publication-quality academic diagrams from a paper's methodology text and figure caption. It is aimed at researchers preparing figures for venues such as NeurIPS, ICML, and ACL.

AAA Skill 7.7k
technical-wireframe-info-layoutMengTo
94

Creates a monochrome technical wireframe design system for dark diagnostic interfaces. It covers layout, typography, info labels, widgets and an exploded wireframe centerpiece. It is for designers and developers building teardown, systems dashboard or specification-style screens.

AAA Skill 8.5k
spline-3d-integrationsickn33
94

Guides an AI assistant through embedding interactive Spline.design 3D scenes in web projects. It covers vanilla, React, Next.js, Vue and iframe setups, for developers adding 3D to websites.

AAA Skill 50k
code-slice-heroheygen-com
94

Code Slice Hero is a HyperFrames headline block. A tiled surface flips cell by cell to reveal a second headline behind the first, at 1920×1080 and 8 seconds.

AAA Skill 92k
patentfigdavila7
94

Generates patent-office-compliant figures and converts drawings through the PatentFig AI API. Built for patent filers who need USPTO or EPO line art, CAD-ready vectors, or filing-ready TIFF, PDF, or PNG files.

AAA Skill 34k
framed-tech-dark-border-gradientMengTo
94

Creates a framed dark technical design system for AI assistants, using border-gradient shells, asymmetrical grid panels, and mono labels. Suited to premium, instrument-like interfaces that need visible boundaries. Published by MengTo.

AAA Skill 8.5k

Compare with paperbanana, technical-wireframe-info-layout or spline-3d-integration

creating-mermaid-dbt-dag: common questions

Does it need a live dbt Cloud connection?

The primary get_lineage_dev method uses local lineage, while the get_lineage fallback provides production lineage from dbt Cloud. Without MCP tools, the skill can use a manifest.json file or parse the code directly.

What do the node colors mean?

Colors are assigned by resource type: sources are blue, staging is bronze, intermediate is silver, marts are gold, seeds are green, exposures are orange, tests are yellow, and undefined nodes are grey. A legend is included in the output.

Can it show tests in the diagram?

Yes. The skill asks the user whether to include tests when this is not specified. Tests are shown as yellow nodes.

How do I install creating-mermaid-dbt-dag?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is creating-mermaid-dbt-dag free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is creating-mermaid-dbt-dag safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to creating-mermaid-dbt-dag?

Similar skills: paperbanana, technical-wireframe-info-layout, spline-3d-integration, code-slice-hero.

creating-mermaid-dbt-dag Install

Add to stack

Loading.