new-column
conventions for new columns
Install / Use
npx skills add majiayu000/claude-skill-registryInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Data & AnalyticsSupported Platforms
Skill content
View source on GitHubname: new-column description: conventions for new columns
Be sure all database fields are snake_case Be sure all sub structs that are in jsonb collumns are also snake_case Be sure to not use booleans for fields, use smallint 0/1
Struct Tag Annotations
Critical: Struct tags control database migrations and constraints. Include all relevant tags:
Name *fields.StringField `column:"name" type:"text" default:"":"false"`
Email *fields.StringField `column:"email" type:"text" default:"" unique:"true"`
Age *fields.IntField `column:"age" type:"integer" default:"0" null:"true"`
Status *fields.IntConstantField[Status] `column:"status" type:"smallint" default:"1"`
Settings *fields.StructField[*Settings] `column:"settings" type:"jsonb" default:"{}"`
Available Tags:
column:"name"– Database column name (required)type:"text|jsonb|smallint|integer|uuid|date|datetime|bigint"– Database column type (required) note that all 'boolean' type things should be a smallint 0/1default:"value/null"– Default value for columnnull:"true"– Whether column allows NULL, dont add if not nullableunique:"true"– Whether column has unique constraint, dont add if not uniqueindex:"true"– Whether to create index on column, dont add if not indexedpublic:"view|edit"- For public endpoints, determines whether or not the field is returned (view or edit) or on updates if its editable by the user (edit), dont add if not public facing- IMPORTANT - for all UUID fields, they must have
default:"null" null:"true"
Field Types
StringField– Text/string columnsUUIDField– UUID columnsIntField– Integer columns / Bool fields with smallint 0/1 valuesDecimalField– Decimal/numeric columnsIntConstantField[T]– Enum/constant fieldsStructField[T]– JSONB/struct columns
All fields provide .Set(val) and .Get() methods. Struct fields have a .GetI() for when errors do not need to be checked
Related Skills
Chat2DB
28.2kChat2DB is a free, cross-platform, local-first database client and SQL workspace for developers, DBAs, analysts, and data teams. Connect to 40+ databases, manage data, edit and run SQL, and use your own AI model to generate, explain, and optimize queries.
dbx
20.4k25 MB lightweight cross-platform database client for 90+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker.
genoffice
7.4kFree, open-source AI Office suite: Docs, Sheets, Slides, PDF, Markdown and HTML editors with a built-in AI agent, plus a `genoffice` CLI and agent skill so Claude Code, Codex and Cursor can create and edit real .docx/.xlsx/.pptx files locally. Bring your own key. macOS, Windows & Linux.
tabularis
5.0kOpen-source desktop SQL workspace with 3 built-in database drivers and 16 shipped plugins, including SQL Server, DuckDB, ClickHouse and Redis. Built-in MCP server for Claude, Cursor and Devin, SQL notebooks and visual EXPLAIN.
Security Score
Audited on Invalid Date
