·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