Agent skill

event-governance

Schema Registry enforcement (Avro/JSON), CloudEvents standard, and Event Evolution rules.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/architecture-andreibesleaga-gabbe-5

SKILL.md

event-governance Skill

Events are Data Contracts. They must be governed as strictly as APIs.

1. CloudEvents Standard

Use the standard envelope structure:

json
{
  "specversion": "1.0",
  "type": "com.example.order.created",
  "source": "/service/order",
  "id": "A234-1234-1234",
  "time": "20.2.01-01T12:00:00Z",
  "datacontenttype": "application/json",
  "data": { ... }
}

2. Schema Registry

  • Rule: All event payloads must be validated against a Schema Registry (e.g., Confluent, Glue) before publishing.
  • Formats: Avro (preferred for compact/evolution), Protobuf, or JSON Schema.

3. Schema Evolution (Compatibility)

  • Backward Compatibility: New consumer can read old data. (Add optional fields).
  • Forward Compatibility: Old consumer can read new data. (Ignore unknown fields).
  • Full Compatibility: Both.
  • Breaking Changes: renaming fields, changing types. Forbidden without a new topic version (orders.v2).

4. Documentation

  • Use AsyncAPI to document event topography.
  • Treat Events as Public APIs.

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results