What problem does it solve? Writing database code in TypeScript often means untyped query results, manual SQL string building, N+1 query problems, and ad-hoc migration handling. This Skill guides an agent to build type-safe database access with Effect's SQL modules, covering validated queries, generated CRUD repositories, batched resolvers, and transactional migrations. ## Core Features & Use Cases - SqlClient tagged-template queries: Write parameterized queries with safe interpolation, insert/update helpers, transactions with automatic savepoints, dialect branching, and streaming for large result sets. - SqlSchema and SqlModel: Validate query inputs and outputs with Effect Schema, define Model classes with select/insert/update/JSON variants, and generate full CRUD repositories including soft deletes. - SqlResolver and 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: When building a PostgreSQL-backed service, use this Skill to define a User model, generate a repository with SqlModel.makeRepository, run migrations with Migrator, and wire everything through a PgClient layer. ## Quick Start Ask the agent to create an Effect SQL repository for a users table with a Model class, migrations, and a PgClient layer using this skill.