·go-gorm-model
</>

go-gorm-model

遵循 Go 模块化架构约定生成 Go GORM 模型。在internal/modules/<module>/model/中创建或更新持久性模型时使用,包括表映射、可空指针类型、索引标签、PostgreSQL特定类型和时间戳。当要求创建模型、添加 GORM 结构、映射数据库表或生成模型文件时,请始终使用此技能。

25安装·0热度·@cristiano-pacheco

安装

$npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-gorm-model

如何安装 go-gorm-model

通过命令行快速安装 go-gorm-model AI 技能到你的开发环境

  1. 打开终端: 打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等)
  2. 运行安装命令: 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-gorm-model
  3. 验证安装: 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

来源:cristiano-pacheco/ai-tools。

SKILL.md

查看原文

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
分类
</>开发工具
认证
收录时间
2026-02-25
更新时间
2026-03-11

Browse more skills from cristiano-pacheco/ai-tools

快速解答

什么是 go-gorm-model?

遵循 Go 模块化架构约定生成 Go GORM 模型。在internal/modules/<module>/model/中创建或更新持久性模型时使用,包括表映射、可空指针类型、索引标签、PostgreSQL特定类型和时间戳。当要求创建模型、添加 GORM 结构、映射数据库表或生成模型文件时,请始终使用此技能。 来源:cristiano-pacheco/ai-tools。

如何安装 go-gorm-model?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/cristiano-pacheco/ai-tools --skill go-gorm-model 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code、Cursor 或 OpenClaw 中使用

这个 Skill 的源码在哪?

https://github.com/cristiano-pacheco/ai-tools

详情

分类
</>开发工具
来源
skills.sh
收录时间
2026-02-25