# Skmtc lang csharp

> Skmtc lang csharp is an open-source agent skill for developer tools. Guides an agent writing C# code in Skmtc generators via @skmtc/lang-csharp. 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-csharp
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-csharp
- **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 C# target-language layer of Skmtc, a generator toolkit. It explains how a generator declares C# as its output language, how projection base factories and snippets are set up, and how namespaces, imports and identifier kinds such as records, enums, classes, interfaces and methods map onto files. It also covers how declarations, comments, attributes and nullable types are rendered, along with name and literal helpers and common compiler errors.

The skill is meant to be used alongside a general generator skill. It points to two worked example generators, one for System.Text.Json models and one for an HttpClient-based SDK, and describes the conventions those examples follow, based on the Square .NET SDK. Generated code is expected to target C# 12 or later on .NET 9 or later.

It is intended for developers who write or modify generators that emit C# and expects familiarity with the Skmtc generator model and TypeScript.

## When your agent uses it

> The C# target-language layer for Skmtc generators (@skmtc/lang-csharp). It covers the projection base factories, CsSnippet, the register shape with namespace imports, the five identifier kinds, one folder as one namespace, the head and value render model with the CsDeclared fields, methods as members of a class, nullable types, and the producers for records, enums, methods, blocks and names. Use ALONGSIDE skmtc-generator whenever a generator writes C#.

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

## Features

- **Language declaration setup:** Shows how a generator's base file declares C# through projection factories and snippets.
- **Namespace and import rules:** Explains how folders map to namespaces and how imports are registered per file.
- **Declaration kinds:** Describes records, enums, classes, interfaces and methods and how each is rendered.
- **Nullable and JSON handling:** Covers nullable reference types and System.Text.Json attribute choices for optional fields.
- **Naming and literal helpers:** Documents helpers that convert names to Pascal or camel case and escape string literals.
- **Troubleshooting compiler errors:** Lists common C# compiler errors from generated code with suggested fixes.

## Good for

- Write a generator that emits C# record models from an OpenAPI document
- Add a new C# client method to an existing Skmtc SDK generator
- Fix a CS0246 missing namespace error in generated C# files
- Configure nullable and required properties for generated System.Text.Json models

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Does Skmtc lang csharp need to be used with another skill?

Yes. It says to read skmtc-generator first and to use this skill alongside it whenever a generator writes C#.

### Which .NET and C# versions does the generated code target?

Generated code targets C# 12 or later on .NET 9 or later.

### Does the skill include scripts or tools?

No scripts are included. It is a single SKILL.md reference file.

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

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

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

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

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

## 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 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 kotlin](https://ai-powered.com/skills/skmtc-lang-kotlin): Skmtc lang kotlin 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 rust](https://ai-powered.com/skills/skmtc-lang-rust): Skmtc lang rust 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-csharp
