Skill Detail

Apache Kafka Stream Transformer

Processes real-time event streams using KafkaJS consumer groups and transforms messages with configurable schemas. Handles partition rebalancing, offset commits, and dead-letter queue routing for failed transformations.

Data Extraction & TransformationCursor
Data Extraction & Transformation Cursor Security Reviewed
Tool match: kafka โญ 32.4k GitHub stars
INSTALL WITH ANY AGENT
npx skills add agentskillexchange/skills --skill apache-kafka-stream-transformer-2 Copy
Works best when you want a reusable capability, not another fragile one-off prompt.
At a glance
Author
apache
Last updated
Mar 24, 2026
Quick brief

The Apache Kafka Stream Transformer provides real-time event processing capabilities using KafkaJS as the client library. It connects to Kafka clusters as a consumer group member, processes messages through configurable transformation pipelines, and produces enriched output to downstream topics.

How it works

What this skill actually does

Core functionality includes consumer group management with kafka.consumer({ groupId }), topic subscription with pattern matching, and manual offset management via consumer.commitOffsets(). The skill handles partition rebalancing events through the GROUP_JOIN and REBALANCING instrumentation events.

Message transformation supports Avro schema deserialization via Schema Registry integration (@kafkajs/confluent-schema-registry), field mapping, filtering, and enrichment from external sources. Failed transformations are routed to configurable dead-letter queues with original message metadata preserved. The agent monitors consumer lag via admin client admin.fetchOffsets() and provides alerting when lag exceeds thresholds. Supports exactly-once semantics with transactional producers.