Refactored commands to extract reusable skills following the Commands → Skills separation pattern. Each command is now <50 lines and references skill files for detailed knowledge. Plugins refactored: - claude-config-maintainer: 5 commands → 7 skills - code-sentinel: 3 commands → 2 skills - contract-validator: 5 commands → 6 skills - data-platform: 10 commands → 6 skills - doc-guardian: 5 commands → 6 skills (replaced nested dir) - git-flow: 8 commands → 7 skills Skills contain: workflows, validation rules, conventions, reference data, tool documentation Commands now contain: YAML frontmatter, agent assignment, skills list, brief workflow steps, parameters Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1.5 KiB
1.5 KiB
Lineage Analysis
Lineage Workflow
- Get lineage data via
dbt_lineage - Build dependency graph (upstream + downstream)
- Visualize (ASCII tree or Mermaid)
- Report critical path and refresh implications
ASCII Tree Format
Sources:
|-- raw_customers (source)
|-- raw_orders (source)
model_name (materialization)
|-- upstream:
| |-- stg_model (view)
| |-- raw_source (source)
|-- downstream:
|-- fct_model (incremental)
|-- rpt_model (table)
Mermaid Diagram Format
flowchart LR
subgraph Sources
raw_data[(raw_data)]
end
subgraph Staging
stg_model[stg_model]
end
subgraph Marts
dim_model{{dim_model}}
end
raw_data --> stg_model
stg_model --> dim_model
Mermaid Node Shapes
| Materialization | Shape | Syntax |
|---|---|---|
| source | Cylinder | [(name)] |
| view | Rectangle | [name] |
| table | Double braces | {{name}} |
| incremental | Hexagon | {{name}} |
| ephemeral | Dashed | [/name/] |
Mermaid Options
| Flag | Description |
|---|---|
--direction TB |
Top-to-bottom (default: LR) |
--depth N |
Limit lineage depth |
Styling Target Model
style target_model fill:#f96,stroke:#333,stroke-width:2px
Usage Tips
- Documentation: Copy Mermaid to README.md
- GitHub/GitLab: Both render Mermaid natively
- Live Editor: https://mermaid.live for interactive editing