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

85

Quality

81%

Does it follow best practices?

Impact

No eval scenarios have been run

SecuritybySnyk

Passed

No known issues

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 profiling-based refactoring), provides explicit trigger conditions with example phrases, and specifies concrete actions including reviewing specific documentation paths and addressing CPU/memory/threading issues. The description is well-structured with both 'Use when' and 'This should trigger for' clauses, making it easy for Claude to select appropriately.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: reviewing profiling analysis docs, identifying performance bottlenecks, implementing targeted code changes for CPU/memory/threading issues. These are concrete, actionable capabilities.

3 / 3

Completeness

Clearly answers both 'what' (reviewing profiling docs, identifying bottlenecks, implementing code changes for CPU/memory/threading) and 'when' with an explicit 'Use when' clause and a 'This should trigger for' clause with example requests.

3 / 3

Trigger Term Quality

Includes strong natural trigger terms users would say: 'refactor', 'profiling', 'optimize hot path', 'performance bottlenecks', 'CPU', 'memory', 'threading issues'. Also lists explicit example phrases like 'Apply profiling' and 'Refactor the code with profiling'.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive niche: Java code refactoring specifically based on profiling analysis findings, referencing specific project docs and the cursor-rules-java project. Unlikely to conflict with general refactoring or general Java skills due to the profiling-specific focus.

3 / 3

Total

12

/

12

Passed

Implementation

62%

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

This is a reasonably well-structured procedural skill with clear workflow steps and good validation checkpoints. Its main weaknesses are the lack of concrete refactoring code examples (making it more of a process guide than an actionable skill) and some content redundancy between sections. The reference to a detailed guide is appropriate but unverifiable without bundle files.

Suggestions

Add 1-2 concrete before/after code examples of common refactoring patterns (e.g., replacing a hot-path StringBuilder misuse, fixing a connection leak) to improve actionability.

Remove the duplicate 'Refactor the code with profiling' entry in the 'When to use this skill' section and consolidate the 'What is covered' bullet points into the workflow to reduce redundancy.

Ensure the referenced file references/163-java-profiling-refactor.md is included in the bundle so the progressive disclosure chain is complete.

DimensionReasoningScore

Conciseness

The content is mostly efficient but has some redundancy — the 'What is covered' section largely duplicates the workflow steps, and the 'When to use this skill' section repeats 'Refactor the code with profiling' twice. Some tightening is possible.

2 / 3

Actionability

The skill provides concrete commands (./mvnw clean verify) and specific file paths to read, but lacks executable code examples of actual refactoring patterns. The guidance is more procedural than copy-paste ready — it tells Claude to 'implement focused code changes' without showing concrete examples of what those changes look like.

2 / 3

Workflow Clarity

The workflow is clearly sequenced with four explicit steps, includes a mandatory validation checkpoint (run tests, fix if they fail before proceeding), and has a feedback loop for test failures. The constraints section reinforces safety with clear rules about when to stop and ask questions.

3 / 3

Progressive Disclosure

The skill references a detailed file (references/163-java-profiling-refactor.md) for deeper guidance, which is good one-level-deep disclosure. However, no bundle files were provided to verify the reference exists, and the inline content has some redundancy between the overview, 'What is covered', and workflow sections that could be better organized.

2 / 3

Total

9

/

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.