go-enum

Community

Type-safe Go enums with validation.

Authorcristiano-pacheco
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill streamlines the creation of type-safe enumerations in Go, ensuring data integrity and reducing runtime errors by enforcing valid enum values.

Core Features & Use Cases

  • Type Safety: Define enums as distinct types, preventing the use of arbitrary strings.
  • Built-in Validation: Automatically validates input strings against predefined enum values.
  • Use Case: When defining user roles (e.g., 'admin', 'editor', 'viewer') or status codes (e.g., 'pending', 'processing', 'completed'), this skill ensures only valid options are used, preventing bugs.

Quick Start

Generate a new Go enum for the 'monitor' module with values 'email' and 'webhook' named 'ContactType'.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-enum
Download link: https://github.com/cristiano-pacheco/ai-tools/archive/main.zip#go-enum

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.