enum-plus
Installation
SKILL.md
Enum Plus
Overview
Use Enum(...) when plain constants or native enum are not enough and the task needs labels, metadata, option lists, reverse lookup, or enum-aware typing. Prefer the standard object form in application code because it keeps UI text, metadata, and lookups in one place.
Workflow
- Pick one enum shape and keep it consistent for the whole enum.
- Prefer the standard
{ value, label, ...meta }form unless the task is intentionally simpler. - Use built-in enum methods before writing custom maps or switch statements.
- Read the matching reference file for deeper details.