Go CLI SQL Storage
Design, implement, test, and ship SQL-backed persistence for Go CLIs using database/sql, explicit pool ownership, bounded startup checks, embedded migrations, transaction boundaries, parameterized queries, adapter error mapping, Scanner and Valuer types, SQLite or server databases, and real-driver integration tests. Use when a Go command stores durable state in SQL, initializes a local database, applies schema changes, or needs safe repository and transaction behavior.
Gov0.2.0MITgogolangclisqldatabasestorage
Install
npx skills add LVTD-LLC/skills --skill go-cli-sql-storageFrom `SKILL.md`
Treat `*sql.DB` as a long-lived pool owned by the composition root. Keep SQL, driver behavior, migrations, and sensitive connection details inside adapters.