Install missing dependencies safely using mise for CLI tools and system package managers for low-level packages
Use this skill when another agent needs a dependency that is missing from the environment.
requested_name: tool or package name.executable_name (optional): expected binary name for PATH checks.requested_version (optional): explicit version, otherwise use latest.type_hint: cli, system, or unknown.tool_description: short description of what it does.why_neededcommand -v <executable_name or requested_name>.already_present and stop.cli: install with mise.system: install with system package flow.unknown: ask user whether this is a CLI tool or system package/library.Always ask user to choose scope with a selection prompt.
Prompt content must include:
tool_description).why_needed).Options:
Local (recommended): mise use <requested_name>@<version-or-latest>Global: mise use -g <requested_name>@<version-or-latest>CancelRules:
mise.toml.For NixOS system dependencies, do not use imperative apt/pacman style commands.
Instead:
environment.systemPackagesenvironment.packagesmodules/software.nix, unless context requires a host-specific file).nix eval .#nixosConfigurations.<host>.config.system.build.toplevel.drvPathnix build when requested.Auto-run installs only after explicit confirmation.
Manager detection order:
apt-getdnfyumpacmanbrewCommand templates:
sudo apt-get update && sudo apt-get install -y <pkg>sudo dnf install -y <pkg>sudo yum install -y <pkg>sudo pacman -Sy --noconfirm <pkg>brew install <pkg>needs_mapping with candidate names and stop.permission_denied with next-step guidance.offline_or_repo_unreachable.verification_failed.Return:
status: one of already_present, installed_local, installed_global, installed_system, cancelled_by_user, needs_mapping, permission_denied, offline_or_repo_unreachable, install_failed, verification_failed.classification: cli, system, or unknown.install_scope: local, global, system, or none.manager: mise, apt, dnf, yum, pacman, brew, nixos-config, or none.commands_attempted: ordered list.next_action: short recommendation for caller.