creating-mermaid-dbt-dag

Installation
SKILL.md

Create Mermaid Diagram in Markdown from dbt DAG

How to use this skill

Step 1: Determine the model name

  1. If name is provided, use that name
  2. If user is focused on a file, use that name
  3. If you don't know the model name: ask immediately — prompt the user to specify it
    • If the user needs to know what models are available, query the list of models
  4. Ask the user if they want to include tests in the diagram (if not specified)

Step 2: Fetch the dbt model lineage (hierarchical approach)

Follow this hierarchy. Use the first available method:

  1. Primary: Use get_lineage_dev MCP tool (if available)
    • See using-get-lineage-dev.md for detailed instructions
    • Preferred method — provides most accurate local lineage. If the user asks specifically for production lineage, this may not be suitable.
Related skills

More from dbt-labs/dbt-agent-skills

Installs
89
GitHub Stars
490
First Seen
Mar 17, 2026