Skip to content

Modern Java IDEs, such as Cursor AI, provide ways to customize how the `Agent model` behaves using reusable and scoped instructions. In cursor, the way to do it is named `Cursor rule` and you could see it as a `System prompt` if you use a generic term. This repository provides a collection of Cursor rules designed for Spring-Boot development.

License

Notifications You must be signed in to change notification settings

jabrena/cursor-rules-spring-boot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cursor rules for Spring Boot

Cursor Rules

Spring Boot rules

Cursor Rule Description Prompt Notes
301-frameworks-spring-boot-core Spring Boot Core Review my Spring Boot application using the cursor rule @301-frameworks-spring-boot-core Add in the context the Spring Boot classes you want to review
302-frameworks-spring-boot-rest REST API Design Principles Review my REST API design using the cursor rule @302-frameworks-spring-boot-rest Add in the context the REST controllers to review
303-frameworks-spring-data-jdbc Spring Data JDBC Improve my Spring Data JDBC implementation using the cursor rule @303-frameworks-spring-data-jdbc Add in the context the repository classes and entities
304-frameworks-spring-boot-hikari HikariCP Connection Pool Configuration Review my HikariCP configuration using the cursor rule @304-frameworks-spring-boot-hikari Add in the context your application properties files
311-frameworks-spring-boot-slice-testing Spring Boot Slice Testing Improve my slice tests using the cursor rule @311-frameworks-spring-boot-slice-testing Add in the context the test classes to review
312-frameworks-spring-boot-integration-testing Integration Testing Guidelines Review my integration tests using the cursor rule @312-frameworks-spring-boot-integration-testing Add in the context the integration test classes
313-frameworks-spring-boot-local-testing Local Testing with Docker Compose Improve my local testing setup using the cursor rule @313-frameworks-spring-boot-local-testing Add in the context your docker-compose.yaml and test configuration
321-frameworks-spring-boot-native-compilation Native Compilation Optimize my Spring Boot app for native compilation using the cursor rule @321-frameworks-spring-boot-native-compilation Add in the context your pom.xml and application configuration

SQL rules

Cursor Rule Description Prompt Notes
500-sql SQL Development Guidelines Review my SQL code and database design using the cursor rule @500-sql Add in the context your SQL files, database schema, or migration scripts

Getting started

If you are interested in getting the benefits from these cursor rules, you can manually download this repository and copy the './cursor' folder and paste it into your repository, or delegate this task to a specific command-line tool based on Jbang:

sdk install jbang
# Add cursor rules for Spring Boot in ./cursor/rules
jbang --fresh setup@jabrena init --cursor https://github.com/jabrena/cursor-rules-spring-boot

References

Cursor rules ecosystem

About

Modern Java IDEs, such as Cursor AI, provide ways to customize how the `Agent model` behaves using reusable and scoped instructions. In cursor, the way to do it is named `Cursor rule` and you could see it as a `System prompt` if you use a generic term. This repository provides a collection of Cursor rules designed for Spring-Boot development.

Topics

Resources

License

Stars

Watchers

Forks