# Skmtc lang scala

> Skmtc lang scala is an open-source agent skill for developer tools. Guides agents writing Scala 3 code for Skmtc generators via @skmtc/lang-scala. 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-scala
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-scala
- **Collection:** https://github.com/skmtc/skmtc
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-04

## About

This skill documents the Scala target-language layer used by Skmtc code generators. It explains how generated Scala files are grouped into packages by folder, how declarations such as case classes, enums, objects, methods and type aliases are registered, and how imports are declared for each file.

It also covers the render model for declarations and their bodies, how Scaladoc comments with @param lines are produced, how absent values map to Option, and how names are converted to valid Scala identifiers, including reserved words and duplicates. A troubleshooting table lists common compiler errors and their fixes.

The skill is meant to be used alongside the skmtc-generator skill whenever a generator writes Scala. It points to two example generators in the Skmtc repository, one for models with circe codecs and one for an sttp-based SDK, and describes the conventions followed by a reference Scala SDK.

## When your agent uses it

> The Scala target-language layer for Skmtc generators (@skmtc/lang-scala). It covers the projection base factories, ScalaSnippet, the register shape with package imports, the six identifier kinds, one folder as one package, the head and value render model, methods as members of a class, Option for absent values, comments with @param lines, and the producers for case classes, enums, objects, methods and names. Use ALONGSIDE skmtc-generator whenever a generator writes Scala.

## 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-scala)
- [License: Apache-2.0](https://github.com/skmtc/skmtc/tree/HEAD/deno/docs/skills/skmtc-lang-scala)

## Features

- **Package layout from folders:** Explains how generated files in one folder share a Scala package and how package names are derived from the base path.
- **Declaration identifier kinds:** Covers the factories for case classes, enums, types, classes, traits and defs used to declare Scala names.
- **Registration and imports:** Describes how projections and snippets register files and the imports each file renders.
- **Option and absent values:** Shows how nullable and optional values become Option types with default None where appropriate.
- **Scaladoc comment producers:** Describes building comments with descriptions and @param lines above declarations.
- **Name and literal helpers:** Covers converting text to valid Scala type and term names and writing safe string literals.
- **Common error fixes:** A table of compiler symptoms, such as duplicate names or missing imports, with their fixes.

## Good for

- Write a generator that emits Scala case classes from an OpenAPI document
- Create a Scala SDK generator with a client class and operation methods
- Fix a Scala compile error in generated code caused by duplicate names
- Map optional and nullable schema properties to Scala Option types
- Produce Scaladoc comments with parameter descriptions for generated classes

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/skmtc-lang-scala` 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-scala &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-scala" ~/.claude/skills/skmtc-lang-scala &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/skmtc-lang-scala` 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-scala &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-scala" ~/.agents/skills/skmtc-lang-scala &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/skmtc-lang-scala` 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-scala &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-scala" ~/.cursor/skills/skmtc-lang-scala &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/skmtc-lang-scala` 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-scala
```

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

### VS Code

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

```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-scala &&
cp -R "$tmp/deno/docs/skills/skmtc-lang-scala" ~/.copilot/skills/skmtc-lang-scala &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/skmtc-lang-scala` 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-scala` into your agent's skills folder as `skmtc-lang-scala`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Skmtc lang scala apply?

Use it alongside the skmtc-generator skill whenever a generator writes Scala code.

### What Scala version does the generated code target?

The generated code targets Scala 3.3 or later.

### Does Skmtc lang scala run any scripts or require extra tools?

The skill has no scripts and does not set allowed tools. It is a single SKILL.md documentation file.

### Which example generators does Skmtc lang scala reference?

It references @skmtc/gen-scala-circe for models and @skmtc/gen-scala-sttp for an SDK, both in the Skmtc repository.

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

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

### Does Skmtc lang scala 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 scala?

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 scala?

The closest alternatives to Skmtc lang scala are Skmtc lang swift, Skmtc lang csharp, Skmtc lang kotlin, 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 csharp](https://ai-powered.com/skills/skmtc-lang-csharp): Skmtc lang csharp is an open-source agent skill for developer tools.
- [Skmtc lang kotlin](https://ai-powered.com/skills/skmtc-lang-kotlin): Skmtc lang kotlin 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 ruby](https://ai-powered.com/skills/skmtc-lang-ruby): Skmtc lang ruby 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 lang java](https://ai-powered.com/skills/skmtc-lang-java): Skmtc lang java is an open-source agent skill for developer tools.

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