
Skmtc lang java
Guides an agent in writing Java code generators for Skmtc using @skmtc/lang-java
Skmtc lang java 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 java
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.
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 (24 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-java 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-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.
Copy the skill folder to ~/.agents/skills/skmtc-lang-java 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-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.
Copy the skill folder to ~/.cursor/skills/skmtc-lang-java 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-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.
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-javaOr copy the folder to ~/.gemini/skills/skmtc-lang-java yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/skmtc-lang-java:
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.
Get the folder:
git clone --depth 1 https://github.com/skmtc/skmtc.gitThen 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.
What it does
- 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
Skmtc lang java 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.
More from skmtc/skmtc

Guides an agent to write, restructure, or review docs by content type and audience
- Open source
- 20 GitHub stars
- Developer tools

Explains Skmtc's codegen engine so agents can build infrastructure around it
- Open source
- 20 GitHub stars
- Developer tools

Lets an agent run the Skmtc CLI to generate code from OpenAPI documents
- Open source
- 20 GitHub stars
- Developer tools

Walks an agent through diagnosing failed Skmtc generation runs using manifest and parse
- Open source
- 20 GitHub stars
- Developer tools

Guides writing and editing Skmtc generators that turn OpenAPI documents into code
- Open source
- 20 GitHub stars
- Developer tools

Guides an agent writing C# code in Skmtc generators via @skmtc/lang-csharp
- Open source
- 20 GitHub stars
- Developer tools

