CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

writing-springboot-tests

Use when writing or adding tests for Spring Boot code at a service's edges: HTTP clients that call other services (WireMock: 4xx and 5xx responses, timeouts, retries), Kafka or RabbitMQ listeners (redelivery, poison messages, dead-letter topics), events published to other services, or full-API tests against real databases with Testcontainers; also when a Boot 4 test needs the right imports, slices or container wiring. Supplies verified Boot 4.1 templates and the framework traps that make such tests pass without proving anything. Not for reviewing existing tests (see code-reviewer) or Boot 3 to 4 test migration (see springboot-migration).

Quality

87%

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

75%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 lean, opinionated rulebook that pushes all code into a well-indexed set of template assets and embeds strong explicit validation (show each test failing once, report failing tests with their contract clause). Minor costs: rotable version-number provenance inline, only a code fragment in the body itself, an implicit rather than explicit step order, and two pre-work references that depend on a sibling skill's directory layout.

Suggestions

Move the 'Verified on Spring Boot 4.1.1 with Postgres 18, Kafka 4.1 and WireMock 3.13' provenance into the template files or a version note so the body stays free of rotting version numbers.

Inline one complete, executable example (e.g., a minimal WireMock 4xx-retry test) so the core pattern is copy-paste ready without opening assets/.

Make the 'Before writing' references resolvable within this skill's bundle — vendor traps.md and boot4-test-toolkit.md (or link them from assets/) so the required pre-reading does not depend on a sibling skill's directory layout.

DimensionReasoningScore

Conciseness

The body is lean and directive with no concept-explanation padding ('A mocked client, template, or transaction manager can't show timeouts, retries, redelivery, or publish-after-commit'). Not 5: 'Verified on Spring Boot 4.1.1 with Postgres 18, Kafka 4.1 and WireMock 3.13' embeds version-number provenance outside any old-patterns/deprecated section, a rot cost the rubric penalizes; not 3: nothing else could be trimmed.

4 / 5

Actionability

Concrete directives throughout ('Timeout tests use the production timeout value', 'test secured routes through @AutoConfigureMockMvc') plus a 13-entry table mapping each edge to a real template file. Not 5: the only inline code is a two-line contrast fragment, so the body itself is not copy-paste ready — full code is one hop away in assets/; not 3: the guidance is specific and executable at every step.

4 / 5

Workflow Clarity

A clear sequence is carried by section order (Rules → Before writing → Templates → Secured routes → Report) with explicit validation in rule 3 ('Break the guarded line and watch the test go red ... If a test fails on the current code, report it with the contract clause; never weaken the assertion') and a Report checklist. Not 5: the process order is implicit in the section arrangement rather than an explicit step sequence; not 3: validation checkpoints are present and unmissable.

4 / 5

Progressive Disclosure

All 13 asset references in the Templates table resolve one level deep with edge-keyed navigation, and the body stays a lean overview. Not 5: the two 'Before writing' references ('../code-reviewer/references/testing/traps.md', '../code-reviewer/references/testing/boot4-test-toolkit.md') point outside the skill's own bundle and do not resolve from this skill's directory; not 3: the core structure of lean body → indexed asset files is exemplary.

4 / 5

Total

16

/

20

Passed

Description

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

An exceptionally precise description: it names the exact testing edges (WireMock 4xx/5xx and timeouts, Kafka/RabbitMQ redelivery and dead-lettering, Testcontainers-backed API tests), states what it supplies, gives explicit 'Use when' triggers, and draws clean boundaries against sibling skills. The only minor gap is a few natural trigger phrasings like 'integration test' that are absent.

DimensionReasoningScore

Specificity

Enumerates multiple concrete capabilities with comprehensive coverage: 'HTTP clients that call other services (WireMock: 4xx and 5xx responses, timeouts, retries)', 'Kafka or RabbitMQ listeners (redelivery, poison messages, dead-letter topics)', 'full-API tests against real databases with Testcontainers', plus what it supplies ('verified Boot 4.1 templates and the framework traps'). Not 4: every edge and its failure modes are named with no coverage gaps.

5 / 5

Completeness

'Use when writing or adding tests for Spring Boot code at a service's edges: ...' gives an explicit and detailed when; 'Supplies verified Boot 4.1 templates and the framework traps ...' states the what; exclusions ('Not for reviewing existing tests ... or Boot 3 to 4 test migration') add boundary clarity. Both what and when are explicit with concrete trigger phrases.

5 / 5

Trigger Term Quality

Includes natural terms users would say: 'writing or adding tests', 'Spring Boot', 'WireMock', 'Kafka or RabbitMQ', 'Testcontainers', 'Boot 4'. Not 5: common user phrasings such as 'integration test', 'controller/repository test', or 'test coverage' are absent; not 3: all major technologies and actions a user would name are present.

4 / 5

Distinctiveness Conflict Risk

Clear niche (edge/integration testing at a service's boundaries in Boot 4) with explicit fences against the nearest siblings: 'Not for reviewing existing tests (see code-reviewer) or Boot 3 to 4 test migration (see springboot-migration)'. Minimal conflict risk.

5 / 5

Total

19

/

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

a-pavithraa/springboot-skills-marketplace

Path

plugins/springboot-architecture/skills/writing-springboot-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.