documenting-dbt-models

Solid

Documents dbt models and columns in schema.yml. Use when working with dbt documentation for: (1) Adding model descriptions or column definitions to schema.yml (2) Task mentions "document", "describe", "description", "dbt docs", or "schema.yml" (3) Explaining business context, grain, meaning of data, or business rules (4) Preparing dbt docs generate or improving model discoverability Matches existing project documentation style and conventions before writing.

Data & Documents 113 stars 8 forks Updated 1 weeks ago MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
68
Recency 20%
90
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# dbt Documentation **Document the WHY, not just the WHAT. Include grain, business rules, and caveats.** ## Workflow ### 1. Study Existing Documentation Patterns **CRITICAL: Match the project's documentation style before adding new docs.** ```bash # Find all schema.yml files with documentation find . -name "schema.yml" | head -5 # Read well-documented models to learn patterns cat models/marts/schema.yml | head -150 cat models/staging/schema.yml | head -150 ``` **Extract from existing documentation:** - Description length (brief vs detailed) - Formatting style (plain text vs markdown with headers) - Information included (grain? business rules? caveats?) - Column description depth (all columns vs key columns) - Use of meta tags or custom properties ### 2. Read Model SQL ```bash cat models/<path>/<model_name>.sql ``` Understand: transformations, business logic, joins, filters. ### 3. Check Existing Documentation for This Model ```bash # Find existing schema.yml find . -name "schema.yml" -exec grep -l "<model_name>" {} \; # Read existing docs cat models/<path>/schema.yml | grep -A 100 "<model_name>" ``` ### 4. Identify Documentation Needs For each model, document: - **Model description**: Purpose, grain, key business rules - **Column descriptions**: Business meaning, not just data type For each column, consider: - What business concept does this represent? - Are there any caveats or special values? - What is the source of this data? ### 5. Write Documentation **...

Details

Author
AltimateAI
Repository
AltimateAI/data-engineering-skills
Created
6 months ago
Last Updated
1 weeks ago
Language
N/A
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

creating-dbt-models

Creates dbt models following project conventions. Use when working with dbt models for: (1) Creating new models (any layer - discovers project's naming conventions first) (2) Task mentions "create", "build", "add", "write", "new", or "implement" with model, table, or SQL (3) Modifying existing model logic, columns, joins, or transformations (4) Implementing a model from schema.yml specs or expected output requirements Discovers project conventions before writing. Runs dbt build (not just compile) to verify.

113 Updated 1 weeks ago
AltimateAI
Testing & QA Solid

testing-dbt-models

Adds schema tests and data quality validation to dbt models. Use when working with dbt tests for: (1) Adding or modifying tests in schema.yml files (2) Task mentions "test", "validate", "data quality", "unique", "not_null", or "accepted_values" (3) Ensuring data integrity - primary keys, foreign keys, relationships (4) Debugging test failures or understanding why dbt test failed Matches existing project test patterns and YAML style before adding new tests.

113 Updated 1 weeks ago
AltimateAI
Data & Documents Listed

dbt-patterns

dbt model design, ref chains, sources, tests, macros, incremental strategies, materializations, and documentation best practices. Use this skill whenever the user is writing or reviewing dbt models, configuring dbt tests, designing model layers (staging/intermediate/marts), asking about incremental models, choosing materializations, writing macros, setting up sources.yml, or troubleshooting dbt run/test failures. Also trigger when the user mentions dbt refs, lineage graphs, model dependencies, dbt Cloud, the dbt CLI, or when they want to transform data already in the warehouse using SQL. If the project uses dbt at all, this skill should be active for any transformation questions.

1 Updated 1 weeks ago
Methasit-Pun