You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ If you have the idea to contribute, review the whole process in detail:
10
10
```bash
11
11
cd generator
12
12
./mvnw clean verify # Pass tests
13
-
./mvnw clean install # Pass tests & copy new .md files into ./cursor/rules (The way to promote changes)
13
+
./mvnw clean install # Pass tests & copy new .md files into .cursor/rules (The way to promote changes)
14
14
```
15
15
16
16
When you feel confident with the process, fork the repository and try to create new XML documents. Models will help you because an XML file is more rigid than natural language and it has `a common vocabulary` to create prompts.
Copy file name to clipboardExpand all lines: CURSOR-RULES-JAVA.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,11 +65,13 @@ Use the following collection of System prompts of Java to improve your Java deve
65
65
| - | Code Refactoring from suggestions from analysis |`Can you apply the solutions from @profiling-solutions-yyyymmdd.md in @/info to mitigate bottlenecks`| Make a refactoring with the notes from the analysis |
66
66
|[164-java-profiling-compare](.cursor/rules/164-java-profiling-compare.md)| Compare results comparing results before and after applying changes in the code |**Prompt:**`Review if the problems was solved with last refactoring using the reports located in @/results with the cursor rule 154-java-profiling-compare`**Note:** Put in the context the folder with the results | This cursor rule is applied automatically without any interaction with the Software engineer. |
67
67
68
-
## Documentation rule
68
+
## Documentation rules
69
69
70
70
| Activity | Description | Prompt | Notes |
71
71
|----|----|-----|----|
72
-
|[170-java-documentation](.cursor/rules/170-java-documentation.md)| Generate Java project documentation & diagrams including README.md and package-info.java files using a modular step-based approach |**Interactive User Prompt:**`Generate technical documentation & diagrams about the project with the cursor rule @170-java-documentation`**User Prompt:**`Create a UML class diagram with @170-java-documentation without any question` (Example) **Note:** Add in the context the folder to generate the documentation. The rule will analyze existing documentation and ask for user preferences before generating anything. Ensures project validation with Maven before proceeding. | It is possible to apply the System prompt in an interactive and non interactive way. If you are thinking to create Diagrams, I recommend to run the Jbang tool `jbang puml-to-png@jabrena --watch .` in order to generate on fly the diagrams in png format |
72
+
|[170-java-documentation](.cursor/rules/170-java-documentation.md)| Generate Java project documentation including README.md, package-info.java files, and Javadoc using a modular step-based approach |**Interactive User Prompt:**`Generate technical documentation about the project with the cursor rule @170-java-documentation`**User Prompt:**`Generate README.md with @170-java-documentation without any question` (Example) **Note:** Add in the context the folder to generate the documentation. The rule will analyze existing documentation and ask for user preferences before generating anything. Ensures project validation with Maven before proceeding. | Focused on documentation generation only. For diagrams, use @171-java-diagrams|
73
+
|[171-java-diagrams](.cursor/rules/171-java-diagrams.md)| Generate Java project diagrams including UML sequence, class, state-machine diagrams and C4 model diagrams using a modular step-based approach |**Interactive User Prompt:**`Generate diagrams about the project with the cursor rule @171-java-diagrams`**User Prompt:**`Create UML class diagrams with @171-java-diagrams without any question` (Example) **Note:** Add in the context the folder to generate the diagrams. The rule will analyze the codebase and ask for user preferences before generating anything. Ensures project validation with Maven before proceeding. | Focused on diagram generation only. I recommend to run the JBang tool `jbang puml-to-png@jabrena --watch .` in order to generate diagrams in PNG format on the fly |
Copy file name to clipboardExpand all lines: GETTING-STARTED.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,25 +10,25 @@ This view has a big green button with the text: `<> Code`. If you click on it, y
10
10
11
11

12
12
13
-
Once you have downloaded it, go to the `Downloads` folder in your system and you should see the zip file: `cursor-rules-java-main.zip`. Unzip it and copy the folder `./cursor` into the Java repository where you want to use these Cursor rules.
13
+
Once you have downloaded it, go to the `Downloads` folder in your system and you should see the zip file: `cursor-rules-java-main.zip`. Unzip it and copy the folder `.cursor` into the Java repository where you want to use these Cursor rules.
14
14
15
15
**Note:** ⚠️ Using this approach, you are using the main branch which is not released yet.
16
16
17
17
### Using the latest tagged zipped rules
18
18
19
-
Downloading the zipped release is the safest approach if you are interested in using the latest well-tested release. Go to [the latest release](https://github.com/jabrena/cursor-rules-java/releases) and download the zip assets included in the latest release. As in the previous case, download the zip, unzip it and copy the folder `./cursor` into the Java repository where you want to use these Cursor rules.
19
+
Downloading the zipped release is the safest approach if you are interested in using the latest well-tested release. Go to [the latest release](https://github.com/jabrena/cursor-rules-java/releases) and download the zip assets included in the latest release. As in the previous case, download the zip, unzip it and copy the folder `.cursor` into the Java repository where you want to use these Cursor rules.
20
20
21
21
### Using a JBang CLI program specialized in this task
22
22
23
23
**JBang** is a tool that lets you run Java code as scripts without the need for traditional project setup, compilation, or build tools - just write Java and run it directly.
24
24
25
-
Using JBang, you can delegate the action to put the `./cursor/rules` from this repository into the Java repository where you want to use these Cursor rules.
25
+
Using JBang, you can delegate the action to put the `.cursor/rules` from this repository into the Java repository where you want to use these Cursor rules.
|[100-java-cursor-rules-list](.cursor/rules/100-java-cursor-rules-list.md)| Create a comprehensive step-by-step guide for using cursor rules for Java |`Create a Java development guide using the cursor rule @100-java-cursor-rules-list`| This cursor rule is applied automatically without any interaction with the software engineer. |
40
40
41
-
Once you have installed the cursor rules in the path `./cursor/rules`, type the following prompt in the cursor chat:
41
+
Once you have installed the cursor rules in the path `.cursor/rules`, type the following prompt in the cursor chat:
0 commit comments