Go Create Gorm Model

🌐Community
by cristiano-pacheco · vlatest · Repository

Helps with Go, creation, data modeling as part of agent workflows workflows.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add go-create-gorm-model npx -- -y @trustedskills/go-create-gorm-model
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "go-create-gorm-model": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/go-create-gorm-model"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

This skill allows you to generate GORM models in Go based on a provided schema. It takes a description of your desired database model, including fields and types, and outputs the corresponding Go code for that model definition. This simplifies database interaction by automating the creation of data structures representing your tables.

When to use it

  • You need to quickly generate GORM models for new database tables in a Go project.
  • You're prototyping a database schema and want to see the corresponding Go representation.
  • You are refactoring existing code and need to create or update GORM model definitions.
  • When you want to automate repetitive tasks of creating database models.

Key capabilities

  • Generates GORM model code from schema descriptions.
  • Supports defining fields with various data types.
  • Automates the creation of Go structs representing database tables.

Example prompts

  • "Create a GORM model for a 'product' table with fields: id (integer, primary key), name (string), price (float64)."
  • "Generate a GORM model for a 'user' table including email (string, unique), password (string), and created_at (timestamp)."
  • “Create a GORM model for an ‘order’ table with fields: order_id (integer, primary key), customer_id (integer), total_amount (decimal).”

Tips & gotchas

The skill requires familiarity with Go and the GORM library. Providing clear and specific schema descriptions will result in more accurate and usable generated code.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
cristiano-pacheco
Installs
4

🌐 Community

Passed automated security scans.