What problem does it solve?
This Skill helps you write, review, and debug Go database code that is safe, explicit, and production-ready, especially when working with SQL-backed services.
Core Features & Use Cases
- Query Safety: Uses parameterized SQL, context-aware calls, and explicit error handling to reduce injection risk and improve reliability.
- Transaction Handling: Covers BeginTxx patterns, rollback safety, isolation levels, and row locking for multi-step operations.
- Performance and Data Handling: Guides connection pool tuning, batching, cursor pagination, and nullable field scanning with sqlx or pgx.
- Use Case: Apply it when building a repository layer for a Go API that needs correct reads and writes, clean transaction boundaries, and predictable database behavior in production.
Quick Start
Use this Skill to review or generate Go database code that follows safe SQL practices, transaction patterns, and production-grade pool and scanning conventions.