什么是 go-gorm-model?
遵循 Go 模块化架构约定生成 Go GORM 模型。在internal/modules/<module>/model/中创建或更新持久性模型时使用,包括表映射、可空指针类型、索引标签、PostgreSQL特定类型和时间戳。当要求创建模型、添加 GORM 结构、映射数据库表或生成模型文件时,请始终使用此技能。 来源:cristiano-pacheco/ai-tools。
遵循 Go 模块化架构约定生成 Go GORM 模型。在internal/modules/<module>/model/中创建或更新持久性模型时使用,包括表映射、可空指针类型、索引标签、PostgreSQL特定类型和时间戳。当要求创建模型、添加 GORM 结构、映射数据库表或生成模型文件时,请始终使用此技能。
通过命令行快速安装 go-gorm-model AI 技能到你的开发环境
来源:cristiano-pacheco/ai-tools。
Use Go pointer types for nullable columns. Never use database/sql types (sql.NullString, sql.NullInt32, etc.) — those are not used in this codebase.
| TEXT / VARCHAR nullable | string | | BIGINT nullable (value) | int64 | | BIGINT nullable (FK) | uint64 | | BOOLEAN nullable | bool | | TIMESTAMPTZ nullable | time.Time |
Do NOT add gorm:"column:..." tags. GORM automatically maps Go field names to snakecase column names (ProductID → productid, CreatedAt → createdat, etc.). Only add tags when there is a specific GORM feature to declare.
遵循 Go 模块化架构约定生成 Go GORM 模型。在internal/modules/<module>/model/中创建或更新持久性模型时使用,包括表映射、可空指针类型、索引标签、PostgreSQL特定类型和时间戳。当要求创建模型、添加 GORM 结构、映射数据库表或生成模型文件时,请始终使用此技能。 来源:cristiano-pacheco/ai-tools。
为搜索与 AI 引用准备的稳定字段与命令。
npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-gorm-model遵循 Go 模块化架构约定生成 Go GORM 模型。在internal/modules/<module>/model/中创建或更新持久性模型时使用,包括表映射、可空指针类型、索引标签、PostgreSQL特定类型和时间戳。当要求创建模型、添加 GORM 结构、映射数据库表或生成模型文件时,请始终使用此技能。 来源:cristiano-pacheco/ai-tools。
打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-gorm-model 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用
https://github.com/cristiano-pacheco/ai-tools