# Skmtc lang rust

> Skmtc lang rust is an open-source agent skill for developer tools. Guides an agent writing Rust code generators for the Skmtc toolkit. 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-rust
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-rust
- **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 Rust target-language layer of Skmtc generators, the @skmtc/lang-rust package. It explains how generated Rust files are declared as modules through mod.rs files, how imports are registered between files, and how identifiers such as structs, enums, aliases, constants, functions and impl blocks are produced.

It also covers the render model that splits a declaration's head from its value, how methods are grouped as members of an impl block, and how Option and Box are chosen for nullable and recursive types. A table of producers and a pitfalls list map common compiler errors to their fixes in generator code.

The skill is written for developers building generators on the Skmtc framework. It points to two worked examples, a serde model generator and a reqwest SDK generator, and describes the conventions borrowed from the Progenitor OpenAPI client generator. The generated code targets the Rust 2021 edition or later.

## When your agent uses it

> The Rust target-language layer for Skmtc generators (@skmtc/lang-rust). It covers the projection base factories, RsSnippet, the register shape with `use` imports and modules, the seven identifier kinds, a file as a module and a folder as a module, the `mod.rs` that declares each file, the head and value render model, functions as members of an `impl` block, `Option` and `Box`, the producers for structs, enums, functions, blocks and names, and the conventions of the reference SDK. Use ALONGSIDE skmtc-generator whenever a generator writes Rust.

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

## Features

- **Module and file layout:** Explains how each generated file and folder is declared through mod.rs and how imports are paths between files.
- **Identifier kinds:** Lists the seven declaration kinds, from structs and enums to impl blocks, and how each renders.
- **Head and value render model:** Describes how comments, attributes and trait implementations sit around a declaration's body.
- **Methods as impl members:** Shows how an operation index becomes an impl block whose members are functions.
- **Option and Box handling:** Covers when nullable values become Option and when recursive references need Box.
- **Name and literal helpers:** Documents helpers that convert text into valid Rust names and escape string literals.

## Good for

- Write a generator that turns an OpenAPI schema into Rust serde structs
- Build a Rust API client generator with one method per operation
- Fix a generated Rust file that fails with a missing module declaration
- Handle recursive types in generated Rust models with Box

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Who is Skmtc lang rust for?

It is written for developers who write Skmtc generators that produce Rust code, and it is meant to be used alongside the skmtc-generator skill.

### Which Rust edition does the generated code target?

The generated code targets the 2021 edition of Rust or later.

### Does Skmtc lang rust run any scripts?

No. The skill has one file and no scripts.

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

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

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

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

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

## Where this comes from

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

## Alternatives

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

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