315-frameworks-spring-mongodb — Claude Code skill: Spring Data Mongo
315-frameworks-spring-mongodb — a skill for designing and implementing MongoDB data access in Spring Boot. Covers document modeling, repositories, indexing, optimistic locking, and error handling strategies.
Apache-2.0 284 installs ★ 465 updated 2026-10-21
npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a claude-codeWhat 315-frameworks-spring-mongodb does
Applies Spring Data MongoDB patterns with concrete examples for design, implementation, and failure handling. Includes document mapping, repository and template setup, index configuration, optimistic versioning, and duplicate key error strategies.
Before any changes, the skill runs ./mvnw compile or mvn compile — if the build fails, it stops. After improvements, you verify with ./mvnw clean verify or mvn clean verify. Detailed rules and examples are in references/315-frameworks-spring-mongodb.md.
Use it to add MongoDB to a Spring Boot service, review repository design, improve write error handling, model documents for your domain, or configure indexes and transactions.
What it helps with
- add MongoDB to a Spring Boot project
- design MongoDB document schema for a service
- configure indexes and transactions in Spring Data MongoDB
- improve duplicate key handling and retry logic
- refactor and optimize Spring Data Mongo repositories
Example prompts for the agent
- Add MongoDB to Spring Boot with document modeling
- Review and improve Spring Data Mongo repository design
- Set up optimistic locking and error handling for MongoDB writes
How to install 315-frameworks-spring-mongodb
1Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a claude-code2Manually: put the files in place
~/.claude/skills/315-frameworks-spring-mongodb/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/315-frameworks-spring-mongodb/
1Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a codex2Manually: put the files in place
.agents/skills/315-frameworks-spring-mongodb/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a cursor2Manually: put the files in place
.cursor/skills/315-frameworks-spring-mongodb/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install jabrena/plinth skills/315-frameworks-spring-mongodb2Manually: put the files in place
.github/skills/315-frameworks-spring-mongodb/SKILL.md1Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a gemini-cli2Platform CLI
gemini skills install https://github.com/jabrena/plinth --path skills/315-frameworks-spring-mongodbManually: put the files in place
.devin/skills/315-frameworks-spring-mongodb/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about 315-frameworks-spring-mongodb
How do I install 315-frameworks-spring-mongodb in Claude Code?
Run npx skills add jabrena/plinth --skill 315-frameworks-spring-mongodb -a claude-code, then open ~/.claude/skills/315-frameworks-spring-mongodb/SKILL.md.
What does the 315-frameworks-spring-mongodb skill do?
It helps you design and implement MongoDB integration in Spring Boot: document modeling, repository patterns, index setup, optimistic locking, and write error handling.
What verification steps are required with this skill?
Before changes, run ./mvnw compile or mvn compile to check your build. After improvements, execute ./mvnw clean verify or mvn clean verify to verify.
Source text
SKILL.md · Apache-2.0
--- name: 315-frameworks-spring-mongodb description: Use when you need to design or implement MongoDB data access in Spring Boot — including document modeling, Spring Data Mongo repositories/templates, indexing, optimistic concurrency, and error handling. This should trigger for requests such as Add MongoDB in Spring Boot; Review Spring Data Mongo design; Improve error handling for Mongo writes; Model MongoDB documents for a Spring Boot service; Configure Spring Data MongoDB indexes or transactions. Part of Plinth Toolkit license: Apache-2.0 metadata: author: Juan Antonio Breña Moral version: 0.19.0 --- # Spring Boot — MongoDB Apply Spring Data 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 Spring Boot - Review Spring Data Mongo repositories/documents - Improve duplicate key handling, retries, or optimistic locking in Mongo flows - Model MongoDB documents for a Spring Boot service - Configure Spring Data MongoDB indexes or transactions ## Workflow 1. **Read reference and assess project context** Read `references/315-frameworks-spring-mongodb.md` and inspect persistence setup before proposing changes. 2. **Gather scope and decide target improvements** Identify data model, consistency, and query requirements to define safe improvements. 3. **Apply framework-aligned changes** Implement/refactor mappings, repositories, indexes, and failure handling policies. 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/315-frameworks-spring-mongodb.md](references/315-frameworks-spring-mongodb.md).
© Juan Antonio Breña Moral · Apache-2.0 · jabrena/plinth