repository-adapters

Installation
SKILL.md

Repository adapters

Use this skill when

  • Adding a repository method, changing a query, or touching an adapter between domain and DB.
  • Mapping DB-specific errors to domain errors at the adapter boundary.
  • Adding support for a new DB dialect to an existing repository interface.

Do not use this skill when

  • The work is the migration itself (use database-migrations).
  • The main risk is Cloudflare D1 runtime query performance without schema changes; use cloudflare-d1-query-tuning.
  • The change is above the adapter layer (services, handlers, or HTTP contracts).

Inputs to gather

  • The domain interface definition and every adapter that implements it.
  • The generator in use (sqlc, gorm gen, etc.) and its regeneration command.
  • Which DB dialects are mandatory vs optional in this repository.
Installs
5
GitHub Stars
4
First Seen
Sep 1, 2026