Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cursor/rules/100-java-system-prompt-java-list.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: 100-java-system-prompt-java-list
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Create a Checklist with all Java steps to use with system prompts for Java

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/110-java-maven-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to improve your Maven pom.xml using best practice
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Maven Best Practices

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/111-java-maven-dependencies.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to think to add maven dependencies to your projec
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Add Maven dependencies for improved code quality

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/112-java-maven-plugins.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to add or configure Maven plugins in your pom.xml
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Maven Plugins: pom.xml Configuration Best Practices

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/113-java-maven-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to create a DEVELOPER.md file for a Maven project
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Create DEVELOPER.md for the Maven projects

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/121-java-object-oriented-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to review, improve, or refactor Java code for obj
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Object-Oriented Design Guidelines

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/122-java-type-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to review, improve, or refactor Java code for typ
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Type Design Thinking in Java

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/123-java-exception-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to apply Java exception handling best practices
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Exception Handling Guidelines

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/124-java-secure-coding.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to apply Java secure coding best practices — in
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Secure coding guidelines

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/125-java-concurrency.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to apply Java concurrency best practices — incl
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java rules for Concurrency objects

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/126-java-observability-logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 126-java-observability-logging
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Logging Best Practices

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/128-java-generics.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to review, improve, or refactor Java code for gen
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Generics Best Practices

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/131-java-testing-unit-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to review, improve, or write Java unit tests —
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Unit testing guidelines

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/132-java-testing-integration-testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to set up, review, or improve Java integration te
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Integration testing guidelines

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to refactor Java code to adopt modern Java featur
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Modern Java Development Guidelines (Java 8+)

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/142-java-functional-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to apply functional programming principles in Jav
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Functional Programming rules

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/143-java-functional-exception-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to apply functional exception handling best pract
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Functional Exception handling Best Practices

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/144-java-data-oriented-programming.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to apply data-oriented programming best practices
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Data-Oriented Programming Best Practices

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/151-java-performance-jmeter.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 151-java-performance-jmeter
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Run performance tests based on JMeter

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/161-java-profiling-detect.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 161-java-profiling-detect
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Profiling Workflow / Step 1 / Collect data to measure potential issues

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/162-java-profiling-analyze.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 162-java-profiling-analyze
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Profiling Workflow / Step 2 / Analyze profiling data

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/163-java-profiling-refactor.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 163-java-profiling-refactor
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Profiling Workflow / Step 3 / Refactor code to fix issues

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/164-java-profiling-verify.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: 164-java-profiling-verify
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Profiling Workflow / Step 4 / Verify results

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/170-java-documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to generate or improve Java project documentation
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Documentation Generator with modular step-based configuration

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/171-java-adr.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to generate Architecture Decision Records (ADRs)
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java ADR Generator with interactive conversational approach

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/172-java-diagrams.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to generate Java project diagrams — including U
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Java Diagrams Generator with modular step-based configuration

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/173-java-agents.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Use when you need to generate an AGENTS.md file for a Java reposito
license: Apache-2.0
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# AGENTS.md Generator for Java repositories

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/behaviour-article-writer.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: behaviour-article-writer
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Behaviour Article Writer

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/behaviour-consultative-interaction.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: behaviour-consultative-interaction
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Behaviour Consultative Interaction Technique

Expand Down
2 changes: 1 addition & 1 deletion .cursor/rules/behaviour-progressive-learning.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name: behaviour-progressive-learning
metadata:
author: Juan Antonio Breña Moral
version: 0.12.0
version: 0.13.0-SNAPSHOT
---
# Behaviour Progressive Learning

Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ You are an expert Java developer and technical writer for this project.
./mvnw clean install -pl system-prompts-generator

# Deploy Skills to skills/
./mvnw clean install -pl skills-generator
./mvnw clean install -pl skills-generator -am

# Serve the website locally (mirrors GitHub Pages path: http://localhost:8820/)
./mvnw clean generate-resources jbake:inline -pl site-generator -P local-preview
Expand Down
2 changes: 1 addition & 1 deletion documentation/MAINTENANCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Can you update the current changelog for 0.10.0 comparing git commits in relatio
Can you update the current changelog for 0.12.0 comparing git commits in relation to 0.11.0 tag. Use @https://keepachangelog.com/en/1.1.0/ rules

# Maven command to update the maven version to next minor version
./mvnw versions:set -DnewVersion=0.12.0
./mvnw versions:set -DnewVersion=0.13.0-SNAPSHOT
./mvnw versions:commit

# Prompt to update the project to a new version
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

<groupId>info.jab</groupId>
<artifactId>cursor-rules-java</artifactId>
<version>0.12.0</version>
<version>0.13.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>cursor-rules-java</name>
<description>The project provides a curated collection of `System prompts` and `Skills` for Java Enterprise
Expand Down
2 changes: 1 addition & 1 deletion site-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<parent>
<groupId>info.jab</groupId>
<artifactId>cursor-rules-java</artifactId>
<version>0.12.0</version>
<version>0.13.0-SNAPSHOT</version>
</parent>

<artifactId>cursor-rules-java-site</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion skills-generator/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>info.jab</groupId>
<artifactId>cursor-rules-java</artifactId>
<version>0.12.0</version>
<version>0.13.0-SNAPSHOT</version>
</parent>

<groupId>info.jab.pml</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
public final class SkillsGenerator {

private static final String PROJECT_TAG = " Part of the skills-for-java project";
private static final String LICENSE_FIELD = "license: Apache-2.0";

private final CursorRulesGenerator cursorRulesGenerator;

Expand Down Expand Up @@ -146,8 +147,17 @@ private String loadSkillSummary(String skillId) {
}

private String appendProjectTagToDescription(String content) {
boolean hasLicense = content.contains("license:");
return content.lines()
.map(line -> line.startsWith("description:") ? line + PROJECT_TAG : line)
.map(line -> {
if (line.startsWith("description:") && !line.endsWith(PROJECT_TAG)) {
return line + PROJECT_TAG;
}
if (!hasLicense && line.startsWith("metadata:")) {
return LICENSE_FIELD + System.lineSeparator() + line;
}
return line;
})
.collect(java.util.stream.Collectors.joining(System.lineSeparator(), "", System.lineSeparator()));
}

Expand Down
6 changes: 5 additions & 1 deletion skills-generator/src/main/resources/skill-inventory.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[
{"id": "010", "requiresSystemPrompt": false, "skillId": "010-java-design-plans"},
{"id": "014", "requiresSystemPrompt": false, "skillId": "014-agile-create-user-story"},
{"id": "020", "requiresSystemPrompt": false, "skillId": "020-architecture-functional-requirements-cli"},
{"id": "021", "requiresSystemPrompt": false, "skillId": "021-architecture-functional-requirements-rest"},
{"id": "030", "requiresSystemPrompt": false, "skillId": "030-architecture-non-functional-requirements"},
{"id": "040", "requiresSystemPrompt": false, "skillId": "040-planning-enhance-ai-plan-mode"},
{"id": 110},
{"id": 111},
{"id": 112},
Expand Down
Loading
Loading