dbt-project-analyzer
БесплатноБез исполняемых скриптовНе проверенAnalyzes dbt projects for best practices, performance, maintainability, and generates actionable recommendations for improvement.
от a5c-ai★ 1 947 звёзд на GitHubОб этом скилле
dbt Project Analyzer
Analyzes dbt projects for best practices, performance, and maintainability following dbt Labs recommended patterns.
Overview
This skill examines dbt project structure, model dependencies, test coverage, documentation completeness, and adherence to naming conventions. It provides actionable recommendations for improving project health and maintainability.
Capabilities
- Model dependency graph analysis - Visualize and analyze model relationships, detect circular dependencies
- Incremental model optimization - Evaluate incremental strategies and suggest improvements
- Materialization strategy recommendations - Recommend optimal materializations based on usage patterns
- Test coverage analysis - Measure and report on test coverage across models
- Documentation completeness check - Identify undocumented models, columns, and sources
- Naming convention validation - Enforce consistent naming patterns (staging, marts, intermediate)
- Ref/source usage validation - Detect hardcoded references and missing source definitions
- Macro efficiency analysis - Evaluate macro usage and suggest optimizations
- Slim CI optimization - Configure efficient CI builds with state comparison
- Model contract validation - Verify model contracts for type safety
Input Schema
{
"projectPath": {
"type": "string",
"description": "Path to the dbt project root directory",
"required": true
},
"manifestJson": {
"type": "object",
"description": "Parsed manifest.json from target/ directory (optional, will be loaded if not provided)"
},
"catalogJson": {
"type": "object",
"description": "Parsed catalog.json from target/ directory (optional)"
},
"runResults": {
"type": "object",
"description": "Parsed run_results.json for performance analysis (optional)"
},
"analysisDepth": {
"type": "string",
"enum": ["quick", "standard", "deep"],
"default": "standard",
"description": "Depth of analysis to perform"
},
"focusAreas": {
"type": "array",
"items": {
"type": "string",
"enum": ["performance", "testing", "documentation", "naming", "incremental", "dependencies"]
},
"description": "Specific areas to focus analysis on (all if not specified)"
}
}
Output Schema
{
"healthScore": {
"type": "number",
"description": "Overall project health score (0-100)"
},
"issues": {
"type": "array",
"items": {
"severity": "error|warning|info",
"category": "string",
"model": "string",
"message": "string",
"recommendation": "string",
"line": "number"
}
},
"metrics": {
"testCoverage": {
"type": "number",
"description": "Percentage of models with tests"
},
"docCoverage": {
"type": "number",
"description": "Percentage of models/columns documented"
},
"incrementalRatio": {
"type": "number",
"description": "Percentage of eligible models using incremental"
},
"avgModelDepth": {
"type": "number",
"description": "Average depth in DAG"
},
"totalModels": {
"type": "number"
},
"totalTests": {
"type": "number"
}
},
"recommendations": {
"type": "array",
"items": {
"priority": "high|medium|low",
"category": "string",
"description": "string",
"effort": "string",
"impact": "string"
}
},
"dependencyGraph": {
"type": "object",
"description": "Simplified dependency graph for visualization"
}
}
Usage Examples
Basic Project Analysis
# Invoke skill for standard analysis
/skill dbt-project-analyzer --projectPath ./my-dbt-project
Deep Analysis with Focus Areas
{
"projectPath": "./analytics",
"analysisDepth": "deep",
"focusAreas": ["performance", "testing", "incremental"]
}
CI Integration Analysis
{
"projectPath": "./dbt_project",
"manifestJson": "./target/manifest.json",
"runResults": "./target/run_results.json",
"focusAreas": ["performance"]
}
Analysis Rules
Naming Conventions
| Layer | Pattern | Example |
|---|---|---|
| Staging | stg_<source>__<entity> |
stg_stripe__payments |
| Intermediate | int_<entity>_<verb> |
int_payments_pivoted |
| Marts | fct_<entity> or dim_<entity> |
fct_orders, dim_customers |
Test Coverage Requirements
| Severity | Condition |
|---|---|
| Error | No unique/not_null test on primary key |
| Warning | < 50% columns have tests |
| Info | Missing relationship tests |
Materialization Guidelines
| Model Type | Recommended | Reason |
|---|---|---|
| Staging | View or Ephemeral | Source transformations, low compute |
| Intermediate | Ephemeral | Reduce warehouse clutter |
| Marts | Table or Incremental | End-user queries, performance |
| Large tables (>1M rows) | Incremental | Redu |
Установить dbt-project-analyzer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadGrepGlobBashWebFetchВложенные файлы
FAQ
Что делает скилл dbt-project-analyzer?
Analyzes dbt projects for best practices, performance, maintainability, and generates actionable recommendations for improvement.
Как установить скилл dbt-project-analyzer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dbt-project-analyzer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic