CtrlK
BlogDocsLog inGet started
Tessl Logo

martinfrancois/java-optionals

Help AI coding agents use Java Optional well in new code and cleanups, without replacing one antipattern with another.

100

2.08x
Quality

100%

Does it follow best practices?

Impact

100%

2.08x

Average score across 4 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

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 an excellent skill description that clearly defines its scope (Java Optional best practices), lists concrete actions (write, review, refactor), and provides comprehensive trigger terms covering both high-level concepts (nullable, fallback, default values) and specific API methods (isPresent, orElseThrow, findFirst). The explicit 'Use whenever...' clause with detailed scenarios makes it easy for Claude to know exactly when to select this skill.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: 'Write, review, and refactor Java Optional code', 'improving readability', 'preventing common Optional antipatterns such as null-style control flow and readability regressions'. The description names specific antipatterns and concrete activities.

3 / 3

Completeness

Clearly answers both 'what' (write, review, refactor Java Optional code using best practices, prevent antipatterns) and 'when' with an explicit 'Use whenever...' clause that enumerates detailed trigger scenarios including writing/reviewing/refactoring Optional code and specific API patterns.

3 / 3

Trigger Term Quality

Excellent coverage of natural terms a user would use: 'Java Optional', 'isPresent/isEmpty', 'get/orElseThrow', 'orElse(null)', 'optional.stream()', 'findFirst/findAny', 'nullable', 'fallback', 'default values', 'checked exceptions'. These are exactly the terms a developer would mention when working with Optional.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive — narrowly scoped to Java Optional specifically, with very specific trigger terms like 'isPresent', 'orElseThrow', 'optional.stream()' that are unlikely to conflict with general Java coding skills or other language skills.

3 / 3

Total

12

/

12

Passed

Implementation

100%

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

This is an excellent skill file that is concise, actionable, and well-structured. It provides a clear numbered workflow with concrete code examples, explicit validation steps, and well-organized progressive disclosure to reference files. The content respects Claude's intelligence by focusing on domain-specific rules and patterns rather than explaining basic Java or Optional concepts.

DimensionReasoningScore

Conciseness

The content is lean and efficient. It assumes Claude knows Java and Optional basics, never explains what Optional is, and every section delivers actionable rules or code. No wasted tokens on background concepts.

3 / 3

Actionability

Provides executable before/after Java code examples, specific API guidance (map vs flatMap vs orElseGet), concrete antipattern rules, and a clear numbered workflow. The code snippets are copy-paste ready and the guidance is specific enough to act on immediately.

3 / 3

Workflow Clarity

The 8-step workflow (0-7) is clearly sequenced with logical progression from version checking through implementation to verification. Step 7 explicitly includes validation (run tests, trace cases, run marker scan, fix and re-scan), providing a proper feedback loop for error recovery.

3 / 3

Progressive Disclosure

Clean reference table at the top with three clearly-signaled one-level-deep references (hard-stops, examples, API compatibility). The SKILL.md serves as an actionable overview while appropriately deferring the full antipattern list, worked examples, and API compatibility details to separate files.

3 / 3

Total

12

/

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.

Reviewed

Table of Contents