- Home
- Skills
- Manutej
- Luxor Claude Marketplace
- Dbt Data Transformation
dbt-data-transformation_skill
- Shell
40
GitHub Stars
3
Bundled Files
2 months ago
Catalog Refreshed
4 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill manutej/luxor-claude-marketplace --skill dbt-data-transformation- EXAMPLES.md44.3 KB
- README.md14.2 KB
- SKILL.md60.4 KB
Overview
This skill is a complete guide to dbt data transformation covering models, tests, documentation, incremental builds, macros, packages, and production workflows. It provides practical patterns for developing modular SQL, enforcing data quality, documenting lineage, and operating dbt at scale. Use it to standardize ELT development and deploy reliable analytics pipelines.
How this skill works
The skill inspects and explains core dbt concepts: models (SELECT-only SQL files), sources, seeds, snapshots, macros, and materializations (view, table, incremental, ephemeral). It describes ref() and source() usage, testing strategies (schema and custom tests), documentation blocks, and incremental build strategies with example configs. It also outlines production workflows including CI/CD, orchestration, and package management.
When to use it
- Building modular, testable data transformation pipelines for analytics
- Implementing ELT workflows and migrating legacy ETL to dbt
- Creating incremental models for large or time-series datasets
- Enforcing data quality and data contracts with automated tests
- Documenting models, lineage, and business metrics for consumers
- Orchestrating dbt runs with Airflow, Dagster, or dbt Cloud
Best practices
- Organize models by staging, intermediate, and marts using clear prefixes (stg_, int_, fct_, dim_)
- Use ref() for model dependencies and source() to document raw tables
- Prefer incremental materializations for large datasets and ephemeral for reusable CTE logic
- Define schema tests and severity levels; add custom SQL tests for business rules
- Write column-level docs and docs blocks; generate and serve dbt docs for visibility
- Adopt CI/CD, run tests on pull requests, and schedule incremental builds in production
Example use cases
- Create staging models that mirror raw tables, then build cleaned marts and facts for BI
- Implement an incremental fct_orders table with merge or delete+insert strategies to handle late-arriving updates
- Use dbt_utils package tests to validate complex constraints like unique combinations and sequential values
- Document metrics and exposures for downstream dashboards and ML features, and publish docs site
- Run dbt in CI to compile models, execute tests, and deploy artifacts to a production schema
FAQ
Use incremental for large, append-heavy or slowly changing data where processing only new records saves time and cost. Use table when you need a full rebuild for small to medium datasets that benefit from fast query performance.
How do I test referential integrity across models?
Define relationships tests in YAML using relationships: to: ref('other_model') field: key_field, or write custom SQL tests that return orphaned records and fail if any rows are returned.