model-conventions

Community

Enforce safe, consistent model field conventions.

Authorgriffnb
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Standardize model field definitions and struct tag usage across the codebase.

Core Features & Use Cases

  • Database Field Naming: enforce snake_case for database fields via struct tags.
  • JSONB Sub-Structs: ensure JSON tags use snake_case in nested structures.
  • Boolean Values Guideline: store booleans as smallint 0/1 and provide default handling.
  • Struct Tag Annotations: comprehensive set of tags to guide migrations and constraints.
  • Use Case: when adding a new model or updating an existing one, apply these conventions to ensure consistency and correctness.

Quick Start

Apply these conventions when defining a new model to ensure correct column names, JSON tags, and migration metadata.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 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: model-conventions
Download link: https://github.com/griffnb/claude-plugins/archive/main.zip#model-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 223,000+ vetted skills library on demand.