skmtc-lang-kotlin

Generate and validate Kotlin source structures for SKMTC OpenAPI code generators.

19|Updated Aug 27, 2025
One-click install
npx skills add https://github.com/skmtc/skmtc --skill skmtc-lang-kotlin
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skmtc-lang-kotlin
Source: https://github.com/skmtc/skmtc/tree/main/deno/docs/skills/skmtc-lang-kotlin
Command: npx skills add https://github.com/skmtc/skmtc --skill skmtc-lang-kotlin

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps TypeScript and Deno developers build SKMTC generators that produce well-structured Kotlin code without re-deriving language-specific rules for declarations, imports, packages, annotations, naming, and schema rendering.

Core Features & Use Cases

  • Kotlin Target Integration: Configure model and OpenAPI operation projections with the Kotlin language layer and its projection-base veneers.
  • Code Rendering: Generate Kotlin files, data classes, interfaces, sealed interfaces, enums, type aliases, values, constructors, function signatures, annotations, and KDoc.
  • Import and Package Management: Handle symbol-level imports, aliases, path-derived packages, same-package suppression, and Kotlin package validation.
  • Schema Routing: Implement schema-to-value routers for objects, arrays, references, unions, primitives, defaults, nullability, and serialization annotations.
  • Naming and Validation: Sanitize Kotlin property names, escape hard keywords, validate package segments, and preserve correct generated output structure.
  • Use Case: Use this Skill alongside the SKMTC generator skill to create a production-ready Kotlin SDK generator that converts OpenAPI models and operations into Kotlin source files with correct imports, annotations, and sealed union hierarchies.

Quick Start

Use the skmtc-lang-kotlin skill to scaffold or review an SKMTC generator that emits Kotlin data classes and API interfaces from an OpenAPI specification.

Frequently Asked Questions about skmtc-lang-kotlin

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate Kotlin data classes from an OpenAPI schema?

You can generate Kotlin data classes from an OpenAPI schema by using a code generation skill that applies schema-to-value routing to render data classes, sealed interfaces, and enums with correct package directives and imports.

How does schema-to-value routing work for Kotlin SDK generation?

Schema-to-value routing for Kotlin SDK generation maps OpenAPI objects, arrays, references, and primitives to corresponding Kotlin types while handling defaults, nullability, and serialization annotations automatically.

Can I use TypeScript to build a generator that produces Kotlin source files?

Yes, TypeScript and Deno developers can build generators that produce Kotlin source files by leveraging a Kotlin language layer with projection-base veneers to handle declarations and rendering.

How do you handle Kotlin keyword conflicts and package validation during OpenAPI code generation?

Kotlin keyword conflicts and package validation are handled during code generation by sanitizing property names, escaping hard keywords, and validating package segments to preserve correct generated output structure.

What is the best way to manage imports when generating Kotlin from OpenAPI specifications?

Managing imports when generating Kotlin from OpenAPI is best handled through symbol-level import resolution that supports aliases, path-derived packages, and same-package suppression for clean, valid output.

Does OpenAPI code generation for Kotlin support sealed union hierarchies?

OpenAPI code generation for Kotlin supports sealed union hierarchies by rendering sealed interfaces and data classes that represent schema unions, ensuring type-safe Kotlin SDK output.