Go Db banner
dsjacobsen dsjacobsen

Go Db

Data community

Description

--- name: go-db description: Design or implement database/sql + pgx repositories, queries, and transactions --- Work on database access in this Go codebase. Ask for: 1. **Schema context** - table(s), columns, constraints (or migration snippets) 2. **Operations needed** - CRUD/list/search, filters, ordering, pagination 3. **Transaction needs** - what must be atomic 4. **Error expectations** - not found vs conflict vs validation Use the `go-db-builder` agent to implement: - Repository interface

Installation

Installs to ~/.claude/commands/dsjacobsen-agent-resources-go-db.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/dsjacobsen/agent-resources/HEAD/.claude/commands/go-db.md -o ~/.claude/commands/dsjacobsen-agent-resources-go-db.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository