SkillsReviewed · ducpm2303

java-solid

java-solid is an AI assistant skill for Java developers reviewing object-oriented design, but its Liskov substitution checklist contains technical errors. It requests findings across all five SOLID principles, suggested refactorings with before-and-after code, and a score counting principles judged satisfied.

Researched 17 Nov 2026

In short.

java-solid is an AI assistant skill for Java developers seeking structured design feedback, but two of its inheritance rules can produce incorrect findings. Its checklist covers responsibilities, extensibility, subtype compatibility, interface size and dependency management. Concrete refactoring suggestions make it useful for supervised design discussions, while reversed Liskov rules and broad size and dependency heuristics limit its reliability. No assistant output, execution results or accuracy measurements are available.

Researched and written by an AI model and checked by a second AI model. How it works

The selected scope is plugins/java-core/skills/java-solid in ducpm2303/claude-java-plugins, including its files and applicable licence notices beside and above it. The supplied manifest contains only SKILL.md and no separate notice text. Analysis covers that complete captured instruction file at the specified revision. Other repository content, referenced sibling skills, host integration and actual assistant behavior are not assessed. Licence permissions remain unknown. Nothing was executed.

The overview

Identity

java-solid is an instruction-based skill in the ducpm2303/claude-java-plugins repository, under plugins/java-core/skills/java-solid. Its supplied artifact is SKILL.md. Original source location: [https://github.com/ducpm2303/claude-java-plugins/tree/main/plugins/java-core/skills/java-solid].

The file describes reviewing supplied Java classes for SOLID violations and adapting suggestions to the detected Java version. It is an assistant instruction resource rather than a standalone Java analyzer.

Assessment

The skill provides a concrete structure for discussing design problems and possible refactorings. Its main correctness issue is the Liskov section: it flags weaker preconditions and stronger postconditions as violations, reversing the usual contract rule.

A compatible subtype generally must not require more from callers or guarantee less than its base type. Accepting additional inputs, such as null where the parent rejects it, is not inherently a violation. A narrower return type is also not inherently a violation. These checklist entries need correction before inheritance findings can be trusted.

Users

Java developers can use the skill to organize a design review around specific classes and their collaborators. Beginners receive explanations and proposed code changes; experienced developers receive a repeatable set of questions about coupling, responsibilities and inheritance.

It is better suited to developers who can challenge its findings than to learners treating every checklist item as an authoritative rule. Contract-sensitive inheritance reviews require particular care because of the Liskov errors.

Capabilities

The checklist addresses all five SOLID principles: keeping responsibilities cohesive, extending behavior without repeatedly changing existing logic, preserving base-type contracts, separating interfaces by client needs, and depending on appropriate abstractions.

Suggested remedies include extracting classes, introducing Strategy or Template Method, replacing unsuitable inheritance with composition, splitting interfaces, and using constructor injection. Each finding is supposed to identify the principle, class and method, explain the problem, and show before-and-after code.

Using it

Requirements

Use requires an AI assistant that can consume these skill instructions and access the Java code under review. The argument hint accepts one class or several related classes. The front matter lists Read, Grep and Glob as allowed tools.

The file specifies no minimum assistant version, supported Java releases, compiler dependency or build-system requirement. It requests version-aware advice without explaining how Java versions are detected. Enforcement of its tool declarations depends on the host and is not established here.

Mechanism

The skill describes matching requests about SOLID, object-oriented design and individual principles. Once loaded, it directs the assistant through examples of suspicious code patterns and corresponding refactoring suggestions.

Its final SOLID Score counts how many of the five principles the assistant judges cleanly satisfied. This is an assistant judgment, not a measured correctness result. The file supplies no executable analysis engine, formal contract verification or score calibration.

Setup

The supplied file contains no installation commands or host configuration instructions. The exact supported loading procedure is unknown; use the chosen assistant's documented skill-loading mechanism with the original SKILL.md.

Provide the relevant classes, interfaces and actual project Java version. Including base classes and callers gives the assistant more context for evaluating inheritance and interface usage, although it does not correct the checklist's technical errors.

Example

An illustrative request is: Check SOLID principles in this OrderService and its related classes, and explain targeted improvements.

If the supplied service combines validation, database access and email delivery, the checklist directs the assistant to consider responsibility separation and show a possible split. Whether a split is justified depends on the application's responsibilities and reasons for change. This illustrates the intended interaction; no resulting review or refactoring was observed.

Assessment & evidence

Limitations

Several checks are heuristics: roughly 200 lines per class, roughly five methods per interface, broad utility-class names, concrete dependencies and static calls. These features can warrant investigation, but do not independently establish a SOLID violation.

Likewise, a switch statement, concrete constructor parameter or UnsupportedOperationException needs context before it justifies redesign. The checklist does not establish how the assistant distinguishes legitimate cases, controls false positives or handles incomplete code. Accuracy and practical refactoring quality are unknown.

Reasoning

The skill's useful feature is connecting a suspected design problem to a specific change, rather than merely assigning a principle label. That makes its recommendations easier for a developer to inspect.

Its recommendations still need a concrete justification: which responsibilities change independently, which extension requires existing logic to change, or which client contract a subtype breaks. An abstraction or class split should address that demonstrated problem; a threshold or naming pattern alone is insufficient.

Alternatives

The file points to /java-design-pattern for open/closed findings and /java-refactor for interface extraction or responsibility splitting. Their implementations, availability and quality are not established by the supplied evidence.

A developer-led review of explicit base-type contracts can complement this skill's inheritance analysis. Compilation and existing project tests can help evaluate proposed refactorings, but do not by themselves prove SOLID compliance. No comparative tool evaluation is available.

Evidence

The available source is the complete supplied SKILL.md at [https://raw.githubusercontent.com/ducpm2303/claude-java-plugins/006a789364c3350c0e691f1f1e8c4fe5859cdcab/plugins/java-core/skills/java-solid/SKILL.md]. Its recorded file SHA-256 is 4cfd6a4d7e2dc85ce2f74fd275ffe4404ce483bd6c19b6b8cba8b8f1c175044b.

This file establishes the written review criteria, declared tools and requested response format. It supplies no observed assistant responses, benchmarks, compilation results or execution evidence.

Access & freshness

Costs

The evidence states no price, subscription requirement, model choice, token usage or operating cost. Any assistant or model charges depend on the environment chosen to use it. Total cost is unknown.

Rights

No licence text or reuse grant is supplied in SKILL.md or as a separate captured notice. Permission to copy, modify or redistribute the skill is unknown.

Public source availability alone does not establish those permissions. Consult applicable notices in the skill folder and its parent directories before redistributing it.

Freshness

The supplied source revision is 006a789364c3350c0e691f1f1e8c4fe5859cdcab, captured on 2026-11-17 at 07:07:54.404 UTC. The findings apply to that revision.

The capture timestamp is not a release or maintenance date. The evidence does not establish whether the main branch has changed since this revision or whether a later revision corrects the checklist.

Actions

Before relying on an inheritance finding, check the actual base-type contract and disregard the reversed precondition and postcondition rules. Ask the assistant to justify each proposed refactoring through a concrete caller, change scenario or responsibility boundary.

Confirm the host's loading procedure and applicable licence notices. Review proposed code changes and validate them with the project's compiler and relevant tests before adoption. No such validation results are available here.

Evidence for this report

plugins/java-core/skills/java-solid/SKILL.mdselected · checked 2026-11-17