Skip to content

Commit 7939ca9

Browse files
committed
Improving the xml syntax
1 parent 27e48a7 commit 7939ca9

8 files changed

Lines changed: 28 additions & 30 deletions

.cursor/rules/100-java-checklist-guide.mdc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ alwaysApply: false
55
---
66
# Create a Checklist with all Java steps to use with cursor rules for Java
77

8+
## Role
9+
10+
You are a Senior software engineer with extensive experience in Java programming language and technical documentation
11+
812
## Instructions for AI
913

1014
Your task is to create a comprehensive step-by-step guide that follows the exact format and structure defined in the embedded template below.
1115

1216
Create a markdown file named `CURSOR-RULES-JAVA.md` with the following exact structure: [java-checklist-template.md](mdc:.cursor/rules/templates/java-checklist-template.md)
1317

14-
## Role
15-
16-
You are a Senior software engineer with extensive experience in Java programming language and technical documentation
17-
1818
## Restrictions
1919

2020
**MANDATORY REQUIREMENT**: Follow the embedded template EXACTLY - do not add, remove, or modify any steps, sections, or cursor rules that are not explicitly shown in the template. ### What NOT to Include:
@@ -30,4 +30,4 @@ You are a Senior software engineer with extensive experience in Java programming
3030

3131
- Generate the complete markdown file following the embedded template exactly
3232
- Use proper markdown formatting with headers, code blocks, tables, and checklists
33-
- **VERIFY**: Final output contains ONLY what appears in the embedded template
33+
- **VERIFY**: Final output contains ONLY what appears in the embedded template

.cursor/rules/110-java-maven-best-practices.mdc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ alwaysApply: false
55
---
66
# Maven Best Practices
77

8-
## Instructions for AI
9-
10-
Update the pom.xml based on the following rules about Maven best practices.
11-
128
## Role
139

1410
You are a Senior software engineer with extensive experience in Java software development
1511

12+
## Instructions for AI
13+
14+
Update the pom.xml based on the following rules about Maven best practices.
15+
1616
## Examples
1717

1818
### Table of contents
@@ -587,4 +587,4 @@ Description: Define all dependency and plugin versions in the `<properties>` sec
587587
## Output Requirements
588588

589589
- Update the file pom.xml if something is not correct
590-
- verify changes with the command: `mvn validate`
590+
- verify changes with the command: `mvn validate`

spml/src/main/resources/100-java-checklist-guide.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
<title>Create a Checklist with all Java steps to use with cursor rules for Java</title>
1919
</metadata>
2020

21+
<role>You are a Senior software engineer with extensive experience in Java programming language and technical documentation</role>
22+
2123
<goal>
2224
Your task is to create a comprehensive step-by-step guide that follows the exact format and structure defined in the embedded template below.
2325

2426
Create a markdown file named `CURSOR-RULES-JAVA.md` with the following exact structure: [java-checklist-template.md](mdc:.cursor/rules/templates/java-checklist-template.md)
2527
</goal>
2628

27-
<role>You are a Senior software engineer with extensive experience in Java programming language and technical documentation</role>
28-
2929
<restrictions>
3030
<restrictions-description>**MANDATORY REQUIREMENT**: Follow the embedded template EXACTLY - do not add, remove, or modify any steps, sections, or cursor rules that are not explicitly shown in the template. ### What NOT to Include:</restrictions-description>
3131
<restriction-list>

spml/src/main/resources/110-java-maven-best-practices.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
<title>Maven Best Practices</title>
2020
</metadata>
2121

22+
<role>You are a Senior software engineer with extensive experience in Java software development</role>
23+
2224
<goal>
2325
Update the pom.xml based on the following rules about Maven best practices.
2426
</goal>
2527

26-
<role>You are a Senior software engineer with extensive experience in Java software development</role>
27-
2828
<examples>
2929
<toc auto-generate="true" />
3030
<example number="1" id="effective-dependency-management">

spml/src/main/resources/cursor-rule-generator-1.1.xsl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,13 @@ alwaysApply: </xsl:text><xsl:value-of select="normalize-space(metadata/cursor-ai
2020
<xsl:text>
2121
---
2222
# </xsl:text><xsl:value-of select="metadata/title"/>
23-
24-
<!-- Process goal (Instructions for AI) before role -->
25-
<xsl:apply-templates select="goal"/>
2623
<xsl:text>
24+
2725
## Role
2826

2927
</xsl:text><xsl:value-of select="role"/>
30-
<xsl:text>
31-
</xsl:text>
28+
<!-- Process goal (Instructions for AI) after role -->
29+
<xsl:apply-templates select="goal"/>
3230
<!-- Apply restrictions template if present -->
3331
<xsl:apply-templates select="restrictions"/>
3432

spml/src/main/resources/spml-1.1.xsd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
<xs:complexType>
88
<xs:sequence>
99
<xs:element ref="metadata"/>
10-
<xs:element ref="goal" minOccurs="0"/>
1110
<xs:element ref="role"/>
11+
<xs:element ref="goal" minOccurs="0"/>
1212
<xs:element ref="restrictions" minOccurs="0"/>
1313
<xs:element ref="examples" minOccurs="0"/>
1414
<xs:element ref="output-requirements-section" minOccurs="0"/>

spml/src/test/resources/100-java-checklist-guide.mdc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ alwaysApply: false
55
---
66
# Create a Checklist with all Java steps to use with cursor rules for Java
77

8+
## Role
9+
10+
You are a Senior software engineer with extensive experience in Java programming language and technical documentation
11+
812
## Instructions for AI
913

1014
Your task is to create a comprehensive step-by-step guide that follows the exact format and structure defined in the embedded template below.
1115

1216
Create a markdown file named `CURSOR-RULES-JAVA.md` with the following exact structure: [java-checklist-template.md](mdc:.cursor/rules/templates/java-checklist-template.md)
1317

14-
## Role
15-
16-
You are a Senior software engineer with extensive experience in Java programming language and technical documentation
17-
1818
## Restrictions
1919

2020
**MANDATORY REQUIREMENT**: Follow the embedded template EXACTLY - do not add, remove, or modify any steps, sections, or cursor rules that are not explicitly shown in the template. ### What NOT to Include:
@@ -30,4 +30,4 @@ You are a Senior software engineer with extensive experience in Java programming
3030

3131
- Generate the complete markdown file following the embedded template exactly
3232
- Use proper markdown formatting with headers, code blocks, tables, and checklists
33-
- **VERIFY**: Final output contains ONLY what appears in the embedded template
33+
- **VERIFY**: Final output contains ONLY what appears in the embedded template

spml/src/test/resources/110-java-maven-best-practices.mdc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ alwaysApply: false
55
---
66
# Maven Best Practices
77

8-
## Instructions for AI
9-
10-
Update the pom.xml based on the following rules about Maven best practices.
11-
128
## Role
139

1410
You are a Senior software engineer with extensive experience in Java software development
1511

12+
## Instructions for AI
13+
14+
Update the pom.xml based on the following rules about Maven best practices.
15+
1616
## Examples
1717

1818
### Table of contents
@@ -587,4 +587,4 @@ Description: Define all dependency and plugin versions in the `<properties>` sec
587587
## Output Requirements
588588

589589
- Update the file pom.xml if something is not correct
590-
- verify changes with the command: `mvn validate`
590+
- verify changes with the command: `mvn validate`

0 commit comments

Comments
 (0)