data-schema-registry
Use when the user asks about Confluent Schema Registry, Apicurio, Avro or Protobuf schemas for Kafka, compatibility modes (BACKWARD, FORWARD, FULL), schema…
от j4flmao★ 47 звёзд на GitHub
Установить data-schema-registry в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Data Schema Registry
Purpose
Design and deploy a schema registry with Avro/Protobuf/JSON Schema, compatibility enforcement, SerDe patterns, CI/CD integration, and governance for streaming and batch data.
Agent Protocol
Trigger
Exact user phrases: "Schema Registry", "Avro", "Protobuf", "schema evolution", "compatibility", "Confluent Schema Registry", "Apicurio", "serialization", "deserialization", "schema validation", "subject", "SerDe".
Input Context
- Streaming platform (Kafka, Pulsar, Kinesis)
- Serialization format preference (Avro, Protobuf, JSON Schema)
- Producers and consumers count and languages
- Schema governance maturity level
- CI/CD pipeline structure
- Existing schema management approach
Output Artifact
Schema registry architecture with format selection, compatibility strategy, SerDe configuration, deployment plan, and CI/CD governance integration.
Response Format
# Schema registry deployment
# Avro/Protobuf/JSON schema examples
# Compatibility rules per subject
# SerDe configuration (Kafka + batch)
# CI/CD schema enforcement pipeline
No preamble. No postamble. No explanations. No filler/hedging/transitions. Compress output — why use many token when few do trick.
Completion Criteria
- Schema format selected with rationale
- Schema registry deployed and configured
- Schemas defined for all streaming topics
- Compatibility mode set per subject
- SerDe configured for producers and consumers
- CI/CD pipeline validates schema changes
- Schema governance documented with owner and review process
Max Response Length
350 lines of configuration.
Workflow
Step 1: Select Schema Format
| Format | Strengths | Weaknesses | Best For |
|---|---|---|---|
| Avro | Native Kafka/Confluent support, schema evolution, compact binary | Java-centric, limited JSON-like readability | Kafka streaming, Confluent ecosystem |
| Protobuf | Language-agnostic, fastest serialization, gRPC native | Schema evolution more strict, larger schemas | Cross-language, gRPC services |
| JSON Schema | Readable, widely understood, web-native | Larger payload, slower parsing | REST APIs, web frontends |
Default: Avro for Kafka/Confluent stacks. Protobuf for gRPC + streaming. JSON Schema for REST APIs only.
Step 2: Define Avro Schema
{
"type": "record", "name": "Order", "namespace": "com.org.data.orders",
"doc": "Order event schema",
"fields": [
{"name": "order_id", "type": "string", "doc": "Unique order identifier"},
{"name": "customer_id", "type": "string"},
{"name": "total_amount", "type": "double"},
{"name": "currency", "type": "string", "default": "USD"},
{"name": "status", "type": {"type": "enum", "name": "OrderStatus",
"symbols": ["PENDING", "CONFIRMED", "SHIPPED", "DELIVERED", "CANCELLED"]}},
{"name": "items", "type": {"type": "array", "items": {
"type": "record", "name": "LineItem",
"fields": [
{"name": "product_id", "type": "string"},
{"name": "quantity", "type": "int"},
{"name": "unit_price", "type": "double"}
]
}}},
{"name": "created_at", "type": {"type": "long", "logicalType": "timestamp-millis"}}
]
}
Step 3: Set Compatibility Modes
| Mode | Producer Change | Consumer Impact | Use Case |
|---|---|---|---|
| BACKWARD | Can delete fields, add optional | Old consumers read new data | Default for most |
| FORWARD | Can add fields, delete optional | New consumers read old data | Long-lived consumers |
| FULL | Add optional fields only | Both directions compatible | Strict governance |
| NONE | Any change allowed | Consumers must sync | Dev/test only |
Step 4: Deploy Schema Registry
services:
schema-registry:
image: confluentinc/cp-schema-registry:7.6.0
ports: ["8081:8081"]
environment:
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: PLAINTEXT://kafka:9092
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_COMPATIBILITY_LEVEL: BACKWARD
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
SCHEMA_REGISTRY_KAFKASTORE_TOPIC: _schemas
Step 5: Configure SerDe
// Kafka Producer — Avro Serde with Schema Registry
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, KafkaAvroSerializer.class.getName());
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, KafkaAvroSerializer.class.getName());
props.put(KafkaAvroSerializerConfig.SCHEMA_REGISTRY_URL_CONFIG, "http://schema-registry:8081");
props.put(KafkaAvroSerializerConfig.AUTO_REGISTER_SCHEMAS, "false");
props.put(KafkaAvroSerializerConfig.USE_LATEST_VERSION, "true");
Step 6: CI/CD Schema Validation
jobs:
schema-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Validate and Check Compatibility
run: |
for schema in schemas/**/*.avsc; do
python scripts/validate_and_register.py \
--subje
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/registry-setup.md
- references/schema-evolution.md
- references/schema-governance.md
- references/schema-migration-strategies.md
- references/schema-registry-evolution.md
- references/schema-registry-integration-patterns.md
- references/schema-registry-operations.md
- references/schema-registry-tools.md
FAQ
Что делает скилл data-schema-registry?
Use when the user asks about Confluent Schema Registry, Apicurio, Avro or Protobuf schemas for Kafka, compatibility modes (BACKWARD, FORWARD, FULL), schema evolution or SerDe config. Produces schema definitions, compatibility settings and client SerDe setup. Not for cross-team data contracts (use data-data-contracts) or Kafka topic design (use data-streaming).
Как установить скилл data-schema-registry?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл data-schema-registry запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
AnthropicCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
discernment-nudge
AnthropicAfter you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
data-consolidate
AnthropicJoins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
inspection-to-capa
AnthropicRuns the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…