dbt Analytics Project taste — промпт для ChatGPT
Промпт dbt Analytics Project taste для ChatGPT задаёт правила устройства dbt-проекта с моделями staging, intermediate и marts. Включается при проектировании моделей, тестов и CI для аналитики.
CC0-1.0 ★ 178 201 обновлён 2026-10-24
Открыть на GitHubЧто делает dbt Analytics Project taste
Промпт задаёт структуру dbt-проекта и правила для SQL, тестов, документации и сборки. Он распределяет модели по слоям staging, intermediate и marts: в staging — переименование, приведение типов и лёгкая очистка, а бизнес-логику и соединения переносит дальше. Сырые данные подключаются через source(), остальные модели — через ref().
Для моделей предлагается задавать первичный ключ и тесты unique и not_null, а для важных внешних ключей и статусов — relationships и accepted_values. Промпт также описывает проверки свежести источников, YAML-документацию витрин и инкрементальные модели с unique_key и окном для запоздавших данных. В CI он предлагает запускать SQLFluff и slim CI с state:modified+ и deferral относительно артефактов production.
Для Claude Code путь установки указан как .claude/commands/prompts.csv.md. ChatGPT входит в список платформ, но отдельной команды установки для него нет.
Какие задачи решает
- разложить dbt-модели по слоям staging, intermediate и marts
- назначить тесты ключам и статусам моделей
- описать витрины и их зерно в YAML
- настроить slim CI для pull request
Примеры запросов агенту
- Задай правила для нового аналитического проекта на dbt.
- Разбери структуру моделей и предложи разделение на staging, intermediate и marts.
- Определи тесты и документацию для этих витрин dbt.
Как установить dbt Analytics Project taste
Как использовать
Вставьте текст в начало диалога или в инструкции проекта
Вручную: положить файлы
.claude/commands/prompts.csv.mdВопросы о dbt Analytics Project taste
Как установить dbt Analytics Project taste в ChatGPT?
Промпт можно передать в сообщении ChatGPT и попросить применять его правила к dbt-проекту. Отдельная команда установки для ChatGPT не приводится.
Что делает dbt Analytics Project taste?
Он задаёт рекомендации по слоям моделей, SQL, тестам, документации и CI в dbt-проекте. Среди них — использование source() для сырых данных и ref() для остальных моделей.
Как промпт предлагает запускать slim CI?
Для pull request он предлагает использовать state:modified+ и deferral относительно артефактов production, чтобы собирать изменённые модели.
Исходный текст
prompts.csv · CC0-1.0
# dbt Analytics Project taste of a careful analytics engineer - Layer models into staging, intermediate and marts folders, with one staging model per source table. Confidence: 0.90 - Keep staging models to renaming, casting and light cleanup only; put joins and business logic in intermediate and mart models. Confidence: 0.90 - Reference raw data only through source() in staging models and use ref() everywhere else. Confidence: 0.95 - Name models with clear prefixes such as stg_, int_, fct_ and dim_ so their role is obvious in lineage graphs. Confidence: 0.85 - Declare a primary key for every model and test it with unique and not_null tests. Confidence: 0.95 - Add relationships and accepted_values tests on important foreign keys and status columns. Confidence: 0.85 - Configure source freshness checks with warn and error thresholds and run them before the main build. Confidence: 0.85 - Write SQL in lowercase with CTEs at the top, one CTE per logical step, and a final select from the last CTE. Confidence: 0.80 - Lint and format SQL with SQLFluff in CI so style debates never reach code review. Confidence: 0.80 - Use incremental models only when full refreshes are too slow, and always define unique_key and a late-arriving data window. Confidence: 0.85 - Materialize staging models as views and marts as tables or incremental models, unless profiling shows a better choice. Confidence: 0.75 - Keep business metrics defined once in the semantic layer or a single mart, not recalculated in every dashboard. Confidence: 0.85 - Document every mart model and its columns in YAML, including the grain of the table in plain words. Confidence: 0.90 - Run slim CI with state:modified+ and deferral against production artifacts so pull requests build only what changed. Confidence: 0.85 - Build each pull request into its own temporary schema and drop it after merge. Confidence: 0.80 - Pin dbt and package versions in packages.yml and the project requirements, and upgrade them deliberately. Confidence: 0.85 - Keep macros few and well tested; prefer readable SQL over clever Jinja. Confidence: 0.80 - Add unit tests for tricky transformation logic using dbt unit tests with small, explicit input fixtures. Confidence: 0.75 - Use snapshots for slowly changing dimensions only where history is genuinely needed by the business. Confidence: 0.75 - Tag models by owner and domain, and route test failures to the owning team's channel. Confidence: 0.70 - Avoid select * in marts; list columns explicitly so schema changes upstream do not silently leak through. Confidence: 0.85 - Set model contracts on public marts that other teams or tools depend on. Confidence: 0.70
© f · CC0-1.0 · f/prompts.chat