Skip to content
Skill

Skmtc lang kotlin

Guides an agent in generating Kotlin code with the Skmtc lang-kotlin library

Skmtc lang kotlin is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
20
Last commit
License
Apache-2.0
Listing updated

Similar skills

About Skmtc lang kotlin

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 2 files (68 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Skmtc lang kotlin 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.

More from skmtc/skmtc

  1. Guides an agent to write, restructure, or review docs by content type and audience

    • Open source
    • 20 GitHub stars
    • Developer tools
  2. Explains Skmtc's codegen engine so agents can build infrastructure around it

    • Open source
    • 20 GitHub stars
    • Developer tools
  3. Lets an agent run the Skmtc CLI to generate code from OpenAPI documents

    • Open source
    • 20 GitHub stars
    • Developer tools
  4. Walks an agent through diagnosing failed Skmtc generation runs using manifest and parse

    • Open source
    • 20 GitHub stars
    • Developer tools
  5. Guides writing and editing Skmtc generators that turn OpenAPI documents into code

    • Open source
    • 20 GitHub stars
    • Developer tools
  6. Guides an agent writing C# code in Skmtc generators via @skmtc/lang-csharp

    • Open source
    • 20 GitHub stars
    • Developer tools