xrepo-env

xrepo-env is a skill for Claude Code from xmake-io/xmake-skills. It costs 79 tokens per session (2,008 once invoked), scanned C, original, Apache-2.0.

A virtual environment for C and C++ libraries and command-line tools, managed by xrepo. It installs selected packages and adjusts the shell so their commands and supporting settings are available together.

In plain words
What is it for?
Use it for temporary or named environments containing tools such as CMake, Ninja, Python, LuaJIT, or protoc. Project versions can be pinned in xmake.lua.
Why use it?
It keeps project tools and dependency versions separate from the rest of the computer, similar to a Python virtual environment but for native tools and libraries.

Skill for Claude Code

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

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/ruki/.xmake/packages/l/luajit/.../bin:....

Part of the xmake-skills plugin — 58 skills shipped together

Good fit Use it for temporary or named environments containing tools such as CMake, Ninja, Python, LuaJIT, or protoc. Project versions can be pinned in xmake.lua.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add xmake-io/xmake-skills
Claude Code
/plugin install xmake-skills

Made for: Claude Code.

Or install xmake-skills, the plugin that ships this one along with the rest of its 58 skills.

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 xrepo-env

README.md
[![agentmods](https://agentmods.dev/badge/skills/xmake-io/xmake-skills/xrepo-env/github.svg)](https://agentmods.dev/skills/xmake-io/xmake-skills/xrepo-env)
Your own site
<a href="https://agentmods.dev/skills/xmake-io/xmake-skills/xrepo-env"><img src="https://agentmods.dev/badge/skills/xmake-io/xmake-skills/xrepo-env/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 xrepo-env

Your own site · 80×15
<a href="https://agentmods.dev/skills/xmake-io/xmake-skills/xrepo-env"><img src="https://agentmods.dev/badge/skills/xmake-io/xmake-skills/xrepo-env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 79 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,008 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.
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.00079 $0.02008
Opus 5 $0.00039 $0.01004
Sonnet 5 $0.00016 $0.00402
Haiku 4.5 $0.00008 $0.00201

Measured 12d ago against content hash e06f6db93d62, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade C, and why

xrepo-env 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 12d 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.

- run: curl -fsSL https://xmake.io/shget.text | bash

Makes network callslowCapability

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

- run: curl -fsSL https://xmake.io/shget.text | bash
skills/packages/xrepo-env/SKILL.md · 195 lines

How it starts

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

Xrepo Virtual Environments

xrepo env gives you a virtual environment for native tools and libraries. You describe a set of packages, xrepo installs them, and then sets up PATH, LD_LIBRARY_PATH, DYLD_LIBRARY_PATH, PKG_CONFIG_PATH, and any package-specific env vars so those tools "just work" inside the env.

Think conda/venv, but for C/C++ dependencies and CLI tools (cmake, ninja, python, luajit, protoc, …), sourced from xmake-repo or any registered private repo.

There are three ways to use it, ordered from most ad-hoc to most persistent.

1. Ad-hoc environments (no config file)

Pass a comma-separated package list to -b/--bind and xrepo env auto-installs and activates them.

Interactive shell

xrepo env -b "python 3.x,luajit,cmake" shell
[python,luajit,cmake] $ python --version
Python 3.10.6
[python,luajit,cmake] $ cmake --version
cmake version 3.25.3
[python,luajit,cmake] $ xrepo env quit
$
  • Missing packages are installed on demand (first entry may be slow; subsequent entries are instant).
  • The prompt is prefixed with the active package list so you know where you are.
  • xrepo env quit (or just exit) leaves the subshell.

One-shot command

Skip the subshell and run a single command inside the env:

xrepo env -b "python 3.x" python script.py
xrepo env -b "cmake,ninja" cmake -B build -G Ninja
xrepo env -b "protobuf" protoc --version
xrepo env -b "llvm 18.x" clang++ hello.cpp -o hello

Great for scripting / CI — no subshell juggling.

Version specs and configs

Same syntax as add_requires:

xrepo env -b "python 3.11.x,cmake >=3.25" shell
xrepo env -b "boost" -f "regex=true" shell         # package configs
xrepo env -b "llvm" -m debug shell                 # debug build

2. Project-level environments (./xmake.lua)

Drop an xmake.lua in a directory — xrepo env in that directory reads it automatically. This is the right choice when a project needs a reproducible set of tools per working tree, checked into git.

Read the full file on GitHub · 195 lines

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. 12d ago First seen · 195 lines · 79 tokens per session scan C e06f6db93d62

Subscribe to this mod's changes

xrepo-env is a skill published in the GitHub repository xmake-io/xmake-skills (24 stars, last pushed 19d ago), licensed Apache-2.0. It adds 79 tokens to every session and 2,008 once invoked, about $0.0004 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

zoom-meeting-sdk-unreal

Zoom Meeting SDK for Unreal Engine wrapper integrations. Use when building Unreal projects that embed Zoom meetings with C++ and Blueprint wrappers, including wrapper-to-SDK mapping concerns.

anthropics/knowledge-work-plugins · 41 tokens

ax-cpp-gen

Use when writing C++ code with axllm for AxGen programs, forward calls, indexed multi-sampling, result pickers, streaming, tools, assertions, traces, usage, and output parsing.

ax-llm/ax · 48 tokens

doca-argp

Use this skill for hands-on DOCA Arg Parser CLI work on a shipped sample or new DOCA-using app — adding / removing / renaming flags; wiring docaargpinit → register params → docaargpstart → docaargpdestroy in order; picking a parameter type from the full public enum (DOCAARGPTYPESTRING, INT, BOOLEAN, DEVICE, DEVICEREP…

NVIDIA/skills · 267 tokens

cpu-kernels

Provides guidance for writing, optimizing, and benchmarking C++ CPU kernels with SIMD intrinsics (AVX2/AVX512) for the Hugging Face kernels ecosystem. Includes a two-phase workflow: Phase 1 correctness (generic → AVX2) and Phase 2 performance exploration (AVX512 with branching trial loop), runtime CPU dispatch, OpenMP…

huggingface/kernels · 89 tokens

cudaq-importing

Use when porting circuits from another framework (e.g. Qiskit) into CUDA-Q kernels while preserving the source algorithm and validation fidelity.

NVIDIA/cuda-quantum · 34 tokens

llvm-learning

Comprehensive learning resources and tutorials for LLVM, Clang, and compiler development. Use this skill when helping users learn LLVM internals, find educational resources, or understand compiler concepts.

gmh5225/awesome-llvm-security · 39 tokens