gorm-write-plugins

Community

Extend GORM with reusable plugins and callbacks.

Authorliurida
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill enables developers to extend GORM by creating reusable plugins that register custom callbacks and alter core behaviors in a centralized, maintainable way.

Core Features & Use Cases

  • Plugin interface and lifecycle: Implement the gorm.Plugin interface and initialize it to hook into GORM's lifecycle.
  • Callback customization: Register, order, and manage callbacks to customize Create, Query, Update, and Delete flows across apps.
  • Global extensibility: Attach plugins at the gorm.DB level to apply consistent behavior across environments with db.Use.
  • Example: Build a plugin that enforces a naming convention or logs operations globally for audits.

Quick Start

Register a plugin by implementing the Plugin interface and registering it with your DB via db.Use(&MyPlugin{}), then initialize callbacks in the Initialize method.

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-write-plugins
Download link: https://github.com/liurida/gorm-development-skill/archive/main.zip#gorm-write-plugins

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 471,000+ vetted skills library on demand.