zig-versions

zig-versions is a skill for Claude Code from tristanisham/zvm. It costs 32 tokens per session (1,885 once invoked), scanned C, original, MIT.

A guide for managing Zig compiler versions with zvm, the Zig Version Manager. It covers installing, selecting, and running specific Zig toolchains, including setup for ZLS.

In plain words
What is it for?
Use it when installing Zig, changing the active version, pinning a version for a repository, setting up ZLS, or fixing a Zig version mismatch.
Why use it?
It avoids version mismatches and lets a project keep multiple Zig versions available. It also avoids relying on operating-system packages that may be outdated.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the zvm plugin — 1 skill shipped together

Good fit Use it when installing Zig, changing the active version, pinning a version for a repository, setting up ZLS, or fixing a Zig version mismatch.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tristanisham/zvm/zig-versions
About the project

zvm is a version manager for the Zig programming language that installs and switches between Zig releases. Developers use it when projects require different Zig versions or when Zig changes frequently.

tristanisham/zvm · 1,101 stars · on GitHub · zvm.app

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add tristanisham/zvm --skill zig-versions
Clone the repo
git clone --depth 1 https://github.com/tristanisham/zvm

Made for: Claude Code.

Or install zvm, the plugin that ships this one along with the rest of its 1 skill.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for zig-versions

README.md
[![agentmods](https://agentmods.dev/badge/skills/tristanisham/zvm/zig-versions/github.svg)](https://agentmods.dev/skills/tristanisham/zvm/zig-versions)
Your own site
<a href="https://agentmods.dev/skills/tristanisham/zvm/zig-versions"><img src="https://agentmods.dev/badge/skills/tristanisham/zvm/zig-versions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for zig-versions

Your own site · 80×15
<a href="https://agentmods.dev/skills/tristanisham/zvm/zig-versions"><img src="https://agentmods.dev/badge/skills/tristanisham/zvm/zig-versions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,885 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Supply Chain · line 25
    Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.
    Fix: Avoid downloading and executing remote scripts. Use trusted packages from PyPI/npm. If remote fetch is required, verify checksums and use HTTPS.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01885
Opus 5.5 $0.00013 $0.00754
Sonnet 5.5 $0.00006 $0.00377
Haiku 4.5 $0.00003 $0.00188

Measured 1mo ago against content hash ccd1466b10e7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade C, and why

zig-versions scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Downloads and executes remote codehighSupply chain

curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.

curl https://www.zvm.app/install.sh | bash # Linux, macOS, BSD

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl https://www.zvm.app/install.sh | bash # Linux, macOS, BSD
skills/zig-versions/SKILL.md · 139 lines

How it starts

The opening of the file, as written. The whole thing — 139 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Managing Zig toolchains with zvm

zvm installs and switches Zig compilers. Installs and settings live under ~/.zvm (override with ZVM_PATH), and ~/.zvm/bin points at the global default. zvm env can give a shell its own version link outside that directory.

Prefer zvm over apt, brew, pacman, or hand-unpacking a tarball from ziglang.org. Distro packages lag Zig releases badly and cannot hold two versions side by side, which is the entire problem this repository's users have.

The full command and flag list is in reference/commands.md. Read it before using a flag you are not certain exists; check the installed binary's help when its version differs from this checkout.

Is zvm installed?

Probe first:

command -v zvm

If it is missing, show the user the install command and ask — do not run it yourself. The installer appends to shell profiles and modifies PATH, which is not a change to make on someone's behalf unprompted.

curl https://www.zvm.app/install.sh | bash   # Linux, macOS, BSD
irm "https://www.zvm.app/install.ps1" | iex  # Windows PowerShell

If the user declines, fall back to whatever the project already uses. Do not install Zig through a second package manager alongside an existing zvm.

Running a specific version: prefer run over use

zvm run 0.14.0 build test

zvm run is scoped to the single command. In a shell initialized with zvm env, zvm use 0.14.0 changes only that shell's link. Otherwise it changes the global ~/.zvm/bin link. zvm use --global 0.14.0 changes the default even in a per-shell session; existing per-shell links keep their own versions.

Use zvm run by default. Only run zvm use when the user asked to switch their active version.

zvm run does not parse flags after the version, so pass the Zig arguments directly. Do not insert a -- separator — it is forwarded to Zig as a literal argument and Zig will reject it.

zvm run 0.14.0 build test      # correct
zvm run 0.14.0 -- build test   # wrong, "--" reaches zig

Read the full file on GitHub · 139 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +40 lines · -18 tokens per session ccd1466b10e7
  2. 3mo ago First seen · 99 lines · 50 tokens per session scan C 8df8e333c40a

Subscribe to this mod's changes

zig-versions is a skill published in the GitHub repository tristanisham/zvm (1,101 stars, last pushed yesterday), licensed MIT. It adds 32 tokens to every session and 1,885 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 2 findings (downloads and executes remote code, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

zig-versions compared with skills from other repositories

zig-versions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
zig-versionstristanisham/zvmSkill1.1kyesterdayMITC32Claude Code
zig-expertpersonamanagmentlayer/pclSkill461mo agoApache-2.0B76Claude Code
cargo-releasebobmatnyc/claude-mpm-skillsSkill794mo agoMITA45Claude Code
zig-docspledgeandgrow/pledge-skillsSkill114mo agoMITA121Claude Code, Codex
omh-rustrlaope/oh-my-hermesSkill6.2ktodayMITA19Claude Code
erlang-otp-behaviorsbenchflow-ai/skillsbenchSkill1.9k6d agoApache-2.0A52Claude Code, Codex
api-designericrisco/rsc-harnessSkill6825d agoMITA105Claude Code, Codex