CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

writing-springboot-tests

Use when writing or adding tests or integration 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; domain logic whose rules must hold for every input (calculations, value objects, state transitions, parsing and formatting), tested as properties over generated inputs; 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).

1.79x
Quality

98%

Does it follow best practices?

Impact

95%

1.79x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

The canonical home for this skill is apavithraa/springboot-architecture

SKILL.md
Quality
Evals
Security

Quality

Content

96%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 dense, expert-level body that earns nearly every token: rules carry the testing philosophy, templates carry the mechanics, and validation/feedback loops (fail-once, PIT, property minimization, the Report checklist) are explicit rather than implied. The single structural weakness is that its most important preparatory reading lives in another skill's directory, making the skill dependent on that sibling being co-installed.

Suggestions

Make the cross-skill dependency resilient: either co-locate the two critical files (traps.md, boot4-test-toolkit.md) as a local references/ directory, or state in the body what to do when the code-reviewer skill is absent (e.g., which traps to re-derive from the templates themselves).

Consider summarizing the handful of highest-risk traps from traps.md inline (one line each) so the skill degrades gracefully without the sibling, keeping the full list external.

DimensionReasoningScore

Conciseness

The body assumes competence throughout — it never explains what Kafka, WireMock, or a transaction is — and spends its tokens only on non-obvious, load-bearing facts like "jqwik… its output tells AI agents to ignore its results", "Surefire names a failing case by its index only", and "A request on a random port can't sign in through a persona". Version references (Boot 4.1, Spring Kafka 4, jqwik 1.10) are scoping facts that justify concrete decisions rather than rotting temporal advice, so the anti-version guideline does not bite. Every line is directive or uniquely earned, matching the 'lean and efficient; every token earns its place' anchor.

5 / 5

Actionability

Guidance is concrete and executable: the Templates table maps each edge to a specific file ("Outbound HTTP client… → assets/http-client-wiremock-test.java"), all 14 of which exist and are copy-paste-quality (property-test.java verified: seeded SplittableRandom, boundary mixing, as(...) messages, PIT follow-up). The one inline snippet (".with(personas.as(\"admin\"))") is directly usable, and directives name exact annotations and tools (@ParameterizedTest, @MethodSource, PIT, @AutoConfigureMockMvc). This meets the 'fully executable; copy-paste ready; common cases covered' anchor.

5 / 5

Workflow Clarity

The workflow is sequenced by section order — Before writing (read traps and toolkit) → Rules for deriving cases → Templates for mechanics → technique sections → Report — with unusually explicit validation: "Show each test failing once", PIT on logic classes, and "when a property fails, cut the input down by hand to the smallest one that still fails… and keep that input as an example test". There are genuine feedback loops ("decide which is wrong (the code, the property, or the requirement)… and ask the user when the requirement is unclear") and a closing checklist ("List the tests added… tests that fail on the current code… contract clauses left untested"), matching the level-5 anchor with its explicit checkpoints and error-recovery loops rather than the minor-gaps level-4 anchor.

5 / 5

Progressive Disclosure

The body is a lean ~65-line overview with all bulk mechanics split one level deep into 14 assets, each indexed by a table mapping edge to file, and each asset reference verified to exist. However, the two load-bearing 'Before writing' references ("../code-reviewer/references/testing/traps.md" and "…/boot4-test-toolkit.md") point outside the skill's own directory to a sibling skill that is not present in this bundle, so they cannot be verified and break navigation if the sibling is not co-installed — a minor organization gap that fits the level-4 anchor ('most content appropriately placed; references mostly clear; minor gaps') better than a clean 5.

4 / 5

Total

19

/

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.

An exemplary description: it names every triggering scenario with the specific technologies and failure modes involved, states what it supplies, and explicitly fences off adjacent skills. Its only cost is density — at roughly 140 words it is at the upper bound of description length, though every clause carries a trigger or capability rather than padding.

DimensionReasoningScore

Specificity

The description enumerates concrete, verifiable capabilities rather than abstractions: "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", and "tested as properties over generated inputs". Coverage across all the skill's edges is comprehensive with essentially no generic filler, matching the level-5 anchor; it is far above the 'lists several specific actions; minor gaps' level-4 anchor.

5 / 5

Completeness

Both halves are explicit: 'when' opens the description ("Use when writing or adding tests or integration tests for Spring Boot code at a service's edges…") and 'what' is stated concretely ("Supplies verified Boot 4.1 templates and the framework traps that make such tests pass without proving anything"). This matches the level-5 anchor of clearly answering both what and when with concrete trigger phrases, not merely the 'when could be more explicit' level-4 anchor.

5 / 5

Trigger Term Quality

Natural user phrasings are densely covered: "writing or adding tests or integration tests for Spring Boot", "Kafka", "RabbitMQ", "timeouts", "retries", "WireMock", "Testcontainers", "Boot 4" — including tool names users actually name. It also supplies negative triggers ("Not for reviewing existing tests… or Boot 3 to 4 test migration") that steer users to sibling skills, going beyond the level-4 anchor's 'a few natural terms missing'.

5 / 5

Distinctiveness Conflict Risk

The niche is sharply defined (edge/contract testing and property tests for Spring Boot) and the description closes with explicit disambiguation: "Not for reviewing existing tests (see code-reviewer) or Boot 3 to 4 test migration (see springboot-migration)". Explicit not-for clauses make wrong-skill triggering unlikely, satisfying the level-5 'clear niche with distinct triggers; minimal conflict risk' anchor better than the merely 'mostly distinct' level-4 anchor.

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.

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.