Backend Enum Use

SKILL.md

Backend Enum Use

When to use this skill

  • When converting hardcoded strings or magic numbers to type-safe enums
  • When creating categorical data types (statuses, types, roles, categories, etc.)
  • When adding enum-based validation to forms, API requests, or database columns
  • When refactoring magic strings into structured, type-safe types
  • When defining a fixed set of allowed values for a field or property
  • When implementing state machines or workflow statuses
  • When working on files in app/Enums/ directory
  • When creating enum classes with helper methods (label(), description(), etc.)
  • When adding enum casts to Eloquent models
  • When implementing Laravel validation rules for enum values
  • When writing tests for enum functionality and transitions

This Skill provides Claude Code with specific guidance on how to adhere to coding standards as they relate to how it should handle backend enum use.

Instructions

For details, refer to the information provided in this file: backend enum use

Weekly Installs
0
First Seen
Jan 1, 1970