mcpbeat

503 Frameworks Micronaut Validation

jabrena/503-frameworks-micronaut-validation

Use when you need to design, review, or improve validation in Micronaut applications — including Bean Validation on @Controller methods, @Body @Valid, query/path parameter validation, @ConfigurationProperties validation, custom constraints, nested DTO validation, and ExceptionHandler mapping for constraint violations. This should trigger for requests such as Add validation support in Micronaut; Review Micronaut validation rules; Improve request validation in Micronaut REST APIs; Add custom validation constraints in Micronaut; Validate Micronaut configuration properties. Part of Plinth Toolkit

3k tokens
context cost
the whole folder, loaded on every use
2
files
instructions only
0
copies elsewhere
how many repositories repackaged it
423
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/jabrena/plinth --skill 503-frameworks-micronaut-validation

The instruction itself

5 sections, as written by the author

Micronaut Validation Guidelines

Apply Micronaut validation best practices at HTTP API boundaries.

What is covered in this Skill?

  • Bean Validation annotations on DTOs and command models
  • @Valid / @Validated usage in Micronaut controllers
  • Validation groups and custom validators
  • Consistent mapping of validation failures to 400 responses
  • Safe and predictable validation error payloads

Scope: Apply recommendations based on the reference rules and good/bad examples.

Constraints

Before applying validation changes, ensure the project compiles. After improvements, run full verification.

  • MANDATORY: Run ./mvnw compile or mvn compile before applying any change
  • SAFETY: If compilation fails, stop immediately
  • VERIFY: Run ./mvnw clean verify or mvn clean verify after applying improvements
  • BEFORE APPLYING: Read the reference for detailed rules and examples

When to use this skill

  • Add validation support in Micronaut
  • Review Micronaut validation rules
  • Improve request validation in Micronaut REST APIs
  • Add custom validation constraints in Micronaut
  • Validate Micronaut configuration properties
  • Improve constraint violation handling in Micronaut

Workflow

  • Read reference and assess project context

Read references/503-frameworks-micronaut-validation.md and inspect the current project setup before proposing changes.

  • Gather scope and decide target improvements

Identify requested outcomes, constraints, and the minimum safe set of changes to apply.

  • Apply framework-aligned changes

Implement or refactor validation-related configuration/code following the reference patterns and project conventions.

  • Run verification and report results

Execute appropriate build/tests and summarize what changed, what was verified, and any follow-up actions.

Reference

For detailed guidance, examples, and constraints, see references/503-frameworks-micronaut-validation.md.

How to use it

Copy the folder

Take jabrena/503-frameworks-micronaut-validation from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.