搜索

PythonReactSEOPDF
GitHub Skill

sea-dsl-authoring

Author SEA-DSL specifications with proper CQRS annotations, validation, and namespace conventions. Use when creating .sea files with entities, flows, and policies that require @cqrs, @tx, @outbox, and @idempotency annotations following the Flow-only CQRS tagging pattern.

GodSpeedAI☆ 1 仓库 Stars0 仓库 Forks

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

查看来源 ↗使用指南

技能说明

SEA-DSL Authoring Skill

Guides users through authoring semantically valid SEA-DSL files.

Prerequisites

Before authoring SEA-DSL, understand:

  • SEA-DSL grammar from sea_dsl_language_reference.yml
  • CQRS annotation requirements from flow_lint.py
  • Namespace conventions and bounded context boundaries

Workflow

  1. Draft: Create .sea file with proper namespacing
  2. Annotate: Add required annotations to all Flows
  3. Validate: Run just sea-validate <file>
  4. Parse: Run just sea-parse <file> to generate AST
  5. Lint: Run just flow-lint to verify annotations

Required Annotations

Every Flow MUST have:

@cqrs { "kind": "command" | "query" | "event" }

Commands MUST have:

@tx { "transactional": true | false }

Events MUST have:

@outbox { "mode": "required" | "optional" }

Rules

  • Use nested JSON only (no dotted keys like @cqrs.kind)
  • All JSON must be valid
  • Never claim success without validation passing
  • Follow namespace conventions: system.<context>.<name>

Example

@namespace "system.orders"
@version "1.0.0"

Entity "Order" in system.orders

Flow "CreateOrder" from "Customer" to "OrderAggregate"
  @cqrs { "kind": "command" }
  @tx { "transactional": true }
  @idempotency { "enabled": true, "key": "orderId" }

Related Skills

使用示例

查看来源仓库中的使用示例与配置说明。

查看来源 ↗

来源历史

收录时间
2026-01-20
索引更新时间
2026-01-26
Branch
main

收录与同步日期属于本站记录。源码修改历史请查看来源仓库。

GitHub ↗

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!