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
906 B
Markdown
44 lines
906 B
Markdown
# /dbt-test - Run dbt Tests
|
|
|
|
## Skills to Load
|
|
- skills/dbt-workflow.md
|
|
- skills/mcp-tools-reference.md
|
|
- skills/visual-header.md
|
|
|
|
## Visual Output
|
|
|
|
Display header: `DATA-PLATFORM - dbt Tests`
|
|
|
|
## Usage
|
|
|
|
```
|
|
/dbt-test [selection] [--warn-only]
|
|
```
|
|
|
|
## Workflow
|
|
|
|
Execute `skills/dbt-workflow.md` test workflow:
|
|
|
|
1. **Pre-validation** (MANDATORY): Run `dbt_parse` first
|
|
2. **Execute tests**: Use `dbt_test` with selection
|
|
3. **Format results**: Group by test type, show pass/fail/warn counts
|
|
|
|
## Options
|
|
|
|
| Flag | Description |
|
|
|------|-------------|
|
|
| `--warn-only` | Treat failures as warnings |
|
|
|
|
## Examples
|
|
|
|
```
|
|
/dbt-test # Run all tests
|
|
/dbt-test dim_customers # Tests for specific model
|
|
/dbt-test tag:critical # Run critical tests only
|
|
```
|
|
|
|
## Required MCP Tools
|
|
|
|
- `dbt_parse` - Pre-validation (ALWAYS RUN FIRST)
|
|
- `dbt_test` - Execute tests (REQUIRED)
|