Go Create Gorm Model
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.
Run in terminal (recommended)
claude mcp add go-create-gorm-model npx -- -y @trustedskills/go-create-gorm-model
Or manually add to ~/.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 Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.