Skip to content
Skill

Skmtc lang rust

Guides an agent writing Rust code generators for the Skmtc toolkit

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

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.

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 (22 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-rust 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-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.

Claude Code docs on skills

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

Codex docs on skills

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

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

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

Gemini CLI docs on skills

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

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.

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

The SKILL.md format

What it does

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

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

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