CtrlK
BlogDocsLog inGet started
Tessl Logo

163-java-profiling-refactor

Use when you need to refactor Java code based on profiling analysis findings — including reviewing docs/profiling-problem-analysis and docs/profiling-solutions, identifying specific performance bottlenecks, and implementing targeted code changes to address CPU, memory, or threading issues. This should trigger for requests such as Refactor the code with profiling; Apply profiling; Refactor the code with profiling; Optimize hot path. Part of cursor-rules-java project

65

Quality

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

SKILL.md
Quality
Evals
Security

Quality

Content

70%

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

A well-structured, brief skill body with a clear validated workflow and proper progressive disclosure to a real reference file. It loses points on redundancy and on the abstractness of the actual refactoring guidance.

Suggestions

Eliminate the duplication between the intro, 'What is covered in this Skill?', and 'When to use this skill' so each section adds unique information.

Make the refactor step more actionable by listing concrete refactor categories or example techniques (e.g., caching repeated results, reducing allocation in hot loops, narrowing synchronization scope) instead of only 'Implement focused code changes'.

DimensionReasoningScore

Conciseness

The body is lean and free of concept padding, but the intro is restated in 'What is covered in this Skill?' and 'When to use this skill' duplicates the frontmatter triggers, including the same duplicated 'Refactor the code with profiling' entry.

2 / 3

Actionability

Concrete commands and file paths are present ('./mvnw clean verify', 'docs/profiling-problem-analysis-YYYYMMDD.md'), but the core refactor step is abstract ('Implement focused code changes for documented CPU, memory, or threading hotspots') with no specific patterns or examples.

2 / 3

Workflow Clarity

A clear 4-step sequence with an explicit validation checkpoint ('Run ./mvnw clean verify ... if tests fail, fix issues before continuing') and a fix-retry feedback loop in the Constraints.

3 / 3

Progressive Disclosure

Well-organized sections with a single clearly-signaled, one-level-deep reference to references/163-java-profiling-refactor.md, which exists in the bundle.

3 / 3

Total

10

/

12

Passed

Description

85%

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A clear, well-scoped description that concretely states capabilities and provides explicit when-to-use guidance. Its main weakness is trigger-term variety, weakened by a duplicated phrase and missing common performance-optimization phrasings.

Suggestions

Remove the duplicated 'Refactor the code with profiling' trigger and add natural variations like 'optimize performance', 'fix performance bottleneck', or 'improve Java performance'.

Drop the trailing 'Part of cursor-rules-java project' metadata, which does not aid triggering and adds noise.

DimensionReasoningScore

Specificity

Lists multiple concrete actions: 'reviewing docs/profiling-problem-analysis and docs/profiling-solutions', 'identifying specific performance bottlenecks', and 'implementing targeted code changes to address CPU, memory, or threading issues'.

3 / 3

Completeness

Explicitly answers both what (refactor Java code from profiling findings) and when, via 'Use when you need to refactor Java code based on profiling analysis findings' and 'This should trigger for requests such as...'.

3 / 3

Trigger Term Quality

Includes natural triggers like 'Refactor the code with profiling', 'Apply profiling', and 'Optimize hot path', but 'Refactor the code with profiling' is duplicated and common variations such as 'optimize performance' or 'fix performance issue' are absent.

2 / 3

Distinctiveness Conflict Risk

Narrowly scoped to Java profiling-driven refactoring with distinct triggers, making it unlikely to fire for unrelated skills.

3 / 3

Total

11

/

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.

Validation16 / 16 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.