gorm-repository

Community

GORM ORM & repository patterns in Go

Authorbaphled
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines database interactions in Go applications by implementing the repository pattern over the GORM ORM, ensuring maintainable and testable data access layers, especially when using SQLite.

Core Features & Use Cases

  • Repository Pattern Implementation: Abstracts GORM logic behind clean interfaces for better testability.
  • Model Definitions: Defines GORM models with complex tags, constraints, and associations.
  • CRUD Operations: Provides standard Create, Read, Update, Delete operations.
  • Advanced GORM Features: Leverages scopes, preloading, and transactions for efficient and consistent data management.
  • Use Case: When building a Go web service that needs to interact with a SQLite database, use this skill to define your user models, implement a UserRepository interface, and handle all database operations through it, ensuring data integrity with transactions.

Quick Start

Use the gorm-repository skill to create a new user record in the database using the provided user object.

Dependency Matrix

Required Modules

None required

Components

references

💻 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: gorm-repository
Download link: https://github.com/baphled/dotopencode/archive/main.zip#gorm-repository

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.