What problem does it solve? Go developers often write database code with subtle bugs: leaked connections from unclosed rows, SQL injection from string concatenation, missing context propagation, and race conditions from unlocked reads. This Skill encodes battle-tested rules for safe, explicit database access in Go. ## Core Features & Use Cases - Safe Query Patterns: Enforces parameterized queries, context propagation, explicit sql.ErrNoRows handling, and proper rows.Close() discipline. - Transactions & Locking: Covers BeginTxx/defer Rollback/Commit, isolation levels, and SELECT FOR UPDATE for race-free read-modify-write flows. - Performance Guidance: Connection pool sizing, batch inserts (100–1000 rows), pgx COPY protocol, and cursor-based pagination instead of OFFSET. - Use Case: When asked to write a funds-transfer function, the Skill produces a serializable transaction with SELECT FOR UPDATE and deferred rollback instead of naive sequential updates. ## Quick Start Ask the AI to write or review a Go repository function that queries PostgreSQL with sqlx, and it will apply parameterized queries, context propagation, and proper error handling.