The Backend Model Conventions skill provides a comprehensive framework for defining data models in Go, ensuring consistency across database schemas and application code. It automates the application of strict naming conventions (snake_case), optimizes boolean storage using smallint types, and mandates specific struct tag patterns for migrations and public API visibility. By formalizing method receivers and file organization, this skill helps developers maintain thread-safe, scalable, and highly readable backend architectures while leveraging automated code generation tools.
주요 기능
01Defines structured file organization for queries, migrations, and model logic
02Standardizes snake_case naming for database columns and JSON mappings
03Provides comprehensive struct tag reference for migrations and constraints
040 GitHub stars
05Enforces smallint patterns for boolean storage to ensure database compatibility
06Mandates pointer receivers with standardized 'this' naming for model methods
사용 사례
01Architecting a new Go-based backend with consistent database schema patterns
02Setting up automated code generation for internal and public-facing data objects
03Refactoring existing models to meet enterprise-grade thread-safety and naming standards