Scaffolds new Mojo or MAX projects with pixi or uv environment management. Handles project initialization, dependency setup, and channel selection.
Ships in max-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
When the user wants to create a new project, first infer as many options as possible from the user's request (for example, "new Mojo project" means type=Mojo, "called foo" means name=foo). Then use a structured multiple-choice prompt (not plain text) to gather only the remaining unspecified options in a single interaction. Do NOT ask about options the user has already provided or implied. The options to determine are:
pixi (recommended) or uv.uv): full uv
project (uv init + uv add, recommended) or quick uv environment
(uv venv + uv pip install, lighter weight).Then follow the appropriate section below (pixi or uv) to initialize the
project and choose max or mojo as appropriate. Don't pin a version: each
channel already resolves to the right one.
MAX and Mojo ship together but number their releases differently, so their
version strings don't look alike. On the stable channel, max is 26.5
while mojo is 1.0.0; on nightly they're 26.6.0.dev* and 1.1.0.dev*.
That's expected, not a mismatch.
[!NOTE] Mojo and MAX projects use
pixi. ThemagicCLI is retired; its replacement is themodularCLI. Don't use or suggestmagic.
Mojo requires a C linker for compilation. Install one if not already present:
| OS | Command |
|---|---|
| Ubuntu/Debian | sudo apt install gcc |
| Fedora/RHEL | sudo dnf install gcc |
| macOS | xcode-select --install |
| Windows | Install WSL2 first (see Windows users), then install gcc |
Windows users: Mojo doesn't run natively on Windows.
Install WSL2
(wsl --install in PowerShell), then follow the Linux instructions
inside your WSL environment.
Pixi manages Python, Mojo, and other dependencies in a reproducible manner inside a controlled environment.
First, determine whether pixi is installed. If it isn't available at the
command line, install it using the latest instructions at
https://pixi.prefix.dev/latest/#installation.
After installing pixi, you may need to add it to the local shell environment.
# New project
pixi init [PROJECT] \
-c https://conda.modular.com/max-nightly/ -c conda-forge \
&& cd [PROJECT]
pixi add [max / mojo]
pixi shell
# Existing project - add to pixi.toml channels first:
# [workspace]
# channels = ["https://conda.modular.com/max-nightly/", "conda-forge"]
pixi add [max / mojo]
# New project
pixi init [PROJECT] \
-c https://conda.modular.com/max/ -c conda-forge \
&& cd [PROJECT]
pixi add [max / mojo]
pixi shell
# Existing project
pixi add [max / mojo]
If your project uses Python libraries with Mojo:
pixi add python
pixi add requests # conda-forge packages
pixi add --pypi some-pkg # PyPI-only packages
uv is a fast and very popular package manager, familiar to developers coming
from a Python background. It also works well with Mojo projects.
uv init [PROJECT] && cd [PROJECT]
uv add [max / mojo] \
--index https://whl.modular.com/nightly/simple/ \
--prerelease allow
uv init [PROJECT] && cd [PROJECT]
uv add "max[all]"
This resolves from PyPI. The all extra pulls in mojo and the rest of the
MAX stack, so the MAX and Mojo versions always match.
mkdir [PROJECT] && cd [PROJECT]
uv venv
uv pip install [max / mojo] \
--index https://whl.modular.com/nightly/simple/ \
--prerelease allow
mkdir [PROJECT] && cd [PROJECT]
uv venv
uv pip install "max[all]"
When using uv, you can use max or mojo directly by working within the
project environment:
source .venv/bin/activate
Standard Python package manager.
python3 -m venv .venv && source .venv/bin/activate
pip install --pre [max / mojo] \
--extra-index-url https://whl.modular.com/nightly/simple/
Use --extra-index-url, not --index-url. The latter replaces PyPI, and the
nightly index doesn't carry third-party dependencies like numpy, so pip
backtracks through every max version instead of reporting a clear error.
python3 -m venv .venv && source .venv/bin/activate
pip install "max[all]"
As with uv, the all extra installs mojo as well, so the MAX and Mojo
versions always match.
For conda and mamba users.
conda install -c conda-forge \
-c https://conda.modular.com/max-nightly/ [max / mojo]
conda install -c conda-forge \
-c https://conda.modular.com/max/ [max / mojo]
If using MAX with custom Mojo kernels, both must come from the same channel.
Don't compare their version numbers: MAX and Mojo number releases
differently, so a matching pair looks mismatched (stable is max 26.5
with mojo 1.0.0).
# Check that both came from the same channel
pixi list | grep -E "^(max|mojo)\b"
Or, instead install max[all] (with pip/uv) or max-all (with conda/pixi):
uv add "max[all]"
pixi add max-all
Installing max with "all" optional dependencies instead of installing max
and mojo separately will ensure that the max and mojo versions always
match. Mixing versions between the two causes kernel compilation failures.
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/benchmark-modelBenchmark a model served on MAX with the `max benchmark` command: measure throughput (tokens/sec), latency (TTFT, TPOT, inter-token latency), and GPU utilization by driving load against a running `max serve` endpoint. Use this whenever the user wants to benchmark, load-test, or measure the performance of a MAX model, get tokens-per-second / TTFT / TPOT numbers, run a concurrency or request-rate sweep, compare latency vs throughput, size a deployment, or produce benchmark JSON, even if they don't say "benchmark" by name. Also use when a `max benchmark` run fails to connect or reports zero/garbage numbers.
/debug-modelDebug a MAX model that loads, compiles, serves, and generates tokens but whose output disagrees with a reference implementation. Use whenever parity debugging stalls on scalar taps, the model returns gibberish or wrong greedy tokens, logit cosine is high but argmax differs, or generation is coherent then diverges. Applies during an architecture port, a quantization bring-up, a multi-GPU conversion, or after a MAX upgrade. Triggers on "parity failure", "silent corruption", "logits match but tokens diverge", "top-1 mismatch", "greedy divergence", and "model serves but generates garbage". Not for crashes on load or pre-serve scaffolding (use import-model). Mandates reference-vs-MAX tensor-dump comparators first, numerical verification of fixes before recompiling, and a serve-vs-pipeline bisect when dumps match but text diverges.
/eval-modelMeasures the task accuracy of text models served by MAX using standard benchmarks such as GSM8K, MMLU, HellaSwag, ARC, AIME, GPQA, TruthfulQA, WinoGrande, and BABILong. Use when benchmarking a served model, comparing it with model-card or reference scores, verifying that a new MAX model produces correct answers, or running repeatable dataset evaluations against a MAX OpenAI-compatible endpoint.
/import-modelUse when importing a new model architecture into MAX from a Hugging Face model ID. Triggers on: "import a model into MAX", "add model to MAX", "bring up <HF model> in MAX". Workflow: inspect the Hugging Face config and modeling code, then scaffold from a similar ModuleV3 architecture. Implement each layer as a max.nn Module that matches HF, serve, then verify against the Hugging Face reference. When the server runs but output is wrong (gibberish, greedy mismatch, coherent-then-diverges), load debug-model for the divergence hunt.
/migrate-max-v2-to-v3Use when migrating a MAX model from the V2 graph API (max.nn.legacy, TensorValue, explicit Graph construction) to ModuleV3 (max.nn, Tensor, F.lazy() + compile()). Triggers on: "migrate to ModuleV3", "port a max.nn.legacy model to max.experimental", "convert TensorValue to Tensor", "update my model to the V3 API", "ModuleV3 migration". Workflow: read the concept map, rewrite imports and __call__ signatures, and replace graph building with compile(weights=...). Align weight names with the new module hierarchy and move the KV cache unflatten into forward(). Port sharding to a DeviceMesh when the V2 model is sharded, then verify greedy outputs match the V2 implementation.
/profile-modelProfile a model running on MAX to find where it spends time and whether the GPU is saturated. Use when the user asks to "profile my model," "where is my model spending time," "why is inference slow," "is my GPU being utilized," "how much GPU am I using," "get a kernel breakdown," "capture an nsys/rocprof/ncu trace of max serve," or wants to measure MAX inference performance. Works for any model MAX can run — built-in architectures and custom ones loaded with --custom-architectures — from a pip or pixi install (max generate, max serve, or a Python script) on NVIDIA or AMD GPUs. Decide cheapest-first: a GPU utilization check, then a kernel breakdown, then a single-kernel deep dive only when one kernel dominates.
/max-skills:new-modular-projectfrom max-skills
npx claudepluginhub modular/skills --plugin max-skillsOther plugins' skills for the same job