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
- If name is provided, use that name
- If user is focused on a file, use that name
- 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
- 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:
- 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.