Update or generate YAML documentation for SQL models with proper descriptions and tests
Generates or updates YAML documentation for SQL models with descriptions and data tests.
/plugin marketplace add davepoon/buildwithclaude/plugin install all-commands@buildwithclaude<model_name_or_path>$ARGUMENTS
Update or generate the YAML docs for this SQL model or folder of models. Look for a matching YAML file or documentation for this model inside a combined YAML file in the same directory. If the YAML for the given SQL model is not included, generate it from scratch based on the SQL code and anything that can be inferred from the upstream files and their YAML. Put the resulting YAML in a separate file matching the name of the model, and if necessary remove this model from any combined YAML files.
Use the generate_model_yaml operation to determine the canonical list of columns and data types. Add/update all data types in any existing YAML. If no there is no existing YAML file, add descriptions (and tests, if necessary) to the output of this operation. In this case (and only this case), remove columns that have been commented out or excluded from the SQL.
source property.)unique_combination_of_columns from the dbt_utils package and put it after the model description and before columns:, under data_tests:. Only add such a test if explicitly requested or if there is such a test upstream, all columns are present in this model, and the cardinality of this model appears to match. Do not change this test if it already exists.unique and not_null tests on that column only.data_tests: syntaxmodels.columns; do not use the model-wide models.data_tests unless directed to do so.version: 2 at the top; just start with models:/docsGenerate comprehensive YAML documentation from Go struct definitions with sensible default values