AgentSkillsCN

mise

通过 mise 安装缺失的语言运行时和开发工具。当出现以下情况时使用:(1) 因缺少运行时而导致命令失败(例如未找到 node、未找到 python3、未找到 go 命令);(2) 用户要求安装或配置某种语言的运行时或 SDK(node、python、go、rust、java、ruby 等);(3) 用户提及对各语言进行版本管理;或 (4) 在搭建新的开发环境时。

SKILL.md
--- frontmatter
name: mise
description: "Install missing language runtimes and dev tools via mise. Use when (1) a command fails due to missing runtime (e.g. node not found, python3 not found, go command not found), (2) user asks to install/setup a language runtime or SDK (node, python, go, rust, java, ruby, etc.), (3) user mentions version management for languages, or (4) setting up a new development environment."

mise

Runtime version manager. Replaces nvm/pyenv/rbenv/asdf.

Install Runtime

bash
# Install globally
mise use -g node@lts
mise use -g python@3.12
mise use -g go@latest

# Install for current project (creates mise.toml)
mise use node@20

Common Commands

bash
mise ls                  # List installed
mise ls-remote node      # Available versions
mise where node          # Install path
mise install             # Install from config
mise uninstall node@20   # Remove version

Available Runtimes

Core (native): node, python, go, rust, ruby, java, swift, deno, bun, zig, elixir, erlang

Plugin-based: kotlin, scala, php, lua, perl, dotnet, dart, flutter, nim, crystal, julia, clojure

Package Managers

bash
mise use -g pnpm@latest    # JS (npm alternative)
mise use -g uv@latest      # Python (pip alternative)
mise use -g maven@3        # Java
mise use -g gradle@latest  # Java

Java Vendors

bash
mise use java@zulu-21      # Azul Zulu
mise use java@temurin-21   # Eclipse Temurin
mise use java@corretto-21  # Amazon Corretto

When Runtime Missing

If command fails with "not found":

bash
# 1. Check if mise has it
mise search <runtime>

# 2. Install
mise use -g <runtime>@<version>

# 3. Retry original command

Config

Global: ~/.config/mise/config.toml Project: mise.toml or .tool-versions

Notes

  • rust (symlink): mise links to rustup. Use rustup for rust management.
  • Some brew packages depend on brew-installed runtimes. Check with brew uses --installed <pkg> before removing.