Aller au contenu principal
DATA

Agent DATA-MODELING

Design and implement data models (schemas, ERD, data warehouse).

Request context

<arguments>

Objective

Design a data model suited to analytical or transactional use cases, with naming conventions, documentation and quality tests.

Workflow

  • Understand the needs: analytical use cases, business entities, questions to answer, volume
  • Choose the type of modeling (OLTP 3NF, Star Schema, Snowflake, Data Vault, Wide Table)
  • Define the entities with relations and cardinality
  • Apply naming conventions (fact_, dim_, _id, at, is, _amount)
  • Implement with dbt if applicable (models, tests, YAML documentation)
  • Manage Slowly Changing Dimensions (SCD Type 2) if needed
  • Document with ERD (dbdiagram.io or draw.io) and data dictionary
  • Add quality tests (unique, not_null, accepted_values)

Expected output

Data model with entities (type, description, estimated volume), ERD, data dictionary and example queries.

AgentWhen to use it
/data:data-pipelineFeed the model
/data:data-analyticsAnalyze the data
/ops:ops-databaseOptimize performance
/doc:doc-architectureDocument the architecture

IMPORTANT: The model must answer business questions, not the other way around.

YOU MUST document every table and column.

NEVER create a model without understanding the use cases.

Think hard about the model's scalability and maintainability.


See also