What problem does it solve? Writing database access code in TypeScript often means untyped query results, manual SQL string building, N+1 query problems, and ad-hoc migration handling. This Skill provides expert guidance for building type-safe SQL layers with the Effect v4 SQL modules, covering everything from raw queries to full CRUD repositories. ## Core Features & Use Cases - SqlClient Tagged Templates: Build parameterized queries with safe interpolation, insert/update helpers, transactions with automatic savepoints, and dialect branching for PostgreSQL, MySQL, SQLite, MSSQL, and ClickHouse. - SqlSchema & SqlModel: Validate query inputs and outputs with Effect Schema, define Model classes with select/insert/update/JSON variants, and generate complete CRUD repositories with soft-delete support. - SqlResolver & Migrator: Batch requests to eliminate N+1 queries with ordered, findById, grouped, and void resolvers, and run sequential transactional migrations from filesystem, glob, or inline loaders. - Use Case: You are building a PostgreSQL-backed service in Effect. Use this Skill to define a User model with branded IDs and auto-timestamps, generate a repository with SqlModel.makeRepository, batch lookups with resolvers, and wire up migrations through the PgClient layer. ## Quick Start Ask the assistant to create an Effect SQL repository for a users table with a Model class, CRUD operations, and a migration file using the PgClient layer.