From wire
Proactive skill for generating Mermaid flowchart diagrams of dbt model lineage. Auto-activates when a user asks to visualise dbt model dependencies, create a lineage diagram, or show the dbt DAG. Uses MCP get_lineage tools first, then manifest.json parsing, then direct code parsing as fallbacks. Produces colour-coded diagrams matching Wire's naming conventions.
npx claudepluginhub rittmananalytics/wire-plugin --plugin wireThis skill uses the workspace's default tool permissions.
Generate a Mermaid `graph LR` diagram of dbt model lineage for a given model or set of models. The diagram is returned as fenced markdown that renders in Wire Studio's document viewer, GitHub, Notion, and other Markdown renderers.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Generate a Mermaid graph LR diagram of dbt model lineage for a given model or set of models. The diagram is returned as fenced markdown that renders in Wire Studio's document viewer, GitHub, Notion, and other Markdown renderers.
orders_fct"Keywords: "lineage", "dbt DAG", "dependency diagram", "model dependencies", "upstream", "downstream", "Mermaid dbt", "dbt graph", "visualise models"
Activate when a user asks about how models connect, what a model depends on, or what would be affected by changing a model.
.sql file, use that model nameorders_fct)"Use the first available method:
get_lineage_dev MCP tool (preferred)Best for local development lineage. Returns the current local state of the project.
mcp__dbt__get_lineage_dev(model_name="orders_fct")
get_lineage MCP toolFalls back to production lineage from dbt Cloud if get_lineage_dev is unavailable.
mcp__dbt__get_lineage(model_name="orders_fct")
target/manifest.jsonWhen no MCP tools are available. Check file size first — if > 10 MB, skip to Method D.
# Get upstream dependencies for a model
jq --arg model "model.PROJECT.orders_fct" '
.nodes[$model] |
{name: .name, depends_on: .depends_on.nodes}
' target/manifest.json
# Get downstream dependents
jq --arg model "model.PROJECT.orders_fct" '
.nodes | to_entries |
map(select(.value.depends_on.nodes | index($model))) |
map(.value.name)
' target/manifest.json
Read the model's .sql file and trace ref() calls up the dependency tree. This is best-effort and may miss indirect dependencies — note any limitations in the diagram.
Use graph LR (left to right). Colour nodes by type:
| Node type | Wire naming pattern | Fill colour | Text colour |
|---|---|---|---|
| Selected model | (the requested model) | #7c3aed (purple) | #ffffff |
| Sources | source(...) calls | #3b82f6 (blue) | #ffffff |
| Staging | stg_ prefix | #b45309 (bronze) | #ffffff |
| Integration | int_ prefix | #9ca3af (silver) | #111827 |
| Marts / facts / dims | _fct / _dim suffix | #d97706 (gold) | #111827 |
| Seeds | .csv seed files | #16a34a (green) | #ffffff |
| Exposures | Looker dashboards, etc. | #ea580c (orange) | #ffffff |
| Tests | Unit/schema tests | #ca8a04 (yellow) | #111827 |
| Other / unknown | Everything else | #6b7280 (grey) | #ffffff |
```mermaid
graph LR
src_salesforce["📥 salesforce\n(source)"]:::source
stg_salesforce__accounts["stg_salesforce__accounts"]:::staging
stg_salesforce__opportunities["stg_salesforce__opportunities"]:::staging
int_accounts["int_accounts"]:::integration
orders_fct["⭐ orders_fct\n(selected)"]:::selected
customers_dim["customers_dim"]:::mart
src_salesforce --> stg_salesforce__accounts
src_salesforce --> stg_salesforce__opportunities
stg_salesforce__accounts --> int_accounts
stg_salesforce__opportunities --> int_accounts
int_accounts --> orders_fct
int_accounts --> customers_dim
classDef selected fill:#7c3aed,color:#ffffff,stroke:#5b21b6
classDef source fill:#3b82f6,color:#ffffff,stroke:#2563eb
classDef staging fill:#b45309,color:#ffffff,stroke:#92400e
classDef integration fill:#9ca3af,color:#111827,stroke:#6b7280
classDef mart fill:#d97706,color:#111827,stroke:#b45309
classDef seed fill:#16a34a,color:#ffffff,stroke:#15803d
classDef exposure fill:#ea580c,color:#ffffff,stroke:#c2410c
```
**Legend**: 🟣 Selected 🔵 Source 🟤 Staging ⬜ Integration 🟡 Mart/Fact/Dim 🟢 Seed 🟠 Exposure
```
mermaid code blockstg_<source>__<entity> → int_<entity> → <entity>_fct / <entity>_dim. The diagram should reflect this layered flow./wire:conceptual_model:generate: the conceptual model command also produces a Mermaid entity diagram. This skill produces a lineage diagram (model dependencies), which is different from an entity-relationship diagram.