database column setup. Use when you need to create or update a database column
/plugin marketplace add griffnb/claude-plugins/plugin install backend@claude-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
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
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:"{}"`
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 facingdefault:"null" null:"true"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 columnsAll fields provide .Set(val) and .Get() methods. Struct fields have a .GetI() for when errors do not need to be checked
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.