Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Dbt Analytics?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/adityaaatiwari-dbt-analytics-anvil)
---
name: dbt-analytics
description: Structure scalable dbt warehouse projects cleanly with layered models, incremental merges, data tests, and contracts
---
<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->
# dbt analytics
Use when authoring dbt SQL/Python models, YAML schemas, macros, incremental tables, or Slim CI checks.
## Modeling layers
- Enforce clean layering: `staging` (`stg_*` 1:1 with source tables for renaming/casting only), `intermediate` (`int_*` reusable joins/logic), and `marts` (business-facing facts/dimensions).
- Define sources cleanly in `sources.yml` with explicit freshness SLAs rather than hardcoding raw schema/table names inside models.
- Keep `is_incremental()` logic idempotent with explicit lookback windows for late-arriving events and unique keys for merge updates.
## Quality and contracts
- Add `not_null`, `unique`, `accepted_values`, and `relationships` tests on primary keys and critical foreign-key joins in model YAML files.
- Use SQL `contracts` (`contract: { enforced: true }`) on public downstream marts so accidental column renames or type changes fail loudly in CI.
## Verify
Run `dbt compile`, `dbt build --select state:modified+` against a zero-copy clone/dev schema, and confirm zero broken downstream references.