
Description
golang-database is an agent skill from the samber cc-skills-golang collection that guides a coding agent in writing safe, explicit and observable database code in Go. It treats SQL as a first-class language and avoids ORMs, favouring database/sql, with sqlx or pgx on top for ergonomics. The skill covers parameterised queries, struct scanning, nullable columns, transactions, isolation levels and SELECT FOR UPDATE, and it asks the agent to catch data integrity issues at the boundary of the code rather than deep in the application. It has two modes. Write mode generates repository functions, query helpers and transaction wrappers, following the skill's steps and checking the codebase for existing query patterns and naming first. Review and debug mode audits existing database code for problems such as rows that are never closed, queries built by string concatenation rather than parameters, missing context propagation and unchecked errors. The skill says to consult the official documentation of sqlx or pgx for current API signatures, since those libraries change. It is listed on skills.sh, where the page shows install counts, GitHub stars and security audit results, all passing. Install it with npx skills add https://github.com/samber/cc-skills-golang --skill golang-database.…
Highlights
- Parameterised queries and struct scanning
- Nullable columns and transactions
- Isolation levels and SELECT FOR UPDATE
- Write and review or debug modes
- Avoids ORMs, uses database/sql
- Installs from skills.sh
Ratings & Reviews
No ratings yet
Be the first to rate golang-database.
People also visit

sql-code-review
Comprehensive SQL security, performance, and quality analysis across MySQL

postgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing

go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context
golang-database FAQ
What does this skill cover?
Go database access: parameterised queries, struct scanning, nullable columns, transactions, isolation levels and row locking.
Does it recommend an ORM?
No. The skill says to use database/sql, with sqlx or pgx on top for ergonomics, and never an ORM.
What does review mode check?
Rows that are never closed, unparameterised queries, missing context propagation and absent error checks.
How do I install it?
Run npx skills add https://github.com/samber/cc-skills-golang --skill golang-database.
What are the security audit results?
skills.sh lists three audits: Gen Agent Trust Hub Pass, Socket Pass and Snyk Pass.
How popular is it?
The page shows about 38.9K installs, and the cc-skills-golang repository has 3.5K GitHub stars.
What are the best golang-database alternatives?
Popular alternatives to golang-database include sql-code-review, sql-pro and mysql-patterns. See all golang-database alternatives



