Spring mvc webflux api builder

From JetBrains/skills · View interactive version

Spring mvc webflux api builder is an AI agent skill from the GitHub repository JetBrains/skills. Design and generate Kotlin Spring HTTP APIs with correct controller signatures, DTOs, validation, serialization assumptions, error handling, and web tests. Use when building or changing REST endpoints, choosing between MVC and WebFlux, modeling request and response payloads, standardizing error resp

How to use this skill

Skill file

Spring MVC WebFlux API Builder

Source mapping: Tier 1 critical skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-06).

Mission

Produce API code that is not only plausible but correct for the repository's actual Spring stack.

Generate endpoints, DTOs, validation, and test scaffolding as one coherent unit.

Decide The Stack First

Design The Contract Before Writing Code

Generate In This Order

  1. Request and response DTOs.
  2. Validation annotations with correct Kotlin @field: use-site targets.
  3. Controller signature.
  4. Service interface or use-case boundary.
  5. Mapping or translation code between transport and domain models.
  6. Error handling via @ControllerAdvice or the project's equivalent.
  7. One focused web-layer test proving the contract.

Kotlin-Specific Rules

MVC And WebFlux Rules

Advanced Contract Decisions

Expert Heuristics

Output Contract

Return either a ready-to-apply patch plan or concrete files or code blocks containing:

Also return a short explanation of the API contract decisions that materially affect compatibility.

Guardrails

Verification Checklist

Quality Bar

A good run of this skill gives the user an endpoint that compiles, validates, serializes, and fails consistently.

A bad run mixes frameworks, gets Kotlin validation wrong, or invents an error model that the rest of the service does not use.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.