kotlin-dto-patterns
CommunityStandardize Kotlin DTOs for APIs.
Authorspandios
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill provides a comprehensive guide and patterns for creating consistent, maintainable, and well-documented Kotlin Data Transfer Objects (DTOs) for REST APIs, ensuring adherence to best practices for request and response handling.
Core Features & Use Cases
- Request/Response DTO Structure: Defines clear patterns for creating
Create,Update, andSearchrequest DTOs, as well asResponse,ListItem, andDetailresponse DTOs. - OpenAPI Schema Annotations: Demonstrates the correct usage of
@field:Schemafor generating accurate API documentation. - Validation: Integrates common validation annotations (
@NotBlank,@Size,@Pattern, etc.) for robust input handling. - Pagination: Provides a
PageResponseDTO for consistent API pagination. - Nested DTOs: Illustrates patterns for creating DTOs for related entities.
Quick Start
Use the kotlin-dto-patterns skill to generate a CreateProductRequest DTO with name and price fields, including validation and OpenAPI schema annotations.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: kotlin-dto-patterns Download link: https://github.com/spandios/vibe-utils/archive/main.zip#kotlin-dto-patterns Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.