返回 Skill 列表
extension
分类: 开发与工程无需 API Key

sea-flow-annotations

强制执行仅限Flow的CQRS标记和推荐的元数据。

person作者: jakexiaohubgithub

SEA™ Flow annotation contract

Mandatory

Every Flow includes:

@cqrs { "kind": "command" }

Recommended templates

Command:

@cqrs { "kind": "command" }
@tx { "transactional": true }
@idempotency { "enabled": true, "key": "header:X-Idempotency-Key" }

Event:

@cqrs { "kind": "event" }
@outbox { "mode": "required" }

Query:

@cqrs { "kind": "query" }
@read_model { "name": "CustomerSummary" }

Rules

  • JSON must be valid
  • Use nested JSON only