Modern Java IDEs, such as Cursor AI, provide ways to customize how the Agent model
behaves using reusable and scoped instructions. This repository offers a collection of such Cursor rules specifically for Java development.
This collection of Cursor Rules for Java development, tries to enrich the developer experience when the Software engineer interact with LLMs in some phases in of any CI workflow.
- Build: Maven Best Practices
- Build: Maven Dependencies & Plugins
- Build: Maven Documentation
- Design: Object Oriented Design
- Design: Type Design
- Coding: General Java Guidelines
- Coding: Secure Java Coding
- Coding: Concurrency
- Coding: Logging Guidelines
- Testing: Unit Testing
- Testing: Integration Testing (If required)
- Refactoring: Add Modern Java Features
- Refactoring: Functional Programming
- Refactoring: Data Oriented Programming
- Database: SQL Guidelines
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 Java in ./cursor/rules
jbang --fresh setup@jabrena init --cursor https://github.com/jabrena/cursor-rules-java
Once you have installed the cursor rules:
Phase | Role | Cursor Rule | Description |
---|---|---|---|
Getting Started | All | Create Java Development Guide | Cursor rule designed to help the user when using the whole set of cursor rules for Java in an easy way |
Type the following prompt in the cursor chat:
Create an java development guide using the cursor rule @100-java-checklist-guide
Java use JEPS as the vehicle to describe the new features to be added in the language. The repository review in a continuous way what JEPS could be improved any of the cursor rules present in this repository.
Review the template for details.
If you have new ideas to improve any of the current Cursor rules or add a new one, please fork the repo and send a PR.
- https://www.cursor.com/
- https://docs.cursor.com/context/rules
- https://docs.cursor.com/context/@-symbols/@-cursor-rules
- https://openjdk.org/jeps/0
- https://github.com/jabrena/cursor-rules-methodology
- https://github.com/jabrena/cursor-rules-agile
- https://github.com/jabrena/cursor-rules-java
- https://github.com/jabrena/cursor-rules-examples
- https://github.com/jabrena/plantuml-to-png-cli
- https://github.com/jabrena/101-cursor
- https://github.com/jabrena/setup-cli
- https://github.com/jabrena/jbang-catalog