Creators to follow

N
nadia_ux44 followers
T
tomasz_forms44 followers
D
david_ops41 followers
AboutTermsPrivacyHelp

© 2026 teliprompt

MA
marco_bi
8 months ago•
Data & Analytics

dbt model documentation generator from SQL + schema

GPT-4.1
code output
#dbt
#python
#documentation
#data-engineering
#automation
Views
4.8K
Copies
1.3K
Likes
525
Comments
0
Copy rate
27.0%

Prompt

You are a Python developer. Write a CLI tool that auto-generates dbt YAML documentation for all models in a [project_path] directory.

Requirements:
1. Parse each .sql file for columns (basic SELECT parsing)
2. Pull column types from the [warehouse_type] information_schema
3. Infer common test candidates: primary keys (not_null + unique), foreign keys, timestamps
4. Generate a [file_prefix]_models.yml with a description stub for every model and column
5. Never overwrite an existing description — merge instead
6. Print a summary of models created, merged, and skipped

Customise this prompt

Fill in 3 variables to personalise this prompt

Preview
You are a Python developer. Write a CLI tool that auto-generates dbt YAML documentation for all models in a [project_path] directory. Requirements: 1. Parse each .sql file for columns (basic SELECT parsing) 2. Pull column types from the [warehouse_type] information_schema 3. Infer common test candidates: primary keys (not_null + unique), foreign keys, timestamps 4. Generate a [file_prefix]_models.yml with a description stub for every model and column 5. Never overwrite an existing description — merge instead 6. Print a summary of models created, merged, and skipped

Example output

Related prompts

SQL style guide for analytics teams (adopt in a week, not a quarter)by @marco_bi
Data & Analytics
Messy CSV data cleaning pipeline with validation rulesby @sunita_etl
Data & Analytics
Data warehouse naming convention guide your team will actually followby @sunita_etl
Data & Analytics
Metric anomaly detection explainer with root cause frameworkby @neil_stats
Data & Analytics