new-modular-project

For creating a new Mojo or MAX project. Suitable for users who want to start a new Mojo or MAX project, initialize a pixi or uv environment to use Mojo or MAX, or create a new project from scratch.

Last repository push
GitHub Stars
215
Forks
22
Issues / PRs
4

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "new-modular-project" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dcdb253827fe2fc95aeaaa062b0aaaf9fd04ca4e97738974fd74755986649627. Verify the upstream source and version against https://github.com/modular/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

For creating a new Mojo or MAX project. Suitable for users who want to start a new Mojo or MAX project, initialize a pixi or uv environment to use Mojo or MAX, or create a new project from scratch.

0 Downloads

Introduction source: third_party · modular · 0.0.1 Reference

SkillPi interpretation

Tasks
Creates a new Mojo or MAX project. Use when wanting to start a new Mojo or MAX project, initializing the `pixi` or `uv` environment to use Mojo or MAX, or when the user wants to begin a new Mojo or MAX project from scratch.
Software, accounts and paid services
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.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: new-modular-project
description: Creates a new Mojo or MAX project. Use when wanting to start a new Mojo or MAX project, initializing the `pixi` or `uv` environment to use Mojo or MAX, or when the user wants to begin a new Mojo or MAX project from scratch.

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:

  • Project name: ask if the user hasn't specified one.
  • Type of project: Mojo or MAX (infer from context if the user said "Mojo project" or "MAX project").
  • Environment manager: pixi (recommended) or uv.
  • uv project type (only when the environment manager is uv): full uv project (uv init + uv add, recommended) or quick uv environment (uv venv + uv pip install, lighter weight).
  • Channel: nightly or stable. Default to nightly for MAX projects and stable for Mojo projects, and ask only if the user hasn't implied one.

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] Don't look for or use magic for Mojo or MAX projects; it's no longer supported. Pixi has fully replaced its capabilities.


System prerequisites

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 (recommended)

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.

Nightly

# 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]

Stable

# 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]

Python-using projects

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

uv is a fast and very popular package manager, familiar to developers coming from a Python background. It also works well with Mojo projects.

Nightly (project)

uv init [PROJECT] && cd [PROJECT]
uv add [max / mojo] \
  --index https://whl.modular.com/nightly/simple/ \
  --prerelease allow

Stable (project)

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.

Nightly (quick environment)

mkdir [PROJECT] && cd [PROJECT]
uv venv
uv pip install [max / mojo] \
  --index https://whl.modular.com/nightly/simple/ \
  --prerelease allow

Stable (quick environment)

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

pip

Standard Python package manager.

Nightly

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.

Stable

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.


Conda

For conda and mamba users.

Nightly

conda install -c conda-forge \
  -c https://conda.modular.com/max-nightly/ [max / mojo]

Stable

conda install -c conda-forge \
  -c https://conda.modular.com/max/ [max / mojo]

Version alignment with MAX

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.


References

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 提供多种环境管理方案(pixi/uv/pip/conda)满足不同用户需求
  • 详细说明了系统前置条件和Windows用户的特殊处理
  • 包含版本对齐指南避免常见错误
Trigger Precision90/100

Highlights

  • 触发描述完整覆盖多种使用场景
  • 支持从用户请求中推断多个选项
  • 使用结构化多选提示确保信息收集完整
Structure and Standards90/100

Highlights

  • 文档结构清晰,分章节组织不同环境管理方案
  • 每个方案都有完整的命令示例和说明
  • 包含注意事项和常见问题解决方案
Execution Reliability85/100

Highlights

  • 提供了完整的系统前置条件检查清单
  • 针对不同操作系统提供具体的安装命令
  • 包含版本对齐检查方法和避免错误的指导
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • conda.modular.com
  • learn.microsoft.com
  • mojolang.org
  • pixi.prefix.dev
  • whl.modular.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

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.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.