Error model validation architect

From JetBrains/skills · View interactive version

Error model validation architect is an AI agent skill from the GitHub repository JetBrains/skills. Design and implement consistent API validation and error-handling behavior for Kotlin plus Spring services. Use when defining error payloads, mapping framework and domain exceptions, standardizing HTTP status codes, adding `@ControllerAdvice`, preventing internal-detail leakage, or ensuring clients

How to use this skill

Skill file

Error Model Validation Architect

Source mapping: Tier 2 high-value skill derived from Kotlin_Spring_Developer_Pipeline.md (SK-07).

Mission

Turn ad-hoc exception handling into a deliberate public contract.

Treat validation and error mapping as part of API design, not a post-processing afterthought.

Inputs To Read

Design The Error Taxonomy

Separate at least these categories:

Do not collapse all non-success outcomes into one generic error envelope.

Status Code Rules

Advanced Contract Decisions

Validation Rules

Framework Exception Coverage

Expert Heuristics

Output Contract

Return these sections:

Guardrails

Quality Bar

A good run of this skill gives clients a predictable error language and gives operators enough server-side detail to debug safely.

A bad run produces a pretty error JSON that still conflates malformed input, business rejection, and internal failure.

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.