In short.
Performance Smell Detection is a Java performance review skill for developers using a coding assistant, but its suggestions need profiling and some examples need correction before reuse. It supplies written instructions for identifying repeated work, unnecessary allocations and collection problems. Its measurement-first approach is useful, while numerical performance claims, inconsistent severity labels and version-sensitive examples limit how confidently its advice can be applied. No execution results, detection evaluation or measured speedups are supplied.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied skills/performance-smell-detection folder: SKILL.md and README.md at commit 049043449da59b04dc8fa9967466b171be5e49a7, plus the repository-root LICENSE governing reuse. Other repository folders, sibling skills and linked external articles are excluded. No skill, shell command or Java example was executed. Installation, compilation, assistant behavior, detection accuracy and performance remain untested.
The overview
Identity
Performance Smell Detection is an assistant skill in the decebals/claude-code-java repository. Its folder contains SKILL.md, which defines the instructions, and README.md, which explains scope and usage. The skill identifier is performance-smell-detection.
Original source: [https://github.com/decebals/claude-code-java/tree/main/skills/performance-smell-detection]. The supplied snapshot is pinned to commit 049043449da59b04dc8fa9967466b171be5e49a7.
Assessment
The skill offers a useful checklist for reviewing a method that profiling has already identified as expensive. It explains why suspicious code may still be acceptable and encourages preserving readability when no measured problem exists.
Its recommendations should be treated as hypotheses. The supplied material does not establish detection accuracy, benchmark results or performance improvements, and several examples and severity labels require human review.
Users
Beginners can use the examples to learn why repeated regex compilation, growing strings in loops and repeated list searches deserve attention. Experienced Java developers can use the checklist to structure reviews of measured bottlenecks.
The instructions suit developers who can inspect the assistant's recommendations and obtain measurements. Database specialists and developers investigating garbage collection or heap configuration will need additional resources because those areas are outside its stated scope.
Capabilities
The instructions cover string concatenation in loops, formatting overhead, repeated stream searches, parallel streams with shared mutable state, boxing, regex compilation, collection capacity, lookup structures and unbounded results.
They also discuss virtual threads for blocking I/O and provide a structured concurrency example. Suggested findings use high, medium or low severity, with advice to measure before making many optimizations. These are documented review capabilities; actual assistant behavior is unassessed.
Using it
Requirements
Using it as an assistant skill requires a host that supports loading these instructions and Java source to review. The repository and README indicate a Claude coding-assistant context, but supported host versions and an exact loading procedure are unspecified.
The text discusses features across Java 9, 21 and 25. Reusing individual examples requires checking the project's JDK and any preview-feature requirements. Profilers, JMH or production metrics must be supplied separately to substantiate performance concerns.
Mechanism
SKILL.md combines a name and description with written guidance, contrasting Java examples and a review checklist. It guides an assistant to recognize suspicious patterns, explain their context and suggest alternatives.
The included grep commands search for text such as regex calls, wrapper variables, ArrayList construction and findAll(). Those searches identify candidates; they do not determine loop nesting, execution frequency or measured cost. No profiling integration or executable analyzer is supplied in the folder.
Setup
Obtain the files from the pinned folder: [https://github.com/decebals/claude-code-java/tree/049043449da59b04dc8fa9967466b171be5e49a7/skills/performance-smell-detection]. The supplied files do not specify an installation command, destination directory or activation procedure; those details require the assistant host's documentation.
When presenting code for review, include the target JDK, representative input sizes and any existing performance measurements. Retain the applicable copyright and permission notice when copying the skill.
Example
For a loop that repeatedly calls input.matches with the same regex, the written guidance recommends compiling a Pattern once and creating a matcher for each input. A useful review request would ask the assistant to explain the suspected repeated work and propose a measurement to check its importance.
This illustrates the supplied instructions. Whether the change improves a particular application depends on the workload; no assistant response or measured improvement is established.
Assessment & evidence
Limitations
The stream-versus-loop speed ratios, collection-size thresholds for parallelism and claims about millions of concurrent I/O operations have no accompanying benchmark methodology or results. They should not be treated as workload guarantees.
The repeated-stream-search example captures the changing loop variable i in a lambda, which conflicts with Java's requirement for captured local variables to be final or effectively final. It needs correction before reuse. The structured concurrency example is marked preview; compatibility with a particular JDK is not established.
Database performance, architecture and JVM tuning are excluded, although pagination and repository findAll() examples appear in the collection guidance. The skill therefore touches database-related symptoms without supplying a complete database review.
Reasoning
The strongest recommendations target repeated work: reuse a compiled regex, accumulate loop output with a builder, or replace repeated list scans with a lookup structure. Their practical value depends on execution frequency, input size, memory use and preserving program behavior.
Severity labels are inconsistent. String concatenation in loops is medium in the quick reference but high in the final checklist. Regex advice also uses absolute language despite the wider measurement-first philosophy. Prioritization should therefore follow measured application impact rather than the labels alone.
Alternatives
The files direct database questions to jpa-patterns and architecture questions to architecture-review. The README also names java-code-review for broader quality reviews and concurrency-review for thread safety. Those sibling resources are not supplied, so their capabilities are unassessed.
JMH, profilers and production metrics are measurement options named by the skill. They can provide evidence about cost that these written review instructions cannot establish on their own.
Evidence
The source material consists of the full skill instructions, the accompanying README and the repository-root MIT licence at the same commit. No test suite, benchmark data or execution logs are included.
Instructions: [https://raw.githubusercontent.com/decebals/claude-code-java/049043449da59b04dc8fa9967466b171be5e49a7/skills/performance-smell-detection/SKILL.md]. Overview: [https://raw.githubusercontent.com/decebals/claude-code-java/049043449da59b04dc8fa9967466b171be5e49a7/skills/performance-smell-detection/README.md]. The README's external references were not supplied, so their contents do not substantiate claims here.
Access & freshness
Costs
The supplied files give no assistant subscription prices, API rates, token usage or operating-cost estimates. Costs for the chosen assistant, profiling tools and computing resources remain unknown.
The MIT licence grants reuse rights, but does not establish the total cost of using the skill with an assistant or measuring an application.
Rights
SKILL.md declares MIT, and the repository-root licence names Decebal Suiu with a 2026 copyright notice. It permits use, copying, modification, distribution, sublicensing and sale, provided the copyright and permission notices accompany copies or substantial portions. It also disclaims warranties and liability.
Licence source: [https://raw.githubusercontent.com/decebals/claude-code-java/049043449da59b04dc8fa9967466b171be5e49a7/LICENSE]. The linked external articles are not included in this licence evidence.
Freshness
The supplied source snapshot was captured on 16 November 2026 at commit 049043449da59b04dc8fa9967466b171be5e49a7. That identifies the material described here; it does not establish its last modification date or current repository contents.
The text discusses Java 21 and 25, including preview concurrency APIs and a Java 25 string hash-code optimization claim. These version-specific claims were not independently verified. Current host compatibility and later source changes are unknown.
Actions
Identify an expensive code path through profiling or existing metrics, then use the skill to generate specific hypotheses. Include the target JDK and representative workload, and ask for the evidence needed to justify each suggested change.
Review adapted snippets for compilation and API compatibility before use. Compare candidate changes with appropriate measurements, using JMH where suitable, and verify that behavior remains correct. Seek a separate database, architecture or JVM investigation when the issue falls outside this skill's scope.
