Skip to main content
skill CX Codex

515-frameworks-micronaut-mongodb — Claude Code skill for MongoDB

The 515-frameworks-micronaut-mongodb skill guides MongoDB work in Micronaut, from document models and repositories to indexes and error handling. Use it when adding or reviewing persistence.

Apache-2.0 272 installs ★ 465 updated 2026-10-21

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add jabrena/plinth --skill 515-frameworks-micronaut-mongodb -a claude-code
Open on GitHub

What 515-frameworks-micronaut-mongodb does

The skill applies Micronaut MongoDB guidance to persistence design and changes. It covers document models, repositories, indexes, query patterns, transactions, and error handling, including duplicate-key cases, retries, and optimistic locking. Its detailed rules and examples are in references/515-frameworks-micronaut-mongodb.md.

Before editing, the agent reads that reference and inspects the project’s persistence setup. It then scopes the model and consistency requirements, makes framework-aligned changes, and reports what it verified. Compilation comes first: run ./mvnw compile or mvn compile; if it fails, stop. After changes, run ./mvnw clean verify or mvn clean verify.

What it helps with

  • Add MongoDB persistence to a Micronaut service
  • Review Micronaut Data Mongo entities and repositories
  • Model MongoDB documents for an application
  • Configure MongoDB indexes, codecs, or transactions
  • Handle duplicate keys and retries in Mongo operations

Example prompts for the agent

  • Add MongoDB persistence to this Micronaut project and check compilation first.
  • Review the MongoDB document models and repositories in this service.
  • Improve duplicate-key handling, then verify the project.

How to install 515-frameworks-micronaut-mongodb

1Skills CLI (Vercel)

npx skills add jabrena/plinth --skill 515-frameworks-micronaut-mongodb -a claude-code

2Manually: put the files in place

~/.claude/skills/515-frameworks-micronaut-mongodb/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/515-frameworks-micronaut-mongodb/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about 515-frameworks-micronaut-mongodb

How do I install 515-frameworks-micronaut-mongodb in Claude Code?

Run npx skills add jabrena/plinth --skill 515-frameworks-micronaut-mongodb -a claude-code. The skill file is at ~/.claude/skills/515-frameworks-micronaut-mongodb/SKILL.md.

What does 515-frameworks-micronaut-mongodb do?

It guides MongoDB persistence work in Micronaut, including document and repository design, indexes, queries, and error handling. It also sets a compile-first workflow for changes.

Which checks should I run when changing MongoDB code?

Run ./mvnw compile or mvn compile before editing, and stop if compilation fails. Afterward, run ./mvnw clean verify or mvn clean verify.

Source text

SKILL.md · Apache-2.0
---
name: 515-frameworks-micronaut-mongodb
description: Use when you need MongoDB persistence in Micronaut — including @MongoRepository design, document modeling, indexes, query patterns, and error handling. This should trigger for requests such as Add MongoDB in Micronaut; Review Micronaut Data Mongo design; Improve error handling for Micronaut Mongo operations; Model MongoDB documents for a Micronaut service; Configure Micronaut MongoDB codecs indexes or transactions. Part of Plinth Toolkit
license: Apache-2.0
metadata:
  author: Juan Antonio Breña Moral
  version: 0.19.0
---
# Micronaut — MongoDB

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

## Constraints

Compile before MongoDB 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 MongoDB in Micronaut
- Review Micronaut Mongo entities/repositories
- Improve duplicate key handling, retries, or optimistic locking in Micronaut Mongo
- Model MongoDB documents for a Micronaut service
- Configure Micronaut MongoDB codecs indexes or transactions

## Workflow

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

Read `references/515-frameworks-micronaut-mongodb.md` and inspect persistence setup before proposing changes.

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

Identify model and consistency requirements and define safe improvements.

3. **Apply framework-aligned changes**

Implement/refactor documents, repositories, indexes, and error handling.

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/515-frameworks-micronaut-mongodb.md](references/515-frameworks-micronaut-mongodb.md).

© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth

Similar skills

All skills for Backend and APIs →

From the same set123

The whole set →
503-frameworks-micronaut-validation 503-frameworks-micronaut-validation guides validation setup in Micronaut applications, from Bean Validation annotations to HTTP 400 error payloads. CX Codex +1 280installs 414-frameworks-quarkus-kafka 414-frameworks-quarkus-kafka guides Kafka messaging setups in Quarkus using SmallRye Reactive Messaging. Useful for channel tuning, serialization, and DLQ failure handling. CX Codex +1 279installs 415-frameworks-quarkus-mongodb Skill for MongoDB in Quarkus projects: Panache entities and repositories, document design, indexes, transactions, and error handling. Triggers on requests to add MongoDB, review architecture, and optimize data access patterns. CX Codex +1 279installs 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. CX Codex +1 275installs 123-java-design-patterns The 123-java-design-patterns skill helps choose, review, and apply Java patterns for APIs, Kafka, persistence, and integrations. CX Codex +1 267installs 183-java-observability-tracing-opentelemetry 183-java-observability-tracing-opentelemetry guides OpenTelemetry distributed tracing setup in Java services with context propagation and semantic attributes. CX Codex +1 253installs 305-frameworks-spring-boot-modulith 305-frameworks-spring-boot-modulith guides Spring Modulith work in Spring Boot modular monoliths, from module boundaries to events and tests. Use it when reviewing or reshaping the architecture. CX Codex +1 245installs 704-technologies-sql The 704-technologies-sql skill guides schema design, SQL queries, indexes, and migrations without tying the advice to a Java framework. Use it for database reviews and changes. CX Codex +1 227installs

Project sponsors

Companies that keep this analytics open