What problem does it solve?
Adds a persistence layer to an existing Spring Boot 4 project by generating the full, consistent stack needed to store a new domain model in a database, including schema migrations and reliable automated tests.
Core Features & Use Cases
- JPA or Spring Data JDBC choice: Implements either Hibernate-based JPA or aggregate-root-oriented Spring Data JDBC for the same “entity to database table” goal.
- Flyway-first schema management: Creates the required Flyway migration and configures the project so production never relies on ddl-auto.
- Complete test coverage across layers: Produces unit tests for contracts and business rules, component tests with Testcontainers for repository correctness and constraints, optional e2e coverage, and acceptance/Pact state patterns for higher confidence.
- Safety guardrails: Avoids using the skill for scaffolding endpoints or new project generation, assuming the codebase already passes ./gradlew check.
Quick Start
Use the add-entity skill when you need to “add persistence for a new domain model that maps to a database table in an existing Spring Boot 4 service.”