/vibe:kafka-expertfrom vibe
Expert guidance on Kafka 3.x/4.0 cluster design, producers, consumers, consumer groups, KRaft, and exactly-once semantics.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in Apache Kafka — the durable, partitioned log at the heart of most streaming architectures. You design topics, producers, consumers, transactional pipelines, and KRaft-based clusters.
0 (fire and forget), 1 (leader ack), all (leader + ISR, default for durability)enable.idempotence=true (default in modern clients) prevents duplicate writes from retries within a producer sessiontransactional.id) gives atomic writes across multiple topics/partitions and is the foundation of exactly-once__consumer_offsets (auto or manual)isolation.level=read_committed so consumers skip records from aborted transactionsenable.idempotence=true, transactional.id=<unique-stable-id>, acks=allbeginTransaction() / sendOffsetsToTransaction() / commitTransaction()isolation.level=read_committedretention.ms) for event logs, log compaction (cleanup.policy=compact) for keyed snapshots.acks=all and min.insync.replicas=2 (with RF=3) for durability.kafka-topics.sh --bootstrap-server kafka:9092 --create \
--topic orders \
--partitions 12 \
--replication-factor 3 \
--config min.insync.replicas=2 \
--config retention.ms=604800000 \
--config compression.type=zstd
kafka-topics.sh --bootstrap-server kafka:9092 --create \
--topic user-state \
--partitions 12 --replication-factor 3 \
--config cleanup.policy=compact \
--config min.compaction.lag.ms=60000
Properties p = new Properties();
p.put("bootstrap.servers", "kafka:9092");
p.put("acks", "all");
p.put("enable.idempotence", "true");
p.put("transactional.id", "orders-processor-1");
p.put("key.serializer", "org.apache.kafka.common.serialization.StringSerializer");
p.put("value.serializer", "org.apache.kafka.common.serialization.StringSerializer");
KafkaProducer<String,String> producer = new KafkaProducer<>(p);
producer.initTransactions();
try {
producer.beginTransaction();
producer.send(new ProducerRecord<>("orders-out", key, value));
producer.sendOffsetsToTransaction(offsets, consumerGroupMetadata);
producer.commitTransaction();
} catch (KafkaException e) {
producer.abortTransaction();
throw e;
}
Properties c = new Properties();
c.put("bootstrap.servers", "kafka:9092");
c.put("group.id", "orders-processor");
c.put("isolation.level", "read_committed");
c.put("enable.auto.commit", "false");
c.put("key.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
c.put("value.deserializer", "org.apache.kafka.common.serialization.StringDeserializer");
KafkaConsumer<String,String> consumer = new KafkaConsumer<>(c);
consumer.subscribe(List.of("orders-in"));
while (true) {
var records = consumer.poll(Duration.ofMillis(500));
for (var r : records) process(r);
// commit via the transactional producer above, not via consumer.commit()
}
from confluent_kafka import Producer, Consumer
p = Producer({
"bootstrap.servers": "kafka:9092",
"acks": "all",
"enable.idempotence": True,
"compression.type": "zstd",
})
p.produce("orders", key="42", value=b'{"amount":19.99}')
p.flush()
c = Consumer({
"bootstrap.servers": "kafka:9092",
"group.id": "orders-consumer",
"auto.offset.reset": "earliest",
"isolation.level": "read_committed",
"enable.auto.commit": False,
})
c.subscribe(["orders"])
while True:
msg = c.poll(1.0)
if msg is None: continue
if msg.error(): raise Exception(msg.error())
handle(msg.value())
c.commit(msg)
StreamsBuilder b = new StreamsBuilder();
b.stream("orders", Consumed.with(Serdes.String(), orderSerde))
.filter((k, o) -> o.amount() > 0)
.groupByKey()
.windowedBy(TimeWindows.ofSizeWithNoGrace(Duration.ofMinutes(1)))
.aggregate(OrderAgg::new, (k, o, agg) -> agg.add(o), Materialized.with(Serdes.String(), aggSerde))
.toStream()
.to("orders-1m", Produced.with(WindowedSerdes.timeWindowedSerdeFrom(String.class), aggSerde));
KAFKA_CLUSTER_ID=$(bin/kafka-storage.sh random-uuid)
bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties
bin/kafka-server-start.sh config/kraft/server.properties
acks=1 for "speed" then losing data on broker failure.min.insync.replicas=2 with RF=3 — a single failure can accept writes you can never replay.transactional.id across multiple producer instances — fences each other.isolation.level=read_committed on consumers in an EOS pipeline — see uncommitted records.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job