# Skmtc lang erlang

> Skmtc lang erlang is an open-source agent skill for developer tools. Guides agents writing Erlang code for Skmtc generators targeting OTP 27. 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-erlang
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-erlang
- **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 a reference for the Erlang output layer of the Skmtc code generator, the @skmtc/lang-erlang package. It explains how generated code maps onto Erlang concepts: one file becomes one module, identifiers are split into module, type and function kinds, and registration replaces import statements. It also covers how absent and null JSON values map to map key forms, how names and atoms are derived from document text, and how indentation and expression producers render code.

The skill is meant to be loaded alongside a generator skill. It points to two worked examples, a JSON model generator and an HTTP SDK generator, and describes the module order and export rules the generated files follow. A pitfalls table lists common compiler and generator errors with their fixes, such as duplicate module names, atom length limits and variable shadowing in nested funs.

Using it assumes familiarity with the Skmtc generator model and with Erlang/OTP 27. The generated code needs no packages beyond OTP, and the style follows the erlef/oidcc project.

## When your agent uses it

> The Erlang target-language layer for Skmtc generators (@skmtc/lang-erlang). It covers the projection base factories, ErlangSnippet, the register shape with no imports, the three identifier kinds, one file as one module, the file as the owner of the module order and the export attributes, absent and null values, and the producers for types, functions, calls, maps and names. Use ALONGSIDE skmtc-generator whenever a generator writes Erlang.

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

## Features

- **Module-per-file mapping:** Explains how each generated file becomes one Erlang module named after the file.
- **Identifier kinds and registration:** Covers module, type and function identifiers, and how definitions are registered without imports.
- **Absent and null handling:** Describes how required, optional and nullable schema fields map to Erlang map associations.
- **Name and atom rules:** Shows how document text becomes atoms, variables and binaries, with length and safety limits.
- **Expression producers:** Lists helpers that render calls, funs, case expressions, maps, tuples and function specs.
- **Common error fixes:** A table of generator and compiler errors with the change that resolves each one.

## Good for

- Write a generator that produces Erlang model modules from a JSON schema
- Create an Erlang SDK module per API tag with one function per operation
- Fix a generator error about duplicate module or function names
- Make generated Erlang maps handle optional and nullable JSON fields

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Which Erlang version does the generated code target?

Generated code targets Erlang/OTP 27 or later and needs no package outside OTP.

### Should Skmtc lang erlang be used alone?

No. The skill says to read the skmtc-generator skill first and use this one alongside it whenever a generator writes Erlang.

### Does the generated code need imports between modules?

No. A module refers to another by its name, such as pet_model:t(), and the register call has no imports field.

### Why must the generatedSuffix setting be empty?

With the default suffix a file like pet_model.generated.erl would contain a dot, which is not allowed in an Erlang module name.

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

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

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

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

The closest alternatives to Skmtc lang erlang are Skmtc lang rust, Skmtc lang go, Skmtc lang swift, Skmtc lang ruby and Skmtc lang scala.

## Where this comes from

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

## Alternatives

- [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 go](https://ai-powered.com/skills/skmtc-lang-go): Skmtc lang go is an open-source agent skill for developer tools.
- [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 ruby](https://ai-powered.com/skills/skmtc-lang-ruby): Skmtc lang ruby 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 generator](https://ai-powered.com/skills/skmtc-generator-skmtc): Skmtc generator 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.

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