/ak-coding:kafka [hooks|producer|consumer|monitoring|migrate kafkajs|migrate node-rdkafka]from ak-coding
Set up Kafka-based event-driven microservices with Platformatic Watt. Use when users ask about: - "kafka", "event-driven", "messaging" - "kafka hooks", "kafka webhooks" - "kafka producer", "kafka consumer" - "dead letter queue", "DLQ" - "request response pattern" with Kafka - "migrate from kafkajs", "kafkajs migration", "replace kafkajs" - "node-rdkafka", "node rdkafka", "rdkafka", "librdkafka" - "migrate from node-rdkafka", "replace node-rdkafka" - "Kafka.Producer", "Kafka.KafkaConsumer", "ProducerStream", "ConsumerStream" Covers @platformatic/kafka, @platformatic/kafka-hooks, consumer lag monitoring, OpenTelemetry instrumentation, and migrations from KafkaJS or node-rdkafka.
Ships in ak-coding. 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.
Read when SKILL.md points to them.
You are an expert in integrating Apache Kafka with Platformatic Watt for event-driven microservices.
Before any Kafka setup, verify:
Node.js Version: Watt requires Node.js v22.19.0+
node --version
If below v22.19.0, inform user they must upgrade Node.js first.
Existing Watt Config: Check if watt.json already exists
ls watt.json 2>/dev/null
If no watt.json, suggest running /watt init first to set up Watt.
Based on user input ($ARGUMENTS), route to the appropriate workflow:
| Input Pattern | Action |
|---|---|
hooks, webhooks, (empty) | Run Kafka-Hooks Setup |
producer, consumer, client | Run Kafka Client Setup |
monitoring, lag, health | Run Consumer Lag Monitoring Setup |
tracing, opentelemetry, otel | Run Kafka Tracing Setup |
migrate kafkajs, kafkajs, replace kafkajs | Run KafkaJS Migration Workflow |
migrate node-rdkafka, node-rdkafka, node rdkafka, rdkafka, librdkafka, Kafka.Producer, Kafka.KafkaConsumer, ProducerStream, ConsumerStream | Run node-rdkafka Migration Workflow |
migrate, migration | Run Migration Detection Workflow |
When user requests Kafka webhook/hook integration:
npx wattpm@latest create/topics/{topicName}When user requests direct Kafka producer/consumer integration:
@platformatic/kafka:
npm install @platformatic/kafka
When user requests Kafka consumer lag monitoring:
@platformatic/watt-plugin-kafka-health:
npm install @platformatic/watt-plugin-kafka-health
watt.jsonWhen user requests OpenTelemetry tracing for Kafka:
@platformatic/kafka-opentelemetry:
npm install @platformatic/kafka-opentelemetry
When user wants to migrate from KafkaJS to @platformatic/kafka:
require('kafkajs') or from 'kafkajs' importsnew Kafka({...}) factory instantiation.producer(), .consumer(), .admin() callsconnect() / disconnect() lifecycle callssubscribe() + run({ eachMessage }) consumer patternsendBatch() callsCompressionTypes usagetransaction() callsKafkaJS* error classesconnect/disconnect → lazy/close)retriable → canRetry, new error classes)diagnostics_channel)When user wants to migrate from node-rdkafka to @platformatic/kafka:
require('node-rdkafka') or from 'node-rdkafka' importsnew Kafka.Producer(...)new Kafka.KafkaConsumer(...)Kafka.Producer.createWriteStream(...)Kafka.KafkaConsumer.createReadStream(...).produce(...), .poll(), .consume(...), .subscribe(...).connect(...), .disconnect(...), .on('ready'), .on('data'), .on('event.error').getMetadata(...)metadata.broker.list, group.id, enable.auto.commit, security.protocol, sasl.mechanismsnode-rdkafka with @platformatic/kafka in dependencies using the detected package managerawait client.close()When user asks for a Kafka migration but does not specify the source client:
package.json and lockfiles for kafkajs or node-rdkafkakafkajs or node-rdkafkahttp://{service-id}.plt.local{VAR_NAME} (curly braces, no dollar sign)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub akallabet/akallabeth-cc-marketplace --plugin ak-coding13 skills in this plugin
/code-review-excellenceMaster effective code review practices to provide constructive feedback, catch bugs early, and foster knowledge sharing while maintaining team morale. Use when reviewing pull requests, establishing review standards, or mentoring developers./e2e-testing-patternsMaster end-to-end testing with Playwright and Cypress to build reliable test suites that catch bugs, improve confidence, and enable fast deployment. Use when implementing E2E tests, debugging flaky tests, or establishing testing standards./error-handling-patternsMaster error handling patterns across languages including exceptions, Result types, error propagation, and graceful degradation to build resilient applications. Use when implementing error handling, designing APIs, or improving application reliability./fastify-best-practicesGuides development of Fastify Node.js backend servers and REST APIs using TypeScript or JavaScript. Use when building, configuring, or debugging a Fastify application — including defining routes, implementing plugins, setting up JSON Schema validation, handling errors, optimising performance, managing authentication, configuring CORS and security headers, integrating databases, working with WebSockets, and deploying to production. Covers the full Fastify request lifecycle (hooks, serialization, logging with Pino) and TypeScript integration via strip types. Trigger terms: Fastify, Node.js server, REST API, API routes, backend framework, fastify.config, server.ts, app.ts./nodeProvides domain-specific best practices for Node.js development with TypeScript, covering type stripping, async patterns, error handling, streams, modules, testing, performance, caching, logging, and more. Use when setting up Node.js projects with native TypeScript support, configuring type stripping (--experimental-strip-types), writing Node 22+ TypeScript without a build step, or when the user mentions 'native TypeScript in Node', 'strip types', 'Node 22 TypeScript', '.ts files without compilation', 'ts-node alternative', or needs guidance on error handling, graceful shutdown, flaky tests, profiling, or environment configuration in Node.js. Helps configure tsconfig.json for type stripping, set up package.json scripts, handle module resolution and import extensions, and apply robust patterns across the full Node.js stack./oauthImplements OAuth 2.0/2.1 authorization flows in Fastify applications — configures authorization code with PKCE, client credentials, device flow, refresh token rotation, JWT validation, and token introspection/revocation endpoints. Use when setting up authentication, authorization, login flows, access tokens, API security, or securing Fastify routes with OAuth; also applies when troubleshooting token validation errors, mismatched redirect URIs, CSRF issues, scope problems, or RFC 6749/6750/7636/8252/8628 compliance questions.Other plugins' skills for the same job