new-column

Creates Go database column schemas with validated snake_case jsonb struct tags and migration-ready definitions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/griffnb/claude-plugins --skill new-column
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: new-column
Source: https://github.com/griffnb/claude-plugins/tree/main/plugins/backend/skills/db-new-column
Command: npx skills add https://github.com/griffnb/claude-plugins --skill new-column

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps developers create or update database columns with consistent snake_case naming, enforce proper jsonb sub-struct tagging, and require smallint 0/1 for booleans.

Core Features & Use Cases

  • Schema consistency: Enforces column naming and type conventions across models.
  • Tag annotations: Validates required struct tags (column, type, default, null, unique, index).
  • Migration readiness: Guides migration-ready definitions for add/modify operations.

Quick Start

Define or adjust a database column in your Go models using the new-column rules.

Frequently Asked Questions about new-column

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create database column schemas with Go struct tags?

To create database column schemas with Go struct tags, you define or adjust your model fields using specific tag annotations. This enforces consistent snake_case naming and validates required metadata like column, type, default, and null constraints.

What is the best way to handle boolean fields in Golang database migrations?

Handling boolean fields in Golang database migrations requires mapping them to smallint 0/1 values. This ensures schema consistency and prevents type mismatch errors when interacting with the database layer.

How do I enforce snake_case naming conventions for jsonb sub-structs in Go?

To enforce snake_case naming for jsonb sub-structs in Go, you apply specific struct tag rules during schema design. This validates the tag metadata and ensures proper jsonb sub-struct tagging across all models.

What struct tags do I need for migration-ready database columns?

Migration-ready database columns require validating specific Go struct tags: column, type, default, null, unique, and index. Documenting this tag metadata ensures your definitions are ready for add or modify migration operations.

Does this approach work for services using jsonb fields and snake_case naming?

Yes, this approach is designed specifically for services using jsonb fields and snake_case naming. It applies to schema design and migrations by validating and documenting tag metadata to ensure database schema consistency.