# Skmtc lang kotlin

> Skmtc lang kotlin is an open-source agent skill for developer tools. Guides an agent in generating Kotlin code with the Skmtc lang-kotlin library. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/skmtc/skmtc/tree/main/deno/docs/skills/skmtc-lang-kotlin
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-kotlin
- **Collection:** https://github.com/skmtc/skmtc
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill is the Kotlin target-language layer for Skmtc generators, the @skmtc/lang-kotlin package. It covers how to declare the language, the eight Kotlin entity kinds, how imports are derived from file paths, and how output is rendered from a header plus value. It also explains annotations, KDoc, identifier sanitization and where @SerialName belongs on properties.

The skill is meant to be used alongside a general generator skill. It includes a worked example of a kotlinx data class using the current API, and warns that older shipped Kotlin generators use stale call shapes that should not be copied. It also documents handling of inline objects, discriminated unions as sealed interfaces, and common pitfalls with a symptom and fix table.

It is a documentation-style reference with no scripts. It expects a developer building or maintaining a Skmtc generator that emits Kotlin code, and it assumes familiarity with TypeScript and the Skmtc engine.

## When your agent uses it

> The Kotlin target-language layer for Skmtc generators (@skmtc/lang-kotlin): base factories, KtSnippet, the eight entity kinds, packages-from-paths imports, the head+value render model, KtAnnotation and the composition classes, sanitization and @SerialName placement, plus the current-API worked example (the shipped gen-kotlin-* packages are API-stale — do not copy their call shapes). Use ALONGSIDE skmtc-generator whenever a generator emits Kotlin. Headings mirror skmtc-generator's references/typescript.md.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/skmtc/skmtc/tree/HEAD/deno/docs/skills/skmtc-lang-kotlin)
- [License: Apache-2.0](https://github.com/skmtc/skmtc/tree/HEAD/deno/docs/skills/skmtc-lang-kotlin)

## Features

- **Language declaration setup:** Shows how to declare Kotlin projection bases and snippets within a generator.
- **Kotlin entity kinds:** Lists the supported Kotlin declaration kinds and their factory functions.
- **Package and import rules:** Explains deriving Kotlin packages from export paths and emitting sorted imports.
- **Annotations and KDoc:** Covers annotation construction, use-site targets and documentation rendering.
- **Identifier sanitization:** Describes making names valid Kotlin identifiers and when to add backticks or @SerialName.
- **Sealed union support:** Describes mapping discriminated unions to sealed interfaces with Jackson tags.

## Good for

- Write a generator that emits Kotlin data classes from an OpenAPI schema
- Add @SerialName annotations for snake_case JSON keys
- Map discriminated unions to Kotlin sealed interfaces
- Debug generated Kotlin with invalid package or import output

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/skmtc-lang-kotlin` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/skmtc/skmtc.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/skmtc-lang-kotlin &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-kotlin" ~/.claude/skills/skmtc-lang-kotlin &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/skmtc-lang-kotlin` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/skmtc-lang-kotlin` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/skmtc/skmtc.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/skmtc-lang-kotlin &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-kotlin" ~/.agents/skills/skmtc-lang-kotlin &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/skmtc-lang-kotlin` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/skmtc-lang-kotlin` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/skmtc/skmtc.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/skmtc-lang-kotlin &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-kotlin" ~/.cursor/skills/skmtc-lang-kotlin &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/skmtc-lang-kotlin` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/skmtc/skmtc.git --path deno/docs/skills/skmtc-lang-kotlin
```

Or copy the folder to `~/.gemini/skills/skmtc-lang-kotlin` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/skmtc-lang-kotlin`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/skmtc/skmtc.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/skmtc-lang-kotlin &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-kotlin" ~/.copilot/skills/skmtc-lang-kotlin &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/skmtc-lang-kotlin` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/skmtc/skmtc.git
```

Then copy `skmtc/deno/docs/skills/skmtc-lang-kotlin` into your agent's skills folder as `skmtc-lang-kotlin`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Who is Skmtc lang kotlin for?

It is for developers building Skmtc generators that emit Kotlin code. It is meant to be used alongside the skmtc-generator skill.

### Are the shipped gen-kotlin packages safe to copy?

No. The skill states they predate a API flattening and use stale call shapes, so only their structure should be reused.

### How are Kotlin packages determined?

Packages are derived from the directory segments of the export path, and invalid or keyword segments throw an error rather than being sanitized.

### Does Skmtc lang kotlin support inline object schemas?

The skill describes synthesizing inline objects as named sibling declarations, and notes a known engine gap in normalized model insertion.

### How do I install Skmtc lang kotlin in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/skmtc-lang-kotlin to use it in all your projects, or to .claude/skills/skmtc-lang-kotlin in one project.

### Does Skmtc lang kotlin run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Skmtc lang kotlin?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Skmtc lang kotlin?

The closest alternatives to Skmtc lang kotlin are Skmtc lang swift, Skmtc lang scala, Skmtc lang csharp, Skmtc lang go and Skmtc lang rust.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Skmtc lang swift](https://ai-powered.com/skills/skmtc-lang-swift): Skmtc lang swift is an open-source agent skill for developer tools.
- [Skmtc lang scala](https://ai-powered.com/skills/skmtc-lang-scala): Skmtc lang scala is an open-source agent skill for developer tools.
- [Skmtc lang csharp](https://ai-powered.com/skills/skmtc-lang-csharp): Skmtc lang csharp is an open-source agent skill for developer tools.
- [Skmtc lang go](https://ai-powered.com/skills/skmtc-lang-go): Skmtc lang go is an open-source agent skill for developer tools.
- [Skmtc lang rust](https://ai-powered.com/skills/skmtc-lang-rust): Skmtc lang rust is an open-source agent skill for developer tools.
- [Skmtc lang java](https://ai-powered.com/skills/skmtc-lang-java): Skmtc lang java is an open-source agent skill for developer tools.
- [Skmtc lang erlang](https://ai-powered.com/skills/skmtc-lang-erlang): Skmtc lang erlang is an open-source agent skill for developer tools.
- [Skmtc generator](https://ai-powered.com/skills/skmtc-generator-skmtc): Skmtc generator is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/skmtc-lang-kotlin
