AGENT SKILL

event-schema-architect

Architect-level event schema design — event naming and payload shape, schema registry and compatibility modes, versioning and deprecation, ownership across producers and consumers, and the contract tests that stop a producer from breaking a consumer silently. Use when many systems exchange events.

License 许可
MIT
最近更新
2026-11-13
Stars
★ 0
Forks
0

01 前言 Front Matter

name
event-schema-architect
license
MIT
metadata
{ "crusor-path": "data-engineering-architect/event-streams-architect/event-schema-architect", "crusor-domain": "data-engineering-architect", "crusor-origin": "original", "crusor-sources": "docs.confluent.io/platform/current/schema-registry/fundamentals; buf.build/docs; cloudevents.io", "crusor-triggers": "event schema, schema registry, avro, protobuf, compatibility mode, event versioning, cloudevents, contract test, event contract", "crusor-verified-on": "2026-10-30" }
description
Architect-level event schema design — event naming and payload shape, schema registry and compatibility modes, versioning and deprecation, ownership across producers and consumers, and the contract tests that stop a producer from breaking a consumer silently. Use when many systems exchange events.
compatibility
Avro/Protobuf/JSON Schema, Confluent Schema Registry, Buf

03 SKILL.md 正文

Event Schema Architect

An event schema is a public API with an audience you cannot enumerate. Treat every field as if a stranger depends on it — usually one does.

When to use

  • Multiple producers and consumers exchange events.
  • Schema changes have broken consumers.
  • Designing an event-driven integration between teams.

When NOT to use

  • A single internal topic with one consumer in the same deploy.
  • Request/response APIs — that is an API contract, not an event.

Decision 1 — Event shape

  • Name in the past tense: OrderPlaced, InvoicePaid — events are facts.
  • Envelope: id, type, version, occurred_at, producer, trace/correlation id, key.
  • Payload: only what the event means, plus ids consumers need to fetch more.
  • Never put a full mutable entity dump in an event; consumers will depend on fields that change for unrelated reasons.

Decision 2 — Registry and compatibility

Mode Allows
backward consumers on new schema read old data
forward old consumers read new data (new fields optional)
full both
none chaos
  • Backward-compatible by default for data topics; full for shared/platform topics.
  • Additive optional fields with defaults are safe; removing, renaming, or changing types is not.
  • Schema ids travel with the payload; consumers must resolve by id, not by guessing.

Decision 3 — Versioning

  • A major version (v2 field or topic suffix) for breaking changes, with both live during migration.
  • Deprecate fields explicitly with a date and a consumer list; silent removal is an outage scheduled for later.
  • Document the "blueprint": event name, fields, meaning, owner, retention.
  • Keep a compatibility test in CI that fails on a breaking change.

Decision 4 — Ownership

  • One producer owns the schema; consumers register their interest.
  • A schema change requires: compatibility check, consumer test, migration plan for breaking changes.
  • Platform teams own the registry and compatibility policy, not the event semantics.

Decision 5 — Contract tests

  • Producer side: validate the serialised event against the registered schema.
  • Consumer side: run the consumer against a recorded sample of real events (new and old) in CI.
  • Replay a month-old sample after a schema change — that is the test that catches reality.

Failure modes at scale

  • Field renamed with the same type; consumers silently get nulls.
  • Registry in none mode; a breaking change merged on a Friday.
  • Enum added without a default; old consumers crash on unknown value.
  • Events carrying full entity snapshots; every producer change ripples.
  • No contract test; discovery happens in production at 3 a.m.

Verification receipts

  1. Event catalogue with name, envelope, owner, version.
  2. Registry compatibility mode configured per subject.
  3. CI check rejecting a deliberately breaking schema change.
  4. Consumer replay test against a month-old event sample.
  5. Deprecation record with dates and affected consumers.

04 同仓库更多 Skills

SriAkhilSJ
SriAkhilSJ/PulseAIRepo

interaction-patterns-architect

Architect-level interaction design in code — choosing established patterns over invented ones, feedback and latency behaviour, destructive-action safeguards, navigation and overlay conventions, and the state model behind every interactive surface. Use when a screen has to behave, not just look.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

design-system-ops-architect

Architect-level operation of a design system in code — token pipelines and versioning, component API and variant policy, the catalogue as the contract, adoption metrics, and the governance that stops a system from forking into three. Use when a component library must survive several teams.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

design-handoff-architect

Architect-level design handoff — what must be specified before implementation starts, tokens over raw values, responsive and content-limit contracts, state matrices, and the review loop that catches drift between design and code. Use when a design is about to become code.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

content-microcopy-architect

Architect-level UI content — where strings live, voice and terminology consistency, error and empty-state copy as part of the interface, translation-ready authoring, and the content model a product needs before it multiplies screens. Use when the words in the interface matter as much as the pixels.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

ui-ux-implementation-architect

Architect-level direction for turning a design into working UI — the handoff contract, component ownership versus screen-level layout, interaction and state conventions, design QA gates, and the review habits that keep an implementation faithful without frozen pixels. Use before any specific UI implementation skill.

★ 0
SriAkhilSJ
SriAkhilSJ/PulseAIRepo

test-strategy-architect

Architect-level test strategy — allocating assertions across unit, integration, contract and end-to-end layers, designing for testability through dependency boundaries, fixture and data strategy, and the flake and coverage policies that keep a suite trustworthy. Use when defining how a codebase is tested.

★ 0