CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

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

68

Quality

86%

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

78%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.

A well-structured overview body: concrete safety/verification commands, explicit stop conditions, and a properly signaled one-level-deep reference that carries the detailed rules and examples. The gaps are minor — slight duplication between the trigger list and coverage bullets, and generic middle workflow steps.

DimensionReasoningScore

Conciseness

The body is lean — a bullet list of concrete annotations with no explanation of concepts Claude already knows, and commands given inline ("./mvnw compile", "./mvnw clean verify"). Minor trimming is possible: the 'When to use this skill' section repeats the trigger list already carried by the description and mirrored in the coverage bullets, and 'BEFORE APPLYING: Read the reference' duplicates Workflow step 1.

4 / 5

Actionability

Concrete, executable checkpoints are present ("Run `./mvnw compile` or `mvn compile` before applying any change", "Run `./mvnw clean verify` or `mvn clean verify` after applying improvements", an exact reference path to read). This fits anchor 4 rather than 5 because Workflow steps 2–3 ('Gather scope and decide target improvements', 'Apply framework-aligned changes') stay high-level and defer all specifics to the reference, so there is no copy-paste-ready example in the body itself.

4 / 5

Workflow Clarity

A clear four-step sequence (read reference → gather scope → apply → verify/report) with explicit checkpoints: MANDATORY pre-compile, SAFETY stop on failure, VERIFY after changes, and EDGE CASE clauses for ambiguous scope or missing tooling. It sits at anchor 4 rather than 5 because error handling is 'stop immediately' rather than a fix-and-retry feedback loop, and the middle steps are generic.

4 / 5

Progressive Disclosure

The SKILL.md body is a true overview: all detail lives in one reference file, references/321-frameworks-spring-boot-testing-unit-tests.md, which exists on disk, is well-signaled twice (Workflow step 1 and a linked '## Reference' section), and contains no nested references — a clean one-level-deep structure that matches anchor 5.

5 / 5

Total

17

/

20

Passed

Description

87%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.

A strong description: concrete capability list, explicit trigger phrases, and explicit disambiguation against sibling Java/Spring testing skills. Its only flaws are the second-person opening clause and a few missing natural synonyms.

DimensionReasoningScore

Specificity

Enumerates multiple concrete capabilities ("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"), which is comprehensive within the domain. However, the opening clause "Use when you need to write unit tests" is second-person voice, so the rubric's third-person guideline applies a 1-point penalty to an otherwise anchor-5 listing.

4 / 5

Completeness

Both 'what' (write Spring Boot unit tests with the enumerated technique list) and 'when' ("Use when you need to write unit tests for Spring Boot applications" plus "This should trigger for requests such as ...") are explicitly and concretely answered with named trigger requests, matching the anchor-5 example pattern.

5 / 5

Trigger Term Quality

Explicit natural trigger phrases are given ("Review Java code for Spring Boot unit tests", "Write Mockito-first unit tests for Spring Boot services", "Avoid unnecessary @SpringBootTest") plus key annotations, matching the 'good keyword coverage; a few natural terms missing' anchor. Common synonyms users might say — e.g., 'JUnit tests', 'mock my service', 'test my controller' — are absent, keeping it below anchor 5.

4 / 5

Distinctiveness Conflict Risk

It carves out a clear niche and actively routes away overlapping requests: "For framework-agnostic Java use @131-java-testing-unit-testing. For integration tests use @322-frameworks-spring-boot-testing-integration-tests." Combined with Spring-Boot-specific triggers, conflict risk is minimal, matching the anchor-5 'clear niche with distinct triggers' example.

5 / 5

Total

18

/

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.

Validation — 16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository

jabrena/plinth

Path

skills/321-frameworks-spring-boot-testing-unit-tests/SKILL.md

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.