# Skmtc lang java

> Skmtc lang java is an open-source agent skill for developer tools. Guides an agent in writing Java code generators for Skmtc using @skmtc/lang-java. 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-java
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-java
- **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 Java target-language layer of Skmtc, the TypeScript toolkit for generating code from OpenAPI documents. It explains how a generator declares Java as its output language, how files map to packages, and how type names, identifiers and nested types are registered so the generated Java compiles.

It walks through the building blocks a generator uses: base factories for models, operations and indexes, the producers that render records, enums, classes, sealed interfaces, methods and annotations, and the helpers for names, literals and doc comments. A table of common compiler errors with their fixes helps the agent diagnose failures in generated output.

The skill also documents the conventions of a reference Java SDK that the generated code follows, and where the two generators differ from it. It is meant to be used alongside the skmtc-generator skill, and the generated code targets Java 17 or later.

## When your agent uses it

> The Java target-language layer for Skmtc generators (@skmtc/lang-java). It covers the projection base factories for a model, an operation and an Index, JavaSnippet, the register shape with full type names, the three identifier kinds, one folder as one package, a public type in the file of its name, declarations that render themselves, nested types for inline schemas, methods as members of a class, and the producers for records, enums, classes, methods, annotations, doc comments and names. It has the conventions of the reference Java SDK. Use ALONGSIDE skmtc-generator whenever a generator writes Java.

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

## Features

- **Java Language Declaration:** Shows how to set up the base factories that declare Java as the output language of a generator.
- **Package and File Mapping:** Explains how folders become packages and how public types are placed in files of the same name.
- **Type Registration and Imports:** Covers registering declarations with full type names and how imports are rendered.
- **Records, Enums and Sealed Unions:** Describes producers for records, enums, classes and sealed interfaces built from schemas.
- **Nested Types and Naming:** Details how inline schemas become nested types and how names are claimed and converted to valid Java identifiers.
- **Common Compiler Error Fixes:** Lists typical javac errors in generated Java with the change that resolves each one.

## Good for

- Write a generator that turns an OpenAPI document into Java records
- Create a Java SDK generator with service classes for each API tag
- Fix a javac error in generated Java code caused by a name clash
- Map OpenAPI oneOf unions with discriminators to Java sealed interfaces
- Configure file and package layout for generated Java output

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### When should Skmtc lang java be used?

Use it alongside skmtc-generator whenever a generator writes Java.

### What Java version does the generated code need?

Generated code needs Java 17 or later.

### Does Skmtc lang java change how generated files are named?

It says the project should set settings.generatedSuffix to an empty string so that javac accepts a public type in a file of its name.

### Which generators are the worked examples?

The skill points to @skmtc/gen-java-jackson as a model generator and @skmtc/gen-java-http as an SDK generator.

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

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

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

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

The closest alternatives to Skmtc lang java are Skmtc lang scala, Skmtc lang kotlin, Skmtc lang swift, Skmtc lang csharp and Skmtc lang ruby.

## Where this comes from

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

## Alternatives

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

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