Skip to content
Skill

Skmtc lang scala

Guides agents writing Scala 3 code for Skmtc generators via @skmtc/lang-scala

Skmtc lang scala 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 scala

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.

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 1 file (19 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-scala 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-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.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/skmtc-lang-scala 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-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.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/skmtc-lang-scala 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-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.

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

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

Gemini CLI docs on skills

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

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.

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-scala into your agent's skills folder as skmtc-lang-scala. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

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

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

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