/mila-tools:mila-connect-cluster <connect|troubleshoot>from mila-tools
Guides users through connecting to the Mila cluster via SSH, entering OTP, and troubleshooting connection failures like permission denied or host key verification failed.
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 connecting to the Mila cluster for the first time, entering the OTP from their authenticator app, and troubleshooting common connection failures.
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 "Verify your connection" and "Install uv on the cluster".
Use the WebSearch tool with this query to find the current URL of the primary source above:
site:docs.mila.quebec "__skill-mila-connect-cluster"
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".
Before connecting, confirm the user has:
milatools installed and mila init completed (see the mila-local-setup skill)If any prerequisite is missing, direct the user to the appropriate skill first.
Use the WebFetch tool to fetch https://docs.mila.quebec/getting_started/ and locate the "Verify your connection" section.
Walk through the connection steps:
ssh mila
Key points to communicate:
ssh mila shortcut works because mila init wrote the SSH config;
the full hostname is login.server.mila.quebec.Not prompted to enter an OTP:
→ mila init was not completed or the SSH config is missing. Run
mila init again (see the mila-local-setup skill).
Prompted for OTP but the login-node banner does not appear after entering the code: → MFA setup is incomplete (TOTP token missing or wrong). Return to https://mfa.mila.quebec and add a TOTP token (see the mila-account-setup skill).
OTP rejected repeatedly: → Check that the device clock is synchronized (TOTP is time-sensitive). Contact IT support at https://it-support.mila.quebec if the issue persists.
Once the connection is confirmed, uv needs to be installed on the cluster
before running any jobs. Guide the user to install it now while already on the
login node.
Note: the following commands run inside the SSH session (on the cluster login node) — do not offer to run them via the Bash tool.
Use the WebFetch tool to fetch https://docs.astral.sh/uv/getting-started/installation/ for up-to-date installation instructions. The cluster runs Linux, so follow the Linux installation steps.
Once the connection is confirmed and uv is installed on the cluster,
direct the user to the mila-run-jobs skill to run their first job.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
7 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-local-setupUse this skill when the user asks about setting up their local machine to connect to the Mila cluster. Trigger phrases include: "How do I install WSL", "How do I install uv", "How do I install milatools", "What is milatools", "How do I configure milatools", "How do I set up my laptop for the cluster", "mila init", "uv tool install milatools", "curl uv install", "How do I install the mila CLI", "Windows setup for the cluster", "What tools do I need on my laptop", "SSH config", "SSH config setup", "authorized_keys"./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".npx claudepluginhub mila-iqia/skills --plugin mila-tools