Go Create Enum

🌐Community
by cristiano-pacheco · vlatest · Repository

Helps with Go, creation 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-enum npx -- -y @trustedskills/go-create-enum
2

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

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

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

About This Skill

What it does

This skill allows AI agents to generate Go enums based on provided definitions. It can create enums with associated values, and handle different enum types like string or integer. The resulting code is ready to be integrated into Go projects.

When to use it

  • Generating a set of allowed states for a game logic system.
  • Creating an enumeration of error codes for a backend service.
  • Defining a list of supported file formats in a data processing pipeline.
  • Automating the creation of enums based on configuration files or external data sources.

Key capabilities

  • Enum generation with string values
  • Enum generation with integer values
  • Handles enum definitions from text input

Example prompts

  • "Create a Go enum called 'Color' with values Red, Green, and Blue."
  • "Generate an enum named 'LogLevel' with the following integer values: 10 for Debug, 20 for Info, 30 for Warning, 40 for Error."
  • "I need a Go enum for supported database types: MySQL, PostgreSQL, SQLite. Please generate it."

Tips & gotchas

The skill requires a basic understanding of Go syntax and enums to properly interpret the generated code. Ensure the provided values are valid and consistent with the desired enum type (string or integer).

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
8

🌐 Community

Passed automated security scans.