Use when you need to refactor Java code to adopt modern Java features (Java 8+) — including migrating anonymous classes to lambdas, replacing Iterator loops with Stream API, adopting Optional for null safety, switching from legacy Date/Calendar to java.time, using collection factory methods, applying text blocks, var inference, or leveraging Java 25 features like flexible constructor bodies and module import declarations. This should trigger for requests such as Review Java code for modern Java development; Apply best practices for modern Java development in Java code. Part of cursor-rules-java project
88
85%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
Quality
Discovery
100%Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.
This is a strong skill description that excels across all dimensions. It provides highly specific concrete actions, includes abundant natural trigger terms that developers would use, explicitly addresses both what the skill does and when to use it with a clear 'Use when' clause, and occupies a distinct niche focused on Java code modernization. The only minor weakness is that it's somewhat verbose, but the detail serves the purpose of disambiguation well.
| Dimension | Reasoning | Score |
|---|---|---|
Specificity | The description lists numerous specific concrete actions: migrating anonymous classes to lambdas, replacing Iterator loops with Stream API, adopting Optional for null safety, switching from legacy Date/Calendar to java.time, using collection factory methods, applying text blocks, var inference, and leveraging Java 25 features like flexible constructor bodies and module import declarations. | 3 / 3 |
Completeness | The description clearly answers both 'what' (refactor Java code to adopt modern Java features with a detailed list of specific modernizations) and 'when' (explicitly starts with 'Use when' and includes trigger phrases like 'Review Java code for modern Java development' and 'Apply best practices for modern Java development'). | 3 / 3 |
Trigger Term Quality | Includes many natural keywords users would say: 'refactor Java code', 'modern Java features', 'lambdas', 'Stream API', 'Optional', 'null safety', 'java.time', 'text blocks', 'var inference', 'Java 25', 'best practices', 'modern Java development'. These cover a wide range of terms a developer would naturally use. | 3 / 3 |
Distinctiveness Conflict Risk | The description carves out a very clear niche: Java modernization/refactoring specifically targeting modern Java features (Java 8+ through Java 25). The specific feature mentions (lambdas, Stream API, java.time, text blocks, etc.) make it highly unlikely to conflict with other skills, and the 'cursor-rules-java project' attribution adds further distinctiveness. | 3 / 3 |
Total | 12 / 12 Passed |
Implementation
70%Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.
This is a well-structured skill with strong workflow clarity and good progressive disclosure, appropriately deferring detailed patterns to a reference file. Its main weaknesses are moderate redundancy between the constraints and workflow sections, and a lack of any inline code examples showing before/after refactoring patterns, which would make the skill more immediately actionable without requiring the reference file.
Suggestions
Add at least one concrete before/after code example inline (e.g., anonymous class → lambda) to make the skill immediately actionable without requiring the reference file.
Remove redundancy between the Constraints section and Workflow step 1 — the compile-first requirement is stated three times (constraints bullet 1, constraints bullet 2, and workflow step 1).
| Dimension | Reasoning | Score |
|---|---|---|
Conciseness | The skill is mostly efficient but includes some unnecessary content. The 'What is covered in this Skill?' bullet list largely duplicates what the reference file would contain, and the 'When to use this skill' section restates obvious triggers. The constraints and workflow sections are reasonably tight, though some redundancy exists between the constraints ('Run compile before') and the workflow step 1 ('Run compile before'). | 2 / 3 |
Actionability | The skill provides concrete commands (./mvnw compile, mvn clean verify) and references a detailed file, but the SKILL.md itself contains no executable code examples or concrete refactoring patterns. The actual actionable content is deferred entirely to the reference file. Step 3 ('Refactor incrementally using appropriate language/library features') is vague without inline examples. | 2 / 3 |
Workflow Clarity | The workflow is clearly sequenced with explicit validation checkpoints: compile before changes, read reference, apply changes incrementally, then verify with full build. There's a clear stop condition if compilation fails (feedback loop), and the constraints reinforce the validation steps. This covers the destructive/batch operation pattern well. | 3 / 3 |
Progressive Disclosure | The skill provides a clear overview with a well-signaled one-level-deep reference to the detailed guide. The SKILL.md serves as an appropriate entry point with workflow and constraints, while deferring detailed examples and patterns to the reference file. Navigation is straightforward. | 3 / 3 |
Total | 10 / 12 Passed |
Validation
100%Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.
Validation — 11 / 11 Passed
Validation for skill structure
No warnings or errors.
762cb86
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.