refactor: rename command files for namespace consistency
BREAKING CHANGE: All generic command names now prefixed with plugin namespace. See CHANGELOG.md v7.0.0 for complete rename map. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
37
plugins/data-platform/commands/data-explain.md
Normal file
37
plugins/data-platform/commands/data-explain.md
Normal file
@@ -0,0 +1,37 @@
|
||||
# /explain - dbt Model Explanation
|
||||
|
||||
## Skills to Load
|
||||
- skills/dbt-workflow.md
|
||||
- skills/lineage-analysis.md
|
||||
- skills/mcp-tools-reference.md
|
||||
- skills/visual-header.md
|
||||
|
||||
## Visual Output
|
||||
|
||||
Display header: `DATA-PLATFORM - Model Explanation`
|
||||
|
||||
## Usage
|
||||
|
||||
```
|
||||
/explain <model_name>
|
||||
```
|
||||
|
||||
## Workflow
|
||||
|
||||
1. **Get model info**: Use `dbt_lineage` for metadata (description, tags, materialization)
|
||||
2. **Analyze dependencies**: Show upstream/downstream as tree
|
||||
3. **Compile SQL**: Use `dbt_compile` to get rendered SQL
|
||||
4. **Report**: Purpose, materialization, dependencies, key SQL logic
|
||||
|
||||
## Examples
|
||||
|
||||
```
|
||||
/explain dim_customers
|
||||
/explain fct_orders
|
||||
```
|
||||
|
||||
## Required MCP Tools
|
||||
|
||||
- `dbt_lineage` - Get model dependencies
|
||||
- `dbt_compile` - Get compiled SQL
|
||||
- `dbt_ls` - List related resources
|
||||
Reference in New Issue
Block a user