zig-versions

zig-versions is a skill for Claude Code from tristanisham/zvm. It costs 50 tokens per session (1,237 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,056 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.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.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,237 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.00050 $0.01237
Opus 5 $0.00025 $0.00619
Sonnet 5 $0.00010 $0.00247
Haiku 4.5 $0.00005 $0.00124

Measured 8d ago against content hash 8df8e333c40a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-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 8d 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 · 99 lines

How it starts

The opening of the file, as written. The whole thing — 99 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. Everything lives under ~/.zvm (override with ZVM_PATH), and ~/.zvm/bin is a symlink pointing at whichever version is currently selected.

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.

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. zvm use 0.14.0 repoints the global ~/.zvm/bin symlink, which changes Zig for every shell, every project, and every other tool on the machine, and it persists after the session ends.

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

If the version given to zvm run is not a known Zig version, zvm falls back to .minimum_zig_version from build.zig.zon in the current directory.

Read the full file on GitHub · 99 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. 8d 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,056 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 1,237 once invoked, about $0.0003 per session on Opus 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

Other skills, from other repositories

cargo-release

PM-invocable protocol for Cargo publish and release operations in the trusty-tools Rust monorepo: semver rules, 10-step release sequence, macOS codesign safety, and cross-crate dependency ordering.

bobmatnyc/claude-mpm-skills · 45 tokens

zig-expert

Expert knowledge in Zig systems programming, comptime metaprogramming, manual memory management, and C interoperability. Use when the user mentions systems programming, comptime, memory management, c interop, low level, or performance, or when the task involves Comptime Metaprogramming, C Interoperability…

personamanagmentlayer/pcl · 76 tokens

zig-docs

Comprehensive Zig 0.16.0 reference covering all language features: primitive types, arrays, slices, pointers, structs, enums, unions, control flow, functions, errors, optionals, casting, comptime, builtins, memory management, build system, C interop, standard library, testing, targets, and style guide. Use whenever…

pledgeandgrow/pledge-skills · 121 tokens

matlab

Build, review, migrate, and safely plan MATLAB or GNU Octave numerical workflows, including arrays, tabular/time data, tests, projects, graphics, MAT files, and explicit Python interoperability.

K-Dense-AI/scientific-agent-skills · 42 tokens

ast-grep

Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for…

JanDeDobbeleer/oh-my-posh · 80 tokens

platform-detection

Identify a .NET project's test platform, framework, command mode, and SDK-style vs classic project system. Use only for "which test platform/framework?", "VSTest or MTP?", or "what runner does this project use?", including bridge settings, UseVSTest opt-outs, and incompatible or conflicting VSTest/MTP configuration.…

dotnet/skills · 146 tokens