Skip to main content

expand-entity

Adds a NEW FIELD to an EXISTING NeoHaskell entity module backward-compatibly: the record declaration, initialState value, update fold case, and a JSON decoder that still loads OLD snapshots missing the new field. Use whenever a slice needs a field that does not yet exist on an entity, when implement-event-and-update-entity finds a missing field, or when asked to 'add a field to the entity', 'extend the aggregate', or 'add state to the entity' — especially with replay-safety concerns over historical events. Do NOT use to implement a whole new event plus its variant (implement-event-and-update-entity), to design brand-new value objects/ADTs from a failing test (neohaskell-domain-modeling), for general JSON- instance patterns unrelated to entity evolution (neohaskell-records-and-json), or to scaffold a new context (neohaskell-module-layout). This is NeoHaskell; every identifier is grounded in the public testbed Cart and Stock entities plus the Json module source.

Ir para a instalação

Informações da origem

Repositório
neohaskell/skills
Última atividade na origem
1 de julho de 2026 às 14:49
Idioma detectado do SKILL.md
inglês
Estrelas
0
Forks
0

Opções de instalação

Por padrão, está selecionado o prompt que primeiro revisa a origem. Você pode mudar para um comando direto ou baixar uma cópia local.

Revise os arquivos de origem

Leia o SKILL.md e os arquivos complementares exibidos pelo SkillsMP antes de decidir se vai instalar.