CtrlK
BlogDocsLog inGet started
Tessl Logo

321-frameworks-spring-boot-testing-unit-tests

Use when you need to write unit tests for Spring Boot applications — including pure unit tests with @ExtendWith(MockitoExtension.class) for @Service/@Component, slice tests with @WebMvcTest and @MockitoBean for controllers, @JsonTest for JSON serialization, parameterized tests with @CsvSource/@MethodSource, test profiles, and @TestConfiguration. For framework-agnostic Java use @131-java-testing-unit-testing. For integration tests use @322-frameworks-spring-boot-testing-integration-tests. This should trigger for requests such as Review Java code for Spring Boot unit tests; Apply best practices for Spring Boot unit tests in Java code; Write Mockito-first unit tests for Spring Boot services; Avoid unnecessary @SpringBootTest in Spring unit tests; Review Spring Boot slice-free unit test design. Part of Plinth Toolkit

70

Quality

85%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

71%Weight 40%Scale 1-5

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

The body is a well-structured, lean overview with strong progressive disclosure and a validation-gated workflow, but it relies on the reference file for all executable test code, which limits inline actionability to directives and build commands rather than copy-paste examples.

Suggestions

Add one or two short inline executable test snippets (e.g., a minimal @ExtendWith(MockitoExtension.class) + @InjectMocks service test and a @WebMvcTest slice test) so common cases are actionable without opening the reference, raising actionability toward 5.

Remove the duplicated trigger-phrase list in the 'When to use' section since it already appears verbatim in the description frontmatter, tightening conciseness toward 5.

Make the post-verification failure handling explicit (e.g., 'if verify fails, fix and re-run verify before reporting') to add a clear fix-and-revalidate feedback loop and raise workflow_clarity to 5.

DimensionReasoningScore

Conciseness

The body is lean and directive (compact 'What is covered' bullets, constraint directives, a 4-step workflow, single reference link) and does not explain concepts Claude already knows; the only minor trim opportunity is that the 'When to use' list and 'What is covered' bullets duplicate trigger phrases already in the description, keeping it just below the score-5 anchor.

4 / 5

Actionability

Provides concrete executable commands (`./mvnw compile`, `mvn clean verify`) and names specific annotations/patterns, but the body itself contains no inline executable test code — it offloads all code examples to the reference file — so common-case executable guidance is missing, placing it between the score-3 (incomplete executable guidance) and score-4 anchors and closer to 3.

3 / 5

Workflow Clarity

A clear 4-step sequence with explicit validation checkpoints (MANDATORY compile gate before changes, SAFETY stop-on-failure, VERIFY after) and edge-case handling, fitting the score-4 anchor; the destructive/batch cap does not apply because validation is present, and it falls just short of 5 because the post-verify failure/retry loop is only weakly implied ('stop immediately') rather than an explicit fix-and-revalidate loop.

4 / 5

Progressive Disclosure

A concise overview split into well-organized sections with one clearly-signaled, one-level-deep reference to a real bundle file (references/321-frameworks-spring-boot-testing-unit-tests.md, which exists and holds the detailed examples), matching the score-5 anchor for clean navigation and appropriate content split.

5 / 5

Total

16

/

20

Passed

Description

100%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

The description is exemplary: third-person, concise, comprehensive in named capabilities, with explicit 'Use when' guidance, natural trigger phrases, and proactive disambiguation from sibling skills. It hits the top anchor on every dimension.

DimensionReasoningScore

Specificity

Lists multiple concrete, specific capabilities — pure unit tests with @ExtendWith(MockitoExtension.class), slice tests with @WebMvcTest/@MockitoBean, @JsonTest, parameterized tests with @CsvSource/@MethodSource, test profiles, @TestConfiguration — giving comprehensive coverage of the unit-testing surface, fitting the score-5 anchor rather than 4 (no meaningful gaps).

5 / 5

Completeness

Explicitly answers both what (write unit tests for Spring Boot with the listed annotations) and when (an explicit 'Use when...' clause plus concrete trigger requests), matching the score-5 anchor; the missing-'Use when' cap does not apply.

5 / 5

Trigger Term Quality

Provides multiple natural trigger phrases users would say ('Review Java code for Spring Boot unit tests', 'Apply best practices for Spring Boot unit tests in Java code', 'Write Mockito-first unit tests', 'Avoid unnecessary @SpringBootTest', 'Review Spring Boot slice-free unit test design') with synonym-level coverage, matching the comprehensive score-5 anchor over 4.

5 / 5

Distinctiveness Conflict Risk

Clear Spring Boot unit-testing niche with explicit cross-references disambiguating from sibling skills ('For framework-agnostic Java use @131-...', 'For integration tests use @322-...'), minimizing conflict risk and fitting the score-5 anchor over 4.

5 / 5

Total

20

/

20

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
jabrena/plinth
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.