type-enum-dict
Type / Enum / Dict Skill
This skill covers three tightly-related artifacts created together whenever a domain concept needs a constrained string type at compile time and/or at runtime.
The three artifacts
Type (src/type/T{Name}.ts)
Pure TypeScript — no runtime value. Three variants:
String union — for finite known values:
type TPublishState = "draft" | "published";
export default TPublishState;
Template literal — for structured string shapes validated statically by the type system:
type TSimpleDate = `${number}-${number}-${number}`;
export default TSimpleDate;
More from efesto-cloud/lib
usecase
>
3observer
Use when writing or reviewing Observable code from the @efesto-cloud/observable package.
3entity
Create or modify domain entities using the @efesto-cloud/entity package. Use this skill whenever the user asks to add a new entity, update an existing entity, add properties or methods to an entity, or work on the entity/dto layer. Trigger when the user says things like "create a Foo entity", "add a field to Bar", "I need a new domain object", or "add entity X". Also trigger for DTO creation or modification.
3persistence
>
3monad-maybe
Use when writing or reviewing code that returns Maybe<T> from the @efesto-cloud/maybe package.
3value-object
|
3