CtrlK
BlogDocsLog inGet started
Tessl Logo

521-frameworks-micronaut-testing-unit-tests

Use when you need to write unit tests for Micronaut applications — Mockito-first with @ExtendWith(MockitoExtension.class), @MicronautTest with @MockBean, HttpClient @Client(/) assertions, @Property overrides, @ParameterizedTest, and *Test vs *IT naming. For framework-agnostic Java use @131-java-testing-unit-testing. This should trigger for requests such as Add or improve unit tests in a Micronaut project; Reduce unnecessary @MicronautTest usage with Mockito-first tests. Part of cursor-rules-java project

68

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

Content

62%

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

The skill has a well-structured workflow with proper safety constraints and verification steps, but it over-delegates to the reference file without providing any inline code examples that demonstrate the core testing patterns (Mockito-first, @MockBean, HttpClient). The 'What is covered' section adds bulk without adding actionable content. The skill would benefit significantly from at least one concrete before/after code example showing the Mockito-first approach.

Suggestions

Add at least one concrete, executable code example inline — e.g., a Mockito-first test class vs. an unnecessary @MicronautTest equivalent — so the skill provides immediate actionable value without requiring the reference file.

Remove or condense the 'What is covered in this Skill?' bullet list, which largely duplicates the description metadata and adds tokens without actionable content.

Include a minimal HttpClient test example showing the @MicronautTest + @Client(/) pattern, since this is a key differentiator from the framework-agnostic Java testing skill.

DimensionReasoningScore

Conciseness

The skill is reasonably concise but includes some unnecessary elements like the 'What is covered in this Skill?' bullet list that largely duplicates the description and workflow. The 'Scope' line is also somewhat redundant. However, it avoids explaining concepts Claude already knows.

2 / 3

Actionability

The skill provides concrete commands (./mvnw compile, mvn clean verify) and a clear workflow, but lacks any executable code examples. All actual guidance is deferred to the reference file. There are no inline code snippets showing Mockito-first patterns, @MockBean usage, or HttpClient assertions — the core value of the skill.

2 / 3

Workflow Clarity

The workflow is clearly sequenced with four explicit steps: read reference, gather scope, apply changes, and verify. The constraints section includes mandatory compilation checks before changes, stop-on-failure safety, and post-change verification — forming a proper feedback loop for a potentially destructive refactoring operation.

3 / 3

Progressive Disclosure

The skill correctly references a single external file for detailed guidance, which is good one-level-deep disclosure. However, since no bundle files were provided, we cannot verify the reference exists or is well-structured. Additionally, the SKILL.md itself is too thin — it defers almost everything to the reference, leaving the main file with insufficient standalone value and no quick-start examples.

2 / 3

Total

9

/

12

Passed

Description

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 covers specific Micronaut testing patterns, provides clear trigger conditions with a 'Use when' clause, includes example trigger requests, and explicitly disambiguates from a related skill. The only minor note is that it's somewhat dense with technical annotations, but this is appropriate for the target audience and aids in precise skill selection.

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions and patterns: Mockito-first with @ExtendWith(MockitoExtension.class), @MicronautTest with @MockBean, HttpClient @Client(/) assertions, @Property overrides, @ParameterizedTest, and *Test vs *IT naming conventions. Very detailed and concrete.

3 / 3

Completeness

Clearly answers both 'what' (Mockito-first testing patterns, @MicronautTest with @MockBean, HttpClient assertions, etc.) and 'when' with an explicit 'Use when' clause at the start and example trigger requests. Also provides disambiguation guidance pointing to the alternative skill for framework-agnostic Java.

3 / 3

Trigger Term Quality

Includes strong natural trigger terms: 'unit tests', 'Micronaut', 'Mockito', '@MicronautTest', '@MockBean', 'HttpClient', '@ParameterizedTest'. Also explicitly differentiates from framework-agnostic Java testing skill, and provides example trigger phrases like 'Add or improve unit tests in a Micronaut project'.

3 / 3

Distinctiveness Conflict Risk

Highly distinctive — explicitly scoped to Micronaut applications and explicitly disambiguates from the framework-agnostic Java testing skill (@131-java-testing-unit-testing). The Micronaut-specific annotations and patterns make it very unlikely to conflict with other skills.

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.

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.