Interface for defining, testing, and applying data models and pipelines using SQLMesh.

Install

mkdir -p .claude/skills/sqlmesh && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/9544" && unzip -o skill.zip -d .claude/skills/sqlmesh && rm skill.zip

Installs to .claude/skills/sqlmesh

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when working with SQLMesh — writing or editing MODEL blocks, Python @model decorators, Python @macros, audits, unit tests, external_models.yaml, or seeds; running `sqlmesh plan/apply/audit/render/evaluate/test`; debugging plans, snapshots, virtual environments, or state issues; configuring `config.py`, gateways, or `before_all`/`after_all` hooks; choosing a model kind (FULL, INCREMENTAL_BY_TIME_RANGE, INCREMENTAL_BY_UNIQUE_KEY, VIEW, SEED, EMBEDDED, SCD_TYPE_2, EXTERNAL, MANAGED); migrating a project from dbt; or asking whether SQLMesh is still maintained. Trigger on these terms even when the user does not name the tool. SQLMesh changes quickly and the model's prior knowledge is often wrong — fetch the canonical docs at https://sqlmesh.readthedocs.io/en/stable/ before answering anything non-trivial.
814 chars✓ has a “when” triggerlonger than Claude Code's old 250-char listing cap (fine on current versions)
Advanced

Key capabilities

  • →Write models and macros
  • →Run sqlmesh plans
  • →Execute audits
  • →Test data pipelines

How it works

Uses SQLMesh to manage data transformations, snapshots, and virtual environments.

Inputs & outputs

You give it
SQL/Python model
You get back
Data transformation plan

When to use sqlmesh

  • →Defining data models
  • →Running sqlmesh plans
  • →Testing data pipeline logic
  • →Migrating from dbt

About sqlmesh

Handles data transformation tasks in SQLMesh. Supports writing models, macros, and audits; running plans and tests; and configuring project environments.

Use when working with SQLMesh — writing or editing MODEL blocks, Python @model decorators, Python @macros, audits, unit tests, external_models.yaml, or seeds; running `sqlmesh plan/apply/audit/render/evaluate/test`; debugging plans, snapshots, virtual environments, or state issues; configuring `conf

When not to use it

  • →Using Tobiko Cloud features
  • →Directly porting dbt incremental models

Prerequisites

sqlmesh installed

Limitations

  • →State backend requires Postgres for concurrency
  • →Jinja macros have known footguns

How it compares

Uses a snapshot-based virtual environment approach rather than dbt's direct materialization.

Compared to similar skills

sqlmesh side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
sqlmesh (this skill)04moReviewAdvanced
data-quality-frameworks05moNo flagsIntermediate
soda-core04moReviewIntermediate
data-dbt-guide03moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

data-quality-frameworks

Anhvu1107

ALWAYS use this when the request matches Data Quality Frameworks: Implement data quality validation with Great Expectations, dbt tests, and data contracts.

00

soda-core

ivanshamaev

Soda Core data quality — SodaCL checks (row_count, missing, invalid, duplicate, freshness, schema, reference, custom SQL), configuration.yml for PostgreSQL/Spark/ClickHouse/BigQuery, soda scan CLI, Airflow integration, dbt integration, alerting

00

data-dbt-guide

khalilbenaz

Transformation de données avec dbt — models, tests, sources, macros et documentation automatisée. Se déclenche avec "dbt", "data build tool", "dbt model", "dbt test", "transformation de données dbt".

00

find-hypertable-candidates

timescale

Use this skill to analyze an existing PostgreSQL database and identify which tables should be converted to Timescale/TimescaleDB hypertables. **Trigger when user asks to:** - Analyze database tables for hypertable conversion potential - Identify time-series or event tables in an existing schema - Evaluate if a table would benefit from Timescale/TimescaleDB - Audit PostgreSQL tables for migration to Timescale/TimescaleDB/TigerData - Score or rank tables for hypertable candidacy **Keywords:** hypertable candidate, table analysis, migration assessment, Timescale, TimescaleDB, time-series detection, insert-heavy tables, event logs, audit tables Provides SQL queries to analyze table statistics, index patterns, and query patterns. Includes scoring criteria (8+ points = good candidate) and pattern recognition for IoT, events, transactions, and sequential data.

18

h3-pg

postgis

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

15

supabase

alinaqi

Core Supabase CLI, migrations, RLS, Edge Functions

14

Search skills

Search the agent skills registry