agentleFS
gabriellstgabriellst/codm/.claude/skills/event/SKILL.md

event

Skill4 starsChanged 2 months agoMITView on GitHub

Create a domain or integration event. Use when something significant happens that other parts of the system need to know about. Use this skill for domain events (same context, InternalMediator) and integration events (cross-context, ExternalMediator). Dispatch hub — routes to typescript/go variants by file extension.

Files
SKILL.md

Event

A past-tense fact. Domain events stay inside one bounded context and trigger same-context handlers. Integration events cross context or service boundaries and are published via the outbox. Both carry a typed payload.

The shape and idioms of this primitive differ per backend language; the lang-specific playbooks below carry the concrete rules, code, and bad practices.

Ativação — qual mecanismo (decisão do founder, 29-jul-2026)

Precisa de…MecanismoGarantiaQuem entrega
"isto aconteceu, quem quiser reage" (fato, auditoria, event sourcing)outbox — domain event no contexto; integration event pelo publisher nomeadodurável, at-least-once, fan-outdispatcher/poller do outbox
"isto precisa acontecer, com retry, e alguém é o único executor"CommandQueue — enqueueCommand(nome, input, opts, tx) na transação do fatodurável, retry+backoff, lease, dead-lettero worker que registrou o comando
"turnos serializados por target"Mailbox — produtores só ENFILEIRAM, sempre na transação do fatodurável, um turno por target de cada vezo MailboxDispatcher (consumidor único)
"síncrono, nesta request"use case chamado diretoa transação da própria requesto chamador

A regra de intenção: evento existe para fins reativos, auditoria ou event sourcing — nunca para comandar. Se a existência do evento é só para um handler executar algo que poderia ser um comando/use case direto, está errado. Nomes *Requested não são proibidos por si; a intenção é o critério. Enforcement: cc-bp-26 (cross-cutting, warning), handler bp-09 / bp-GO-HDL-07, EVT-C11 / EVT-GO-09, UC-P16.

Language variants

BackendPlaybookRegistry
TypeScript — packages/api/typescript/typescript/SKILL.mdtypescript/registry.yaml
Go — packages/api/go/go/SKILL.mdgo/registry.yaml

How dispatch works

scripts/review.ts infers the language from the file extension (.ts / .go) and loads the matching <lang>/registry.yaml. The CLI scaffolder takes a --lang flag (--lang=typescript / --lang=go) or infers it from cwd. When editing or reviewing code, open the lang playbook matching the file you're touching — patterns and bad practices are coded per-language (e.g. EVT-GO-01).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.