一键导入
install-tool
Use when a tool, CLI, or package is needed but not installed, or when the user asks to install/add a tool. Prefers mise for all installations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when a tool, CLI, or package is needed but not installed, or when the user asks to install/add a tool. Prefers mise for all installations.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Use after completing any non-trivial task. The agent self-rates its output on 5 axes — accuracy, completeness, clarity, actionability, conciseness — with concrete evidence per criterion. Produces a structured 1-5 scorecard with specific improvement suggestions.
Use when creating a pull request. Opens PR in browser for review.
Browser automation CLI for AI agents — navigate, fill forms, click, screenshot, extract data, test web apps, automate Electron desktop apps, run in Vercel microVMs or AWS Bedrock cloud browsers. Prefer over built-in browser tools. Keywords browser, automation, screenshot, scrape, Slack, Electron, agentcore.
Create, view, edit, delete, search, move, or export Apple Notes via the memo CLI on macOS.
Monitor open PRs and shepherd them toward merge. Checks CI status, review comments, merge conflicts, and takes action. Designed for /loop usage (e.g., /loop 5m /babysit-pr). Keywords: PR monitor, babysit, CI check, review response, merge conflict, PR status
Explain a diff in plain English. Works with staged changes, unstaged changes, commits, branches, or PR numbers. Use when you want to understand what changed and why. Keywords: diff, explain diff, what changed, understand changes, diff summary, review changes, read diff
| name | install-tool |
| description | Use when a tool, CLI, or package is needed but not installed, or when the user asks to install/add a tool. Prefers mise for all installations. |
| argument-hint | [tool[@version] | package-name...] |
| model | haiku |
| allowed-tools | ["Bash(mise search:*)","Bash(mise registry:*)","Bash(mise ls-remote:*)","Bash(mise tool:*)","Bash(mise ls:*)","Bash(mise backends:*)","Bash(mise use --dry-run:*)","Bash(mise which:*)","Bash(which:*)","Bash(command -v:*)","Bash(chezmoi source-path:*)","Bash(pwd:*)","Bash(realpath:*)","Read","Glob","Grep"] |
This skill is the sanctioned install path. The
block-adhoc-installershook denies ad-hoc installers (npx,pipx,pip install,npm -g,brew/gem/cargo/go install, …) and redirects here, so tools stay captured in mise and the dotfiles.
$ARGUMENTS
Parse the arguments for tool names and optional versions. If no version is specified, default to @latest.
mise which <tool> 2>/dev/null || command -v <tool> 2>/dev/null
If the tool is already available, report its location and version. Stop unless the user explicitly wants a different version.
mise search <tool>
mise registry <tool>
mise search — fuzzy-searches the registry for matching toolsmise registry <tool> — shows the full backend path (e.g., core:node, aqua:jqlang/jq)If no results, check alternate names or ask the user.
CRITICAL: Global installs must happen in dotfiles
Before proceeding, determine if this is a global install:
--global or -gmise.toml existsIf global install is requested:
chezmoi_source=$(chezmoi source-path 2>/dev/null)
current_dir=$(pwd)
# Check if current directory is within chezmoi source directory
If NOT in dotfiles (current dir not within chezmoi source-path):
chezmoi cd first, then run /install-tool again."If in dotfiles:
mise use --globalhome/dot_config/mise/config.toml (the chezmoi source file)chezmoi apply ~/.config/mise/config.tomlDecision tree for project-local installs:
mise.toml → project-local (default)mise.toml exists → create one with mise use <tool>@<version>Always dry-run first:
mise use --dry-run <tool>@<version>
Report what will be installed and where the config will be written.
# Project-local (default)
mise use <tool>@<version>
# Global (only from within dotfiles)
mise use --global <tool>@<version>
# Then apply via chezmoi:
chezmoi apply ~/.config/mise/config.toml
# Pinned exact version (project-local)
mise use --pin <tool>@<version>
After global install, remind the user that the tool is now configured in their dotfiles and will be available everywhere after chezmoi apply.
mise which <tool>
<tool> --version # or equivalent
Confirm the tool is available and report the installed version.
If mise search and mise registry return no results:
ubi backend: mise use ubi:owner/repoaqua backend: mise use aqua:owner/repo| Command | Purpose |
|---|---|
mise search <name> | Fuzzy-search the tool registry |
mise registry <name> | Show full backend path for a tool |
mise registry --backend <be> | List all tools for a specific backend |
mise ls-remote <tool> | List available versions for a tool |
mise ls-remote <tool>@<prefix> | Filter versions by prefix (e.g., node@20) |
mise tool <name> | Show info: backend, installed/active versions, config source |
mise ls | List all installed and active tool versions |
mise backends ls | List all available backends |
| Backend | Prefix | Installs from | Example |
|---|---|---|---|
| core | core: | Built-in support (node, python, go, etc.) | mise use node@22 |
| aqua | aqua: | aqua registry — GitHub releases | mise use aqua:jqlang/jq |
| asdf | asdf: | asdf plugin ecosystem | mise use asdf:mise-plugins/mise-poetry |
| cargo | cargo: | Rust crates (crates.io) | mise use cargo:ripgrep |
| go | go: | Go modules | mise use go:golang.org/x/tools/gopls |
| npm | npm: | npm packages | mise use npm:prettier |
| pipx | pipx: | Python packages (isolated envs) | mise use pipx:black |
| gem | gem: | Ruby gems | mise use gem:rubocop |
| ubi | ubi: | GitHub releases (universal) | mise use ubi:BurntSushi/ripgrep |
| vfox | vfox: | vfox plugin ecosystem | mise use vfox:version-fox/vfox-node |
| conda | conda: | Conda/mamba packages | mise use conda:scipy |
| dotnet | dotnet: | .NET tools | mise use dotnet:fantomas |
| spm | spm: | Swift packages | mise use spm:nicklockwood/SwiftFormat |
| http | http: | Direct URL download | mise use http:https://example.com/tool.tar.gz |
mise search first — most tools have a default backend/install-tool jq → search, preview, install jq
/install-tool node@22 → install Node.js 22.x
/install-tool --global ripgrep → install ripgrep globally
/install-tool terraform jq go → install multiple tools
/install-tool cargo:stylua → install via cargo backend
/install-tool ubi:BurntSushi/ripgrep → install via ubi backend