# AI Data Modelling Architect

> An AI-powered Analytics Engineering architect that designs, implements, and reviews production-oriented dimensional data models using SQL, dbt and Snowflake. Supports SCD Type 2, incremental pipelines, late-arriving data, data quality, surrogate keys and financial reconciliation.

AI Data Modelling Architect is a free AI agent skill on Agensi by Partha Basak, in Data & Databases. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Partha Basak](https://www.agensi.io/creators/partha-basak)
- Category: [Data & Databases](https://www.agensi.io/skills/data-databases)
- Version: 1.0
- Last updated: 2026-11-24
- Security: scan passed (2026-11-24); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/ai-data-modelling-architect
- Tags: database, research, ecommerce, dbt, snowflake, sql

## About this skill

Analytics engineering requires more than just writing SQL; it demands rigorous dimensional modeling and testable data products. This skill transforms raw requirements into production-ready dbt models, Snowflake architectures, and hardened data pipelines.

### What it does
- **Dimensional modeling** designs transaction, periodic snapshot, and accumulating snapshot facts with explicit grain definitions.
- **SCD management** implements Type 2 slowly changing dimensions using half-open intervals and robust history rebuild logic.
- **Key engineering** generates deterministic surrogate keys using canonicalized hashing and source-system scoping.
- **Incremental processing** builds dbt strategies for deduplication, late-arrival handling, and idempotent merges.
- **Data reconciliation** creates test suites for financial control totals, relationship integrity, and source-to-target counts.

### How it works
1. **Source analysis** maps business processes to source entities, identifying ingestion patterns and CDC behavior.
2. **Design phase** defines the grain for facts and classifies measures as additive, semi-additive, or non-additive.
3. **Implementation** writes dbt models across staging, intermediate, and marts layers with explicit unique keys.
4. **Validation** executes a test matrix covering uniqueness, SCD overlaps, and incremental equivalence.

### Frameworks & tools
This skill is optimized for dbt Core and Snowflake. It utilizes dimensional modeling principles (Kimball), SQL, and YAML for dbt configurations and tests.

### Why this beats prompting it yourself
Generic prompts often produce SQL that fails on edge cases like late-arriving facts or overlapping SCD intervals. This skill enforces strict grain isolation and deterministic hashing, preventing the common "fan-out" join errors that break financial reporting.

### Use cases
- Migrating raw staging tables into a star schema for BI tools like Looker or Tableau.
- Designing a financial reconciliation model to track authorized vs. settled payments.
- Refactoring legacy SQL into modular dbt models with proper testing and documentation.
- Implementing an SCD Type 2 pipeline to track historical changes in customer attributes.

### Known limitations
Does not perform live warehouse execution or production deployments. It provides code and commands, but requires a local dbt environment or Snowflake instance to run.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the AI Data Modelling Architect skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How does this skill differ from a standard SQL generator?

This skill follows Kimball-style dimensional modeling, producing modular dbt layers (staging, intermediate, marts) with a specific focus on handling complex SCD Type 2 logic and deterministic surrogate keys.

### What specific platforms and frameworks is this architect compatible with?

The skill is specifically optimized for dbt Core and Snowflake; it generates dbt-compliant SQL, YAML configuration files, and testing schemas tailored for Snowflake’s architecture.

### What common data integrity issues does this skill help prevent?

It solves for data 'fan-out' during joins, overlapping intervals in historical tracking, and inconsistent grains that typically cause discrepancies in BI tools like Looker or Tableau.

### Is a live Snowflake connection required for this skill to function?

You will receive the logic, structural patterns, and dbt code templates required to build your models, though you will need your own active Snowflake instance and dbt environment to execute the code.

### Can I use this skill to migrate existing legacy SQL scripts into dbt?

Yes, the skill is designed to handle refactoring by analyzing your existing legacy SQL and re-mapping it into a structured, testable star schema with proper documentation.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
