Skip to content
Back to skills

Architecture

ASecurity

Rules for events as data contracts — CloudEvents envelope, schema registry checks, compatibility rules and AsyncAPI documentation. Use when event schemas change or several teams consume the same topics.

  • 24 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 14, 2026
ai-agentsgoapisecuritydocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 22, 2026

npx -y skills add andreibesleaga/GABBE --skill architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/andreibesleaga-architecture-ac029d42/badge)](https://www.skillsdirectory.com/skills/andreibesleaga-architecture-ac029d42)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: event-governance
description: Rules for events as data contracts — CloudEvents envelope, schema registry checks, compatibility rules and AsyncAPI documentation. Use when event schemas change or several teams consume the same topics.
triggers: [event governance, schema registry, cloudevents, asyncapi, avro schema evolution]
tags: [architecture]
role: prod-architect, eng-data
context_cost: low
---
# event-governance Skill

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

## Steps
## 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": "2020-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.

## Constraints
- Payloads are validated against the registry before publishing.
- A breaking change needs a new topic version.

## Output Format
The CloudEvents envelope definition, the registry schemas and an AsyncAPI document of the topics.

## Limits and safety
- Publishing a schema version goes through review. If your platform provides CI approval or registry access control, use it so nobody changes a schema silently.
- Never make fields needed for authorization (tenant id, role) or compliance (consent timestamps) optional, and never drop them through schema evolution.
- Dead letter queues have the same access and retention rules as the main topic.
- Every AsyncAPI document has `securitySchemes`; check with grep.
- Events that cross a boundary use authenticated transport, and sensitive fields are encrypted.

Files in this skill

  • adaptive-architecture.skill.md3.7 KB
  • api-design.skill.md4.7 KB
  • api-standards.skill.md1.7 KB
  • arch-debt.skill.md8.2 KB
  • arch-design.skill.md12.6 KB
  • arch-patterns.skill.md3.9 KB
  • arch-review.skill.md14.1 KB
  • architecture-governance.skill.md3.6 KB
  • attribute-driven-design.skill.md7.5 KB
  • blockchain-dlt.skill.md1.9 KB
  • compatibility-design.skill.md3.6 KB
  • critical-systems-arch.skill.md2 KB
  • design-patterns.skill.md4.3 KB
  • diagramming.skill.md13.9 KB
  • domain-model.skill.md12.1 KB
  • enterprise-migration-scenario.skill.md2 KB
  • enterprise-patterns.skill.md1.9 KB
  • error-handling-strategy.skill.md3.9 KB
  • event-driven-architecture.skill.md1.8 KB
  • event-governance.skill.md3.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.