Skip to content

Commit 2ff84ac

Browse files
ducpm2303claude
andcommitted
feat!: add globs frontmatter to all plugin CLAUDE.md rules
Rules are now path-scoped — they only inject into context when matching files are open or being edited, not on every prompt. Scopes: java-core/spring/security/performance: **/*.java, pom.xml, build.gradle* java-spring: also application.yml, application.properties java-testing: **/*.java, **/*Test.java, **/*IT.java BREAKING CHANGE: rules previously fired always; now fire only on matching file context. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent db9b771 commit 2ff84ac

5 files changed

Lines changed: 20 additions & 0 deletions

File tree

plugins/java-core/CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
globs: ["**/*.java", "**/pom.xml", "**/build.gradle", "**/build.gradle.kts"]
3+
---
4+
15
# Java Core — Coding Standards
26

37
These rules apply whenever the java-core plugin is active.

plugins/java-performance/CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
globs: ["**/*.java", "**/pom.xml", "**/build.gradle", "**/build.gradle.kts"]
3+
---
4+
15
# Java Performance — Performance Defaults
26

37
These rules apply whenever the java-performance plugin is active.

plugins/java-security/CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
globs: ["**/*.java", "**/pom.xml", "**/build.gradle", "**/build.gradle.kts"]
3+
---
4+
15
# Java Security — Security Defaults
26

37
These rules apply whenever the java-security plugin is active.

plugins/java-spring/CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
globs: ["**/*.java", "**/pom.xml", "**/build.gradle", "**/build.gradle.kts", "**/application.yml", "**/application.properties"]
3+
---
4+
15
# Java Spring — Spring Boot Best Practices
26

37
These rules apply whenever the java-spring plugin is active.

plugins/java-testing/CLAUDE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
---
2+
globs: ["**/*.java", "**/*Test.java", "**/*Tests.java", "**/*IT.java"]
3+
---
4+
15
# Java Testing — Testing Standards
26

37
These rules apply whenever the java-testing plugin is active.

0 commit comments

Comments
 (0)