# Skmtc lang swift

> Skmtc lang swift is an open-source agent skill for developer tools. Guides agents in writing Swift code for Skmtc generators using @skmtc/lang-swift. 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-swift
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-swift
- **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 Swift target-language layer of the Skmtc code generator. It explains how a generator declares Swift output: the base factories for models, operations and Index structs, the identifier kinds, how declarations and their comments and attributes are rendered, and how nested and file-level types are placed. It also covers the producers that emit Swift syntax such as properties, initializers, enum cases, function values and calls.

The skill also documents module-wide naming rules, including how Swift keywords, reserved members and standard type names are avoided, and how imports such as Foundation get registered. A section lists common compiler errors with their fixes, and another describes conventions taken from a reference Swift SDK, along with the places where the generators deliberately differ from it.

It is intended for use alongside the generator skill whenever a generator writes Swift. Generated code targets Swift 5.9 or later, and the examples are based on the package's model and operation generators.

## When your agent uses it

> The Swift target-language layer for Skmtc generators (@skmtc/lang-swift). It covers the model, operation and Index base factories, SwiftSnippet, the register shape with module imports, the six identifier kinds, the project as one module, the head and value render model, access levels, names and keywords, inline types, and the producers for type bodies, properties, initializers, enum cases, functions and calls. Use ALONGSIDE skmtc-generator whenever a generator writes Swift.

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

## Features

- **Language declaration setup:** Shows how base factories and snippets declare the Swift target language for a generator.
- **Identifier and type placement:** Covers identifier kinds, access levels, and nested versus file-level type scopes.
- **Swift syntax producers:** Lists producers for properties, initializers, enum cases, functions and calls.
- **Naming and keyword rules:** Explains how names are converted and how reserved words and literals are escaped.
- **Common compiler fixes:** Maps typical Swift compiler errors to the generator changes that resolve them.
- **Reference SDK conventions:** Describes Swift SDK conventions used as a style baseline, and where generators differ.

## Good for

- Write a generator that turns an OpenAPI model into Swift Codable structs
- Generate a Swift client with async throws methods for each API operation
- Fix a Swift compiler error about a duplicate type name in generated code
- Make generated Swift enums handle raw string values from an API
- Add deprecation attributes and doc comments to generated Swift declarations

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Which Swift version does the generated code target?

Generated code targets Swift 5.9 or later.

### Should Skmtc lang swift be used on its own?

No. It is meant to be used alongside the skmtc-generator skill whenever a generator writes Swift.

### Which generators are used as worked examples?

The examples are gen-swift-codable, a model generator, and gen-swift-urlsession, an operation generator that writes an SDK.

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

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

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

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

The closest alternatives to Skmtc lang swift are Skmtc lang scala, Skmtc lang go, Skmtc lang csharp, Skmtc lang kotlin 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 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 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-swift
