User Story: Update Mongock skills to add migration-safety examples
As a maintainer of Java Enterprise cursor rules
I want to improve the Spring Boot, Quarkus, and Micronaut Mongock skills with richer migration examples and safety guidance
So that agents can recommend code-first MongoDB migrations that are framework-compatible, idempotent, testable, and safer for production data
Acceptance Criteria
See: skills-generator/src/test/resources/gherkin/skills/*-mongodb-migrations-mongock.feature
Notes
Apply the same improvement pattern used for Flyway issue #895:
- Add explicit Mongock antipattern guidance for unsafe data migrations.
- Add framework-specific examples for Spring Boot, Quarkus, and Micronaut.
- Cover safe rollout techniques similar to expand, migrate, contract, adapted to document migrations.
- Add testing guidance that verifies real Mongock execution, changelog records, and physical side effects.
- Keep edits in XML sources under
skills-generator/src/main/resources/; do not edit generated skills/ directly.
Implementation targets:
skills-generator/src/main/resources/skill-references/316-frameworks-spring-mongodb-migrations-mongock.xml
skills-generator/src/main/resources/skill-references/416-frameworks-quarkus-mongodb-migrations-mongock.xml
skills-generator/src/main/resources/skill-references/516-frameworks-micronaut-mongodb-migrations-mongock.xml
- Related skill indexes and Gherkin acceptance files for
316, 416, and 516
Gherkin Acceptance Criteria
Feature: Improve Mongock migration skill examples
@acceptance-test
Scenario: Add framework-specific Mongock migration examples
Given the Spring Boot, Quarkus, and Micronaut Mongock skills exist
When the Mongock skill references are updated
Then each skill includes framework-compatible dependency, runner, configuration, ChangeUnit, and testing examples
And each skill documents compatibility risks before recommending a runner or extension
@integration-test
Scenario: Document Mongock migration antipatterns
Given a skill user requests MongoDB data migrations with Mongock
When the skill reviews or proposes migration changes
Then it warns against editing applied ChangeUnits, non-idempotent updates, mutable domain-model coupling, unsafe startup backfills, hidden lock failures, and unverified runner assumptions
@integration-test
Scenario: Document safe document migration rollout techniques
Given a MongoDB schema or document-shape change needs production rollout
When the skill recommends a migration approach
Then it explains an expand, migrate, contract style workflow adapted for MongoDB documents
And it prefers small forward-only ChangeUnits with explicit verification over one destructive migration
@integration-test
Scenario: Verify migrations with real MongoDB execution
Given a project uses Mongock migrations
When tests are added or reviewed
Then the skill recommends real MongoDB verification with Testcontainers, Dev Services, or framework-native test support where feasible
And tests assert Mongock changelog execution plus at least one physical side effect
INVEST Validation
- Independent: The Mongock skill improvements can be delivered without changing the Flyway skills.
- Negotiable: Exact example wording and whether supplemental reference files are added can be refined during implementation.
- Valuable: Maintainers get safer, more practical Mongock guidance across all supported frameworks.
- Estimable: Scope is limited to three Mongock skill references, related indexes, Gherkin acceptance files, and local generated skill validation.
- Small: The work fits in one iteration because it improves existing skills rather than adding a new skill family.
- Testable: Completion can be verified with XML validation, skills-generator build, generated local skill inspection, and the listed acceptance prompts.
User Story: Update Mongock skills to add migration-safety examples
As a maintainer of Java Enterprise cursor rules
I want to improve the Spring Boot, Quarkus, and Micronaut Mongock skills with richer migration examples and safety guidance
So that agents can recommend code-first MongoDB migrations that are framework-compatible, idempotent, testable, and safer for production data
Acceptance Criteria
See:
skills-generator/src/test/resources/gherkin/skills/*-mongodb-migrations-mongock.featureNotes
Apply the same improvement pattern used for Flyway issue #895:
skills-generator/src/main/resources/; do not edit generatedskills/directly.Implementation targets:
skills-generator/src/main/resources/skill-references/316-frameworks-spring-mongodb-migrations-mongock.xmlskills-generator/src/main/resources/skill-references/416-frameworks-quarkus-mongodb-migrations-mongock.xmlskills-generator/src/main/resources/skill-references/516-frameworks-micronaut-mongodb-migrations-mongock.xml316,416, and516Gherkin Acceptance Criteria
INVEST Validation