Skip to main content

implement-query

Implements a NeoHaskell QUERY / read-model module at Queries/Name.hs — the record, Json and ToSchema instances, canAccess and canView auth functions, the deriveQuery macro, and a hand-written QueryOf instance whose combine returns Update, NoOp, or Delete. Use in the GREEN phase after neohaskell-domain-modeling stubbed the types and write-unit-tests left a failing Projection spec. Also use when asked to add a read model, implement or fill in combine logic, replace a projection panic stub, handle a verified query node, or set up per-instance access control. Both canAccess and canView are required — deriveQuery fails to compile if either is missing. Do NOT use for the command/decide module (implement- command), the event payload (implement-event-and-update-entity), the integration handler (implement-integration), or wiring (wire-feature). This is NeoHaskell — IO, Data.Aeson, Either, and unqualified list functions are all wrong here.

跳到安装

来源信息

仓库
neohaskell/skills
最近来源活动
2026年7月3日 11:07
检测到的 SKILL.md 语言
英语
星标
0
分支
0

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。