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.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
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
-
Draft: Create
.seafile with proper namespacing - Annotate: Add required annotations to all Flows
-
Validate: Run
just sea-validate <file> -
Parse: Run
just sea-parse <file>to generate AST -
Lint: Run
just flow-lintto 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
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-01-26
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!