# Skmtc lang python

> Skmtc lang python is an open-source agent skill for developer tools. Guides an agent writing Python code for Skmtc generators with @skmtc/lang-python. 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-python
- **Repository:** https://github.com/skmtc/skmtc
- **GitHub stars:** 20
- **License:** Apache-2.0
- **Skill name:** skmtc-lang-python
- **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 Python language layer for building Skmtc code generators. It explains how to declare the language through projection base factories, how export paths turn into Python module paths, and how imports, including deferred imports for circular references, are registered per file.

It also documents the identifier kinds (class, type alias, variable, function and async function), the head and value render model, and the producers used for arguments, parameters, dictionaries, subscripts and docstrings. Indentation rules are covered so that generated blocks nest correctly.

The skill lists common name collisions and failure messages with fixes. It is meant to be used alongside the skmtc-generator skill whenever a generator writes Python, and the generated code targets Python 3.12 or later. It requires the Skmtc toolchain and a skmtc.config.json file.

## When your agent uses it

> The Python target-language layer for Skmtc generators (@skmtc/lang-python). It covers the projection base factories, PySnippet, the register shapes with deferred imports, the five identifier kinds, relative imports from export paths, the head and value render model, and the producers for classes, functions, bodies and indentation. Use ALONGSIDE skmtc-generator whenever a generator writes Python.

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

## Features

- **Projection base factories:** Covers the factories that create Python model and operation projections for a generator.
- **Export path to module mapping:** Explains how folder and file names become importable Python module paths.
- **Imports and deferred imports:** Describes registering standard, project and cyclic imports per generated file.
- **Identifier and render model:** Covers class, type alias, variable and function kinds and how heads and values render.
- **Indentation and producers:** Shows helpers for bodies, parameters, subscripts, calls and docstrings.
- **Name collision troubleshooting:** Lists common naming faults and error messages with recommended fixes.

## Good for

- Write a generator that turns an OpenAPI schema into Pydantic models
- Generate an httpx client with one class per API resource
- Fix a circular import error in generated Python modules
- Name generated Python classes and fields safely from schema keys

## Install

### Claude Code

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

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

### Codex

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

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

### Cursor

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

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

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

### VS Code

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

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

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

## FAQ

### When should Skmtc lang python be used?

Whenever a Skmtc generator writes Python, and it is meant to be used alongside the skmtc-generator skill.

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

Generated code targets Python 3.12 or later.

### What setting does Skmtc lang python require in the project?

It says to set settings.generatedSuffix to an empty string in skmtc.config.json so files are not read as packages with a dotted name.

### What examples does Skmtc lang python point to?

It names @skmtc/gen-pydantic as a model generator example and @skmtc/gen-httpx-pydantic as an SDK example.

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

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

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

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

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

## 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 ruby](https://ai-powered.com/skills/skmtc-lang-ruby): Skmtc lang ruby 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 erlang](https://ai-powered.com/skills/skmtc-lang-erlang): Skmtc lang erlang 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 generator](https://ai-powered.com/skills/skmtc-generator-skmtc): Skmtc generator is an open-source agent skill for developer tools.

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