add-dto
CommunityCreate Kotlin DTOs from JSON instantly
Authormattbobambrose
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill removes the manual, error-prone work of writing Kotlin DTO classes by generating kotlinx.serialization-compatible data classes directly from a JSON string, ensuring correct package placement, types, and naming conventions.
Core Features & Use Cases
- Parse a provided JSON string and infer Kotlin types: String, Int/Long, Double, Boolean, List<T>, and nested objects.
- Emit top-level @Serializable data classes with non-nullable val properties and trailing commas.
- Add @SerialName annotations for JSON keys with underscores while using camelCase property names.
- Generate separate top-level classes for nested JSON objects in the same file and prefer Long when integer values exceed Int range.
- Save the file to src/main/kotlin using the package declared in src/main/kotlin/Main.kt.
Quick Start
Use the add-dto command with a target Kotlin filename followed by the JSON string to generate a serializable data class file in src/main/kotlin.
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: add-dto Download link: https://github.com/mattbobambrose/mattbobambrose-claude-skills/archive/main.zip#add-dto 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.