/mila-tools:mila-local-setup <wsl|uv|milatools>from mila-tools
Guides users through installing and configuring WSL (Windows), uv, and milatools to connect to the Mila cluster. Walks through OS detection, documentation fetching, and step-by-step setup.
Ships in mila-tools. 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.
Read when SKILL.md points to them.
This skill guides users through installing and configuring the tools needed
on their local machine before connecting to the cluster: WSL (Windows only),
uv, and milatools.
At the start of each response, use the Skill tool with skill: "mila-base" to
load and apply all shared policies before proceeding with the workflow below.
Primary source: https://docs.mila.quebec/getting_started/ — sections "I'm using Windows, how do I install WSL?", "Install uv on your local machine", "Install milatools", and "Configure milatools".
Use the WebSearch tool with this query to find the current URL of the primary source above:
site:docs.mila.quebec "__skill-mila-local-setup"
Use the URL from the search result in the WebFetch steps below. If the search returns no results, fall back to the hardcoded URL in "Reference documentation".
Ask or infer the user's operating system:
If not mentioned, ask: "Are you on Windows, macOS, or Linux?"
Use the WebFetch tool to fetch https://docs.mila.quebec/getting_started/ and locate the sections relevant to the user's OS and question.
Work through the applicable steps:
WSL 2 (Windows users only): WSL 2 is required (not WSL 1); the install command below installs WSL 2 by default on Windows 10 21H2 and later, and on all versions of Windows 11.
wsl --install Ubuntu.wsl --list --verbose. The VERSION column should show 2 for Ubuntu.
If it shows 1, run wsl --set-version Ubuntu 2 to upgrade.ls and curl --version in the WSL terminal.uv, milatools, ssh) must be run inside
the WSL terminal, not PowerShell or Command Prompt.Install uv (all platforms, inside WSL on Windows):
Use the WebFetch tool to fetch https://docs.astral.sh/uv/getting-started/installation/ for
up-to-date installation instructions. Follow the steps for the user's
platform (Linux/WSL, macOS, or Windows).
Install milatools:
uv tool install --upgrade milatools
Configure milatools with mila init:
mila init (see the
mila-account-setup skill).mila init and follow the prompts: it sets up the SSH config,
generates SSH keys, and copies the public key to the cluster's
~/.ssh/authorized_keys.mila init
Common questions:
uv?" — A fast Python package manager and workflow tool,
used both locally and on the cluster. It installs milatools and later
manages Python environments for cluster jobs.mila init again if I reinstall?" — Only if the SSH
config or keys are missing. Re-running mila init is safe.milatools?" — uv tool install --upgrade milatools
(same install command).mila code supports
Cursor and other compatible editors. See the mila-run-jobs skill for details.Once tools are installed and mila init has completed successfully, direct
the user to the mila-connect-cluster skill to verify the SSH connection.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub mila-iqia/skills --plugin mila-tools7 skills in this plugin
/mila-account-setupUse this skill when the user asks about obtaining a Mila account, enabling cluster access, or setting up Multi-Factor Authentication (MFA). Trigger phrases include: "How do I get a Mila account", "I need a Mila account", "How do I get cluster access", "How do I set up MFA", "How do I enable MFA", "I received a registration token", "registration email", "registrationcode", "I got an email from IT", "MFA setup", "I can't log in to the MFA portal", "How do I add a TOTP", "What is my cluster username", "How long does cluster access take", "IT onboarding quiz", "mfa.mila.quebec"./mila-baseMila Base: Shared PoliciesThis skill is loaded by other mila-* skills via the Skill tool. Apply its/mila-connect-clusterUse this skill when the user asks about connecting to the Mila cluster via SSH, verifying the connection, entering an OTP, or troubleshooting connection failures. Trigger phrases include: "How do I connect to the cluster", "How do I SSH into the cluster", "ssh mila", "login.server.mila.quebec", "How do I verify my connection", "I can't connect", "connection refused", "permission denied", "host key verification failed", "OTP", "one-time password", "The login node banner does not appear", "Not prompted for OTP", "How do I install uv on the cluster", "I'm connected, what's next"./mila-paperoniQuery and manage the Mila Paperoni publication database via its REST API at https://paperoni.mila.quebec. Use when the user wants to search for papers, look up an author's publications, filter by venue or date, add missing papers, populate a paper entry from an external link (arXiv, DOI, etc.), or claim papers to their Mila profile with their @mila.quebec email. Also use when the user asks about the Paperoni API, authentication/token setup, which identity a token belongs to, or how to submit a paper suggestion./mila-run-jobsUse this skill when the user asks about running jobs or code on the Mila cluster. Trigger phrases include: "How do I run a job", "How do I run my first job", "How do I train a model", "mila code", "sbatch", "salloc", "VSCode on the cluster", "How do I use a GPU", "How do I request a GPU", "check available GPUs", "nvidia-smi", "How do I submit a batch job", "How do I run Python on the cluster", "How do I open VSCode on a compute node", "SLURM job", "squeue", "job queue", "slurm output file", "How do I stage data", "SLURM_TMPDIR", "How do I run PyTorch on the cluster", "interactive job"./mila-sarcFetch job, user, cluster and usage data over HTTP from the SARC API at sarc.mila.quebec. Use when asked about Mila/DRAC compute usage, slurm jobs, GPU/RGU utilization, waste, or Mila researchers — including first-person questions like "how many jobs did I run last week" or "how much GPU am I wasting".