go-repository-pattern

Community

Go repositories: sqlc, in-memory, migrations.

Author333-333-333
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Cloud-agnostic persistence layer for Go services, combining sqlc-based repositories with clear domain ports, in-memory paths for tests, and migration conventions to keep data access consistent across backends.

Core Features & Use Cases

  • Provides a domain-driven repository interface and sqlc-backed adapters for Postgres, plus an in-memory implementation for local development and unit tests.
  • Includes migrations and a wired configuration to switch between backends without changing domain logic.
  • Designed for scalable data access layers across services, enabling easy swapping of storage backends.

Quick Start

Create a new skill under skills/go-repository-pattern following the provided template and wire it to switch between memory and Postgres backends as demonstrated in wiring.go.

Dependency Matrix

Required Modules

None required

Components

assets

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-repository-pattern
Download link: https://github.com/333-333-333/agents/archive/main.zip#go-repository-pattern

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.