# Skmtc lang go

> Skmtc lang go is an open-source agent skill for developer tools. Guides generators that write Go code with the Skmtc Go language layer. 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-go
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-go
- **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 the Go target-language reference for Skmtc code generators. It explains how the @skmtc/lang-go package declares Go output: the projection base factories, the snippet class, how generated files register imports, and how identifiers such as types, aliases, functions and methods are rendered.

It covers the rules that keep generated Go compiling. Files in one folder form one package, names must be unique across that package, and file names are checked against Go build-tag rules. It also describes how pointers represent absent values, how struct tags are built, how methods are attached to an index type, and how names are converted to Go casing. A table of producers and a pitfalls table map common compiler errors to their fixes.

The skill is meant to be read alongside a generator skill and assumes familiarity with TypeScript and the Skmtc generator structure. It names Go 1.24 as the target version and the google/go-github style as its reference.

## When your agent uses it

> The Go target-language layer for Skmtc generators (@skmtc/lang-go). It covers the projection base factories, GoSnippet, the register shape with package imports, the four identifier kinds, one folder as one package, the head and value render model, methods as members of a type, pointers for absent values, and the producers for structs, functions, blocks and names. Use ALONGSIDE skmtc-generator whenever a generator writes Go.

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

## Features

- **Projection base factories:** Explains the factories that declare Go as the target language for model and OpenAPI operation generators.
- **Package and file rules:** Covers how folders become Go packages and which file names Go build tooling would ignore or misread.
- **Import registration:** Describes how generated files register standard library and third-party package imports.
- **Pointers and optional fields:** Sets out when Go values become pointers and how omitzero tags handle absent fields.
- **Name and literal helpers:** Documents converting text into exported, unexported and file names, and escaping Go string literals.
- **Common compiler errors:** Lists typical Go build errors from generated code with the fix for each.

## Good for

- Write a generator that produces Go structs from an OpenAPI schema
- Generate a Go HTTP client with a service type and methods
- Fix a Go build error such as an unused import in generated code
- Decide when a generated Go field should be a pointer
- Name generated Go files and types so they compile in one package

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### Which generator skill should be used with this one?

It is meant to be used alongside skmtc-generator whenever a generator writes Go.

### What Go version does the generated code target?

Generated code targets Go 1.24 or later.

### Does the skill include scripts or tools to run?

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

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

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

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

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

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

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

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