gorm-conventions

Community

Leverage GORM conventions for effortless models

Authorliurida
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It removes the guesswork of how GORM maps Go structs to database tables, columns, primary keys, and timestamps, enabling developers to write concise models without manual configuration.

Core Features & Use Cases

  • Default Naming Insight: Understand how GORM converts struct and field names to snake_case tables and columns, and when it automatically adds primary key and timestamp fields.
  • Override Guidance: Learn how to customize table names with the Tabler interface, change column names via tags, and adjust timestamp behavior.
  • NamingStrategy Configuration: Apply project‑wide naming rules such as table prefixes, singular table names, and custom replacers.
  • Use Case: When onboarding a new Go service that uses GORM, quickly determine the expected database schema for existing structs or decide how to enforce your organization’s naming standards.

Quick Start

Ask the skill: “What table name does GORM assign to a struct named User?”

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

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.