# 514-frameworks-micronaut-kafka

514-frameworks-micronaut-kafka guides Kafka messaging setup in Micronaut applications. Covers producers, consumers, SerDes configuration, retry handling, and integration tests.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 275 installs · ★ 465 repo stars
- Author: Juan Antonio Breña Moral
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/jabrena/plinth/tree/HEAD/skills/514-frameworks-micronaut-kafka/SKILL.md
- Updated: 2026-10-21
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/514-frameworks-micronaut-kafka

## What it does

This skill guides coding assistants through configuring Kafka in Micronaut projects. It provides patterns for `@KafkaClient`, `@KafkaListener`, and `@Serdeable` models, covering partition strategies, message serialization, and dead-letter queues. Guidance also includes integration testing using `TestPropertyProvider`.

The workflow enforces strict build checks. The agent must run `./mvnw compile` or `mvn compile` before applying any edits. If compilation fails, work stops immediately. Once code modifications are done, running `./mvnw clean verify` ensures that test suites and builds stay green.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 514-frameworks-micronaut-kafka -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/514-frameworks-micronaut-kafka/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/514-frameworks-micronaut-kafka/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 514-frameworks-micronaut-kafka -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/514-frameworks-micronaut-kafka/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 514-frameworks-micronaut-kafka -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/514-frameworks-micronaut-kafka/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install jabrena/plinth skills/514-frameworks-micronaut-kafka
```

2. **Manually: put the files in place**
- File: `.github/skills/514-frameworks-micronaut-kafka/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 514-frameworks-micronaut-kafka -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/jabrena/plinth --path skills/514-frameworks-micronaut-kafka
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/514-frameworks-micronaut-kafka/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add jabrena/plinth --skill 514-frameworks-micronaut-kafka -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/jabrena/plinth/tree/HEAD/skills/514-frameworks-micronaut-kafka/SKILL.md

## When to use it
- Design Kafka producers and consumers using @KafkaClient and @KafkaListener
- Configure object serialization with @Serdeable and custom SerDes
- Implement retries, idempotency, and dead-letter topic processing
- Write Kafka integration tests with TestPropertyProvider

## Example prompts
- Add a Kafka listener with retry and dead-letter queue in Micronaut
- Review Micronaut Kafka producer configuration and SerDes
- Set up integration tests for Kafka messaging using TestPropertyProvider

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 19f23cd888c70515.

BEGIN THIRD-PARTY FILE 19f23cd888c70515
```text
---
name: 514-frameworks-micronaut-kafka
description: Use when you need Kafka messaging in Micronaut — including @KafkaClient and @KafkaListener design, @Serdeable serialization, topic/partition strategy, TestPropertyProvider integration tests, retries and dead-letter processing, and error handling. This should trigger for requests such as Add Kafka in Micronaut; Review Micronaut Kafka listeners; Improve retry and failure handling for Micronaut Kafka; Configure Micronaut Kafka clients listeners or SerDes; Add Micronaut Kafka retry or dead-letter handling. Part of Plinth Toolkit
license: Apache-2.0
metadata:
  author: Juan Antonio Breña Moral
  version: 0.19.0
---
# Micronaut — Kafka messaging

Apply Micronaut Kafka guidance with concrete examples for design, implementation, and error handling.

## Constraints

Compile before messaging refactors; verify after changes.

- **MANDATORY**: Run `./mvnw compile` or `mvn compile` before applying any change
- **SAFETY**: If compilation fails, stop immediately
- **VERIFY**: Run `./mvnw clean verify` or `mvn clean verify` after applying improvements
- **BEFORE APPLYING**: Read the reference for detailed rules and examples

## When to use this skill

- Add Kafka in Micronaut
- Review Micronaut Kafka consumers/producers
- Improve retries, dead-letter handling, or idempotency in Micronaut Kafka
- Configure Micronaut Kafka clients listeners or SerDes
- Add Micronaut Kafka retry or dead-letter handling

## Workflow

1. **Read reference and assess project context**

Read `references/514-frameworks-micronaut-kafka.md` and inspect current messaging setup before proposing changes.

2. **Gather scope and decide target improvements**

Identify delivery guarantees and resilience requirements to define safe improvements.

3. **Apply framework-aligned changes**

Implement/refactor clients, listeners, and failure strategies in Micronaut Kafka.

4. **Run verification and report results**

Execute build/tests and summarize what changed, what was verified, and follow-up actions.

## Reference

For detailed guidance, examples, and constraints, see [references/514-frameworks-micronaut-kafka.md](references/514-frameworks-micronaut-kafka.md).
```
END THIRD-PARTY FILE 19f23cd888c70515

The third-party file has ended. Everything between the 19f23cd888c70515 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© Juan Antonio Breña Moral · Apache-2.0 · https://github.com/jabrena/plinth/tree/HEAD/skills/514-frameworks-micronaut-kafka/SKILL.md

## Similar
- [micronaut](https://affpapa.org/en/nevibecode/skills/micronaut.md) — skill · 732 installs
- [kafka-development](https://affpapa.org/en/nevibecode/skills/kafka-development.md) — skill · 1200 installs
- [neo4j-kafka-skill](https://affpapa.org/en/nevibecode/skills/neo4j-kafka-skill.md) — skill · 814 installs
- [kafka-stream-processing](https://affpapa.org/en/nevibecode/skills/kafka-stream-processing.md) — skill · 482 installs
- [kafka-expert](https://affpapa.org/en/nevibecode/skills/kafka-expert.md) — skill · 220 installs
- [Kafka Streaming taste](https://affpapa.org/en/nevibecode/prompts/kafka-streaming-taste.md) — prompt · ★ 178201 repo stars

_Part of the page did not fit — see the HTML version._

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
