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

