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>
44 lines
970 B
Markdown
44 lines
970 B
Markdown
# /lineage-viz - Mermaid Lineage Visualization
|
|
|
|
## Skills to Load
|
|
- skills/lineage-analysis.md
|
|
- skills/mcp-tools-reference.md
|
|
- skills/visual-header.md
|
|
|
|
## Visual Output
|
|
|
|
Display header: `DATA-PLATFORM - Lineage Visualization`
|
|
|
|
## Usage
|
|
|
|
```
|
|
/lineage-viz <model_name> [--direction TB|LR] [--depth N]
|
|
```
|
|
|
|
## Workflow
|
|
|
|
1. **Get lineage data**: Use `dbt_lineage` to fetch model dependencies
|
|
2. **Build Mermaid graph**: Apply node shapes from `skills/lineage-analysis.md`
|
|
3. **Output**: Render copy-paste ready Mermaid flowchart
|
|
|
|
## Options
|
|
|
|
| Flag | Description |
|
|
|------|-------------|
|
|
| `--direction TB` | Top-to-bottom layout (default: LR) |
|
|
| `--depth N` | Limit lineage depth |
|
|
|
|
## Examples
|
|
|
|
```
|
|
/lineage-viz dim_customers
|
|
/lineage-viz fct_orders --direction TB
|
|
/lineage-viz rpt_revenue --depth 2
|
|
```
|
|
|
|
## Required MCP Tools
|
|
|
|
- `dbt_lineage` - Get model dependencies (REQUIRED)
|
|
- `dbt_ls` - List dbt resources
|
|
- `dbt_docs_generate` - Generate full manifest if needed
|