
from cursor-rules-java407
Guidance for adding, configuring, and verifying Mongock migrations in Spring Boot projects, including ChangeUnit patterns, locking, and Testcontainers-based ver
Provides actionable guidance to add, review, and verify Mongock-based MongoDB migrations in Spring Boot applications. It covers selecting compatible Mongock coordinates, configuring migration scan packages, implementing idempotent @ChangeUnit classes, setting lock and transaction policies, and running integration tests with Testcontainers to validate migrations.
Use this skill when implementing new MongoDB data migrations in a Spring Boot service, auditing existing migrations for safety and idempotency, or configuring migration execution policies during upgrades. Trigger on requests like ‘Add Mongock migrations’, ‘Review Spring MongoDB migrations’, or ‘Configure Mongock change units’.
This skill is authored for code-focused agents (Cursor, Claude Code, Codex/GitHub Copilot workflows) that can read repository files, run Maven builds, and edit Java code.
This skill has not been reviewed by our automated audit pipeline yet.