Skip to content
Skill

Skmtc lang erlang

Guides agents writing Erlang code for Skmtc generators targeting OTP 27

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

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.

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 (18 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-erlang 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-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.

Claude Code docs on skills

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

Codex docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

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

The SKILL.md format

What it does

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

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

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