An agentic skills framework & software development methodology that works.
Kafka skills for Claude Code, Cursor, and other agents
This repository packages Apache Kafka skills that agents can trigger from prompts or slash commands. The skills teach an agent what to check and how to respond for audits, reviews, troubleshooting, and scaffolding work around Kafka topics, consumers, schemas, connectors, DLQs, security, and performance. The same skill set is published for Claude Code and Cursor, with a shared source of truth in the repo.
Builders who want their agent to handle Kafka review, troubleshooting, and setup work with less back-and-forth.
You can ask one prompt and get Kafka-specific checks, fixes, and scaffolds instead of stepping through manual investigation.
What it does
Topic audit skill
Checks topic replication, retention, partitions, compaction, naming, orphaned topics, and missing metadata.
Consumer lag skill
Analyzes group lag and points to likely causes such as rebalancing, skew, throughput bottlenecks, and stalled consumers.
Schema review skill
Reviews Avro, Protobuf, and JSON Schema changes for compatibility, breaking changes, defaults, naming, and drift.
Security audit skill
Audits SASL, TLS, secret handling, and environment mismatches across code and cluster.
Connector and DLQ review skills
Checks Kafka Connect error handling, DLQ setup, converters, transforms, task count, task health, and replay paths.
Client and test scaffolding skills
Generates a Python Kafka client setup and ShadowTraffic configs or test containers from live cluster details.
How to get it
- 1Run
/plugin marketplace add lensesio/agentic-engineering-for-apache-kafka /plugin install kafka-skills@lensesio
- 2Run
npx skills add lensesio/agentic-engineering-for-apache-kafka
- 3To install only a specific skill (the ten valid skill names are kafka-topic-audit,β¦
npx skills add lensesio/agentic-engineering-for-apache-kafka --skill kafka-topic-audit
- 4To install globally (~/-scoped) instead of in the current project
npx skills add lensesio/agentic-engineering-for-apache-kafka -g
README
π Agentic Engineering for Apache Kafka
A collection of agent skills that turn AI agents and coding tools such as Claude Code and Cursor into Kafka-specialised engineering assistants. Audit topic configurations, diagnose consumer lag, review schema changes, review connectors and DLQs, catch security misconfigurations and tune performance, all from a single prompt instead of 15 minutes of manual exploration or investigation.
Maintained by Lenses.io, the team that pioneered the developer experience for Apache Kafka. Agentic engineering has shifted what that means. Making sure an AI agent knows how to handle streaming data is now part of the job.
Why Skills and MCP?
A Kafka MCP server gives agents access to your live cluster: topics, consumer groups, connectors, schemas and metrics. The skills in this repository teach agents expertise: best practices, audit thresholds, remediation playbooks and standard workflows. Together they enable AI-powered Kafka engineering where the agent doesn't just read your cluster, it knows what to look for and how to fix it.
Without skills, agents are confident generalists. They will write a consumer for the orders topic that compiles and runs but does not handle deserialization errors properly, set up DLQs correctly, or partition consumption sensibly for the topic's layout. Skills close the gap between code that runs in a demo and code that holds up in production.
These skills follow the Anthropic open standard for skills, so they are portable across Claude Code, Cursor, Claude.ai and the Claude Messages API. They are MCP-agnostic by design: every skill in this repo is tested against Lenses MCP Server (the recommended setup), but will work with any Kafka MCP server that exposes similar tools.
The quickest way to try the skills end-to-end is with the free Lenses Community Edition, which ships with Lenses HQ, a remote MCP Server and a pre-configured single-broker Kafka cluster with demo data.
What's Included
Kafka skills
| Skill | Invocation | Description | Frequency |
|---|---|---|---|
| Topic Audit | /kafka-topic-audit | Audits topic configs against best practices: replication factor, retention, partitions, compaction, naming conventions, orphaned topics and missing metadata. | Daily/weekly |
| Consumer Lag | /kafka-consumer-lag | Analyses consumer group lag and diagnoses root causes (throughput bottlenecks, rebalancing, partition skew, stalled consumers) with remediation suggestions. | Daily/on-incident |
| Perf Review | /kafka-perf-review | Reviews producer/consumer performance configs in both the live cluster and the codebase. Flags un-tuned defaults, anti-patterns and missing best practices. | Per-change |
| Schema Review | /kafka-schema-review | Reviews schema changes (Avro, Protobuf, JSON Schema) for compatibility, breaking changes, missing defaults, naming issues and schema drift. | Per-PR |
| Security Audit | /kafka-security-audit | Audits authentication (SASL), encryption (SSL/TLS), secrets management and environment-tier mismatches across codebase and cluster. | Monthly/pre-deploy |
| Connector Review | /kafka-connector-review | Reviews Kafka Connect configurations: error handling, DLQ setup, converters, transforms, task count and task health. | Per-change |
| DLQ Review | /kafka-dlq-review | Reviews dead letter queue completeness: topic config, monitoring, metadata preservation, retry logic, reprocessing paths and connector DLQ alignment. | Periodic |
| Python Client | /kafka-python-client | Scaffolds a production-ready Python Kafka producer and consumer using confluent-kafka-python, with Schema Registry, graceful shutdown, idempotent producer and tests. Discovers the target topic, partition count and registered schema from the live cluster via MCP before asking. | Per-project |
| ShadowTraffic | /kafka-shadowtraffic | Generates a ready-to-run shadowtraffic-config.json and Docker command to populate a Kafka topic with realistic synthetic data. Discovers the target topic, its key and value schemas and the correct serializers from the live cluster via MCP before writing the config. | On-demand |
| ShadowTraffic Java | /kafka-shadowtraffic-java | Scaffolds a JUnit 5 TestContainers class that spins up ShadowTraffic in-process to stream synthetic data into a Kafka topic during tests. Chains the ShadowTraffic skill to build the config, then wires Kafka, optional Schema Registry and ShadowTraffic containers together for Maven or Gradle projects. | Per-project |
Claude Code and Cursor support
Every skill is implemented for both Claude Code and Cursor from a single source of truth at the repo root. The repository itself is the plugin.
.claude-plugin/
βββ marketplace.json # Claude marketplace catalog
βββ plugin.json # Claude plugin manifest
.cursor-plugin/
βββ marketplace.json # Cursor marketplace catalog
βββ plugin.json # Cursor plugin manifest
assets/
βββ logo.svg # Plugin logo
skills/ # Shared SKILL.md definitions and references
βββ kafka-topic-audit/
βββ kafka-consumer-lag/
βββ kafka-perf-review/
βββ kafka-schema-review/
βββ kafka-security-audit/
βββ kafka-connector-review/
βββ kafka-dlq-review/
βββ kafka-python-client/
βββ kafka-shadowtraffic/
βββ kafka-shadowtraffic-java/
All skills follow the Anthropic open standard for skills with progressive disclosure: frontmatter with trigger phrases, negative triggers and categorised metadata; a references/ directory for detailed lookup tables and test cases loaded on demand; success criteria with quantitative and qualitative metrics; concrete usage examples; troubleshooting for common errors; and validation gates between workflow steps.
Installation
Claude Code
/plugin marketplace add lensesio/agentic-engineering-for-apache-kafka
/plugin install kafka-skills@lensesio
This installs all the Kafka skills as a single kafka-skills plugin.
Pull updates with /plugin update kafka-skills@lensesio whenever a new release is published.
Cursor, Codex, OpenCode and others
npx skills add lensesio/agentic-engineering-for-apache-kafka
This cross-tool Skills CLI (npx skills) installs all Kafka skills from the skills.sh directory.
The CLI auto-detects the agents you have installed (Cursor, Claude Code, Codex, OpenCode, Continue and 50+ others) and copies the skills into the right per-agent folder.
To install only a specific skill (the ten valid skill names are kafka-topic-audit, kafka-consumer-lag, kafka-perf-review, kafka-schema-review, kafka-security-audit, kafka-connector-review, kafka-dlq-review, kafka-python-client, kafka-shadowtraffic, kafka-shadowtraffic-java):
npx skills add lensesio/agentic-engineering-for-apache-kafka --skill kafka-topic-audit
To install globally (~/-scoped) instead of in the current project:
npx skills add lensesio/agentic-engineering-for-apache-kafka -g
Quick Start
After installing skills, configure the Lenses MCP server (or any Kafka MCP that exposes an equivalent tool surface will work).
Verify by asking, "Run a topic audit on staging" (or your environment name).
Skills auto-trigger from their description. For explicit slash invocation, use the namespaced form, e.g. /kafka-skills:kafka-topic-audit.
See TROUBLESHOOTING.md if a skill fails to load.
Conventions
The skills actively audit these conventions in your cluster or codebase:
- Topic names:
<domain>.<entity>.<event>(e.g.orders.payment.completed) - checked bykafka-topic-audit - Idempotent producers where possible (
enable.idempotence=true) - checked bykafka-perf-review - Graceful shutdown for producers and consumers - flagged as an anti-pattern by
kafka-perf-review
Contributing
No single team has seen every Kafka problem. The engineer running 200 topics on a multi-tenant cluster knows things we do not. The team that spent a month debugging a connector edge case has context that belongs in a skill file. If you have caught yourself coaching an agent through the same Kafka problem more than twice, that is a skill waiting to be written.
We welcome contributions across all three of the engineer profiles these skills serve: data engineers (schemas, pipeline reliability, data quality), backend engineers (clean produce/consume without getting buried in internals) and streaming data engineers (state, windowing, exactly-once). The Kafka surface is vast and these skills only scratch it. Kafka Streams, ksqlDB, MirrorMaker, deeper Schema Registry workflows, cluster upgrades, capacity planning, ACL audits, quota tuning and tiered storage review are all good candidates.
See CONTRIBUTING.md for how to propose a new Kafka skill, the structural conventions every skill follows (frontmatter, references/, test cases, single source of truth shared by the Cursor and Claude Code plugins), and what good first contributions look like. Bug reports, doc improvements and prompt-engineering tweaks are all welcome too.
Resources
- Lenses MCP Server for Apache Kafka
- Lenses Community Edition
- Lenses documentation
confluent-kafka-python- the Python Kafka client library used by thekafka-python-clientskill (requires Python 3.10+)- Anthropic's Complete Guide to Building Skills for Claude
- Cursor Skills documentation
- Claude Code Skills documentation
- Skills CLI (
vercel-labs/skills) - skills.sh β open agent skills directory
- Agent Skills Specification
License
Released under the MIT License. See the LICENSE file for the full text.
Files in the repo
- .claude-plugin
- .cursor-plugin
- assets
- skills
- .gitignore
- AGENTS.md
- CONTRIBUTING.md
- LICENSE
- README.md
- TROUBLESHOOTING.md
Discussion (0)
Ask about usage, or say what you built with itSign in to join the discussion.
No comments yet. Be the first to say what this is good for.
More skills

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.
Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.
Public repository for Agent Skills
Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications β runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravityβ¦)

Production-grade engineering skills for AI coding agents.