repository-adapters

Modify database repository adapters using sqlc-generated SQLite queries.

allowed_tools: Bash(git:*) Bash(make:*) Bash(go:*) Bash(sqlc:*) Read

$ Installieren

git clone https://github.com/matt-riley/mjrwtf /tmp/mjrwtf && cp -r /tmp/mjrwtf/.github/skills/repository-adapters ~/.claude/skills/mjrwtf

// tip: Run this command in your terminal to install the skill


name: repository-adapters description: Modify database repository adapters using sqlc-generated SQLite queries. license: MIT compatibility: Requires bash, git, Go, and sqlc v1.30.0+. metadata: repo: mjrwtf runner: github-copilot-cli version: 1.2 allowed-tools: Bash(git:) Bash(make:) Bash(go:) Bash(sqlc:) Read

Repo conventions

  • Domain interfaces live in internal/domain/**/repository.go.
  • Implementations live in internal/adapters/repository/.
  • Do not edit generated code under internal/adapters/repository/sqlc/**.

Making a change

  1. Update internal/adapters/repository/sqlc/sqlite/queries.sql
  2. Regenerate:
make generate
  1. Update adapters in internal/adapters/repository/*.go.
  2. Verify:
make test