CtrlK
BlogDocsLog inGet started
Tessl Logo

145-java-refactoring-high-performance

Use when you need to refactor Java code for high performance — including memory/allocation reduction, CPU hot-path optimization, and syntax/API/control-flow improvements. This should trigger for requests such as Review Java code for high performance; Optimize Java hot path; Reduce Java allocations; Improve Java latency/throughput. Part of cursor-rules-java project

61

Quality

71%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

Optimize this skill with Tessl

npx tessl skill review --optimize ./skills/145-java-refactoring-high-performance/SKILL.md
SKILL.md
Quality
Evals
Security

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 clearly defines its scope (Java performance optimization), lists concrete actions, and provides explicit trigger guidance with natural user phrases. The 'Use when' and 'This should trigger for' clauses make it easy for Claude to select this skill appropriately. Minor note: 'Part of cursor-rules-java project' adds little selection value but doesn't detract significantly.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: memory/allocation reduction, CPU hot-path optimization, syntax/API/control-flow improvements, and mentions reviewing code, optimizing hot paths, reducing allocations, and improving latency/throughput.

3 / 3

Completeness

Clearly answers both 'what' (refactor Java code for high performance including memory reduction, CPU optimization, syntax/API improvements) and 'when' (explicit 'Use when' clause plus 'This should trigger for' with specific example requests).

3 / 3

Trigger Term Quality

Includes strong natural trigger terms users would say: 'refactor Java code', 'high performance', 'optimize Java hot path', 'reduce Java allocations', 'improve Java latency/throughput', 'review Java code'. These cover common variations of how users would phrase performance optimization requests.

3 / 3

Distinctiveness Conflict Risk

Narrowly scoped to Java performance optimization specifically, covering a clear niche (hot-path, allocations, latency/throughput). Unlikely to conflict with general Java skills or non-performance refactoring skills due to the specific performance focus and explicit trigger terms.

3 / 3

Total

12

/

12

Passed

Implementation

42%

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

This skill is well-structured as a routing document that directs to detailed references by bottleneck type, demonstrating good progressive disclosure. However, it lacks any concrete, executable guidance — no code examples, no profiling commands, no measurement tools — making it feel like a table of contents rather than an actionable skill. The workflow is reasonable but too abstract to be immediately useful without the reference files.

Suggestions

Add at least one concrete example of how to identify a hotspot (e.g., a JFR/async-profiler command or a JMH benchmark snippet) to make the 'Identify hotspot' step actionable.

Include a minimal before/after code example for at least one optimization category (e.g., allocation reduction) so the skill has standalone value beyond just pointing to references.

Make the validation step concrete by specifying measurement tools or commands (e.g., 'Run JMH benchmark: `java -jar benchmarks.jar -f 3 -wi 5 -i 5`') and define what constitutes 'meaningful gains'.

Remove the 'What is covered in this Skill?' section as it duplicates information already conveyed by the workflow steps and reference links.

DimensionReasoningScore

Conciseness

The skill includes some unnecessary content like the 'What is covered in this Skill?' bullet list that largely duplicates the workflow and reference sections. The 'When to use this skill' section repeats the description. However, it's not egregiously verbose and avoids explaining basic Java concepts.

2 / 3

Actionability

The skill provides no concrete code examples, commands, or executable guidance. It describes a workflow abstractly ('Identify hotspot', 'Apply targeted optimizations', 'Validate') without showing how to do any of these things. All actionable content is deferred to reference files that aren't provided for evaluation.

1 / 3

Workflow Clarity

The four-step workflow is sequenced logically (identify → select reference → apply → validate), but validation steps are vague ('compare before/after behavior') with no concrete measurement commands or tools specified. There's no explicit feedback loop for when optimizations don't show gains beyond 'keep only changes with meaningful gains.'

2 / 3

Progressive Disclosure

The skill serves as a clear overview that appropriately delegates detailed content to three well-named, one-level-deep reference files organized by bottleneck domain (memory, CPU, code syntax). Navigation is well-signaled with both inline mentions in the workflow and a dedicated Reference section with links.

3 / 3

Total

8

/

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.

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Repository
jabrena/cursor-rules-java
Reviewed

Table of Contents

Is this your skill?

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.