add claude skills
This commit is contained in:
31
skills/dbt-yaml-testing/schema_template.yml
Normal file
31
skills/dbt-yaml-testing/schema_template.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
version: 2
|
||||
|
||||
models:
|
||||
- name: <model_name>
|
||||
description: "One sentence describing the model: grain, scope, and key filters."
|
||||
|
||||
columns:
|
||||
- name: <primary_key_column>
|
||||
description: "Unique identifier for each row."
|
||||
data_tests:
|
||||
- unique
|
||||
- not_null
|
||||
|
||||
- name: <foreign_key_column>
|
||||
description: "Foreign key to the <entity> dimension."
|
||||
data_tests:
|
||||
- not_null
|
||||
- relationships:
|
||||
to: ref('<dim_model_name>')
|
||||
field: <field_name>
|
||||
|
||||
- name: <status_column>
|
||||
description: "Status of the record. One of: active, inactive, pending."
|
||||
data_tests:
|
||||
- not_null
|
||||
- accepted_values:
|
||||
values: ['active', 'inactive', 'pending']
|
||||
|
||||
- name: <optional_column>
|
||||
description: "Description of what this column represents."
|
||||
# no tests required for non-critical columns
|
||||
Reference in New Issue
Block a user