Mise Skill
Expert guidance on mise, the single tool that replaces asdf, nvm, pyenv, direnv, and make. Covers installation, mise.toml configuration, runtime management, task runner, environment variables, secrets, backends, Lua plugins, and team workflows.
Quick Reference Table
| Task | Load Resource | Key Concepts |
|---|---|---|
| Install mise or activate in shell | references/core-concepts.md | curl install, shell activation, mise doctor |
| Configure tools and env vars in mise.toml | references/core-concepts.md | [tools], [env], config hierarchy, mise.local.toml |
| Trust a config (env vars not loading) | references/core-concepts.md | mise trust, security model, untrusted configs |
| List, install, upgrade, or pin tool versions | references/commands-reference.md | mise use, mise install, mise upgrade, mise prune |
| Scaffold CI/devcontainer/git hooks | references/commands-reference.md | mise generate github-action, devcontainer, git-pre-commit |
| Understand backends (github, ubi, cargo, npm, aqua, conda) | references/backends.md | Core, GitHub, UBI, Cargo, npm, Pipx, Aqua, Lua plugins |
| Define and run project tasks | references/task-runner.md | [tasks], mise run, depends, wait_for, MISE_PROJECT_ROOT |
| Watch files and rerun tasks automatically | references/commands-reference.md | mise watch, watchexec, --restart, --filter |
| Manage environment variables and secrets | references/environment-secrets.md | _.path, _.file, templating, SOPS, fnox |
| Advanced: caching, hooks, Pitchfork daemons | references/advanced-features.md | msgpack cache, Lua hooks, Pitchfork, Usage completions |
| Migrate from asdf, nvm, or direnv | references/core-concepts.md | .tool-versions, .nvmrc, compatibility |
| Run tools from an agent or non-interactive shell | references/agents-and-editors.md | mise exec, mise activate, --shims, why rc files do not reach agent commands |
| Install language servers and debug adapters through mise | references/agents-and-editors.md | conf.d, aqua, npm, pypi, dotnet and github backends; disabling Mason |
| Team workflows, CI/CD, lockfiles | references/advanced-features.md | mise.lock, monorepo tasks, CI integration |
Orchestration Protocol
Phase 1: Classify the Task
Identify which category the user's request falls into:
- Setup: installing mise, activating in shell, configuring global tools
- Configuration: writing or editing mise.toml, pinning versions, managing hierarchy
- Tool management: installing, listing, upgrading, or switching runtime versions
- Backends: choosing the right backend for a tool (ubi, aqua, cargo, npm)
- Tasks: defining and running tasks, task dependencies, monorepo tasks
- Environment: setting env vars, PATH modifications, .env file loading
- Secrets: SOPS encryption, fnox remote secrets
- Advanced: caching internals, Lua plugins, Pitchfork daemons, shell hooks
- Migration: moving from asdf, nvm, pyenv, or direnv
Phase 2: Load the Right Resource
Load the resource indicated in the Quick Reference Table. For tasks spanning multiple areas (e.g. "set up a new project with tools, tasks, and secrets"), load all relevant files. The files are lean enough to load together.
Phase 3: Execute
Apply guidance from the loaded resource. Produce complete, commented mise.toml snippets where configuration is involved. Always suggest mise doctor as the first debugging step for any environment issue.
Common Task Workflows
Workflow 1: Bootstrap a New Project
- Load references/core-concepts.md for config hierarchy
- Create mise.toml in the project root with [tools] for required runtimes
- Add [env] section for project-specific environment variables
- Run
mise installto install all declared tools - Commit mise.toml; add mise.local.toml to .gitignore for personal overrides
[tools]
node = "22"
python = "3.12"
[env]
NODE_ENV = "development"
_.path = ["./node_modules/.bin"]
Workflow 2: Replace nvm / asdf
- Load references/core-concepts.md
- Mise auto-reads .nvmrc and .tool-versions, no conversion needed immediately
- Activate mise in shell profile:
eval "$(mise activate zsh)" - Uninstall nvm/asdf once comfortable; run
mise doctorto verify - Migrate to mise.toml to unlock env vars and tasks
Workflow 3: Define Project Tasks
- Load references/task-runner.md
- Add [tasks.name] blocks to mise.toml
- Set depends for prerequisite tasks
- Run:
mise run <task>ormise run --listto see all tasks
Workflow 4: Manage Secrets with SOPS
- Load references/environment-secrets.md
- Install sops:
mise use --global sops - Encrypt secrets file with age key
- Reference in mise.toml:
_.file = { path = "secrets.enc.json", decrypt = true }
Workflow 5: Troubleshoot Environment Issues
- Run
mise doctor, surfaces shell integration problems, PATH issues, shim conflicts - Run
mise env, shows exactly which env vars mise will set in the current directory - Run
mise ls, lists active tool versions in the current directory - Load references/core-concepts.md for config hierarchy to diagnose overrides
Workflow 6: Run Tools from an Agent or Non-Interactive Shell
- Load references/agents-and-editors.md
- Prefix each command with
mise exec --(or callmise run <task>); do not rely onmise activate, which lives in an interactive rc file - If a tool is missing there, run
mise which <tool>andmise ls --current; declare the tool in mise if it is missing - Check a PATH-only consumer with
zsh -lc 'command -v <tool>'orbash -c 'command -v <tool>', not the terminal
Workflow 7: Install Language Servers Through mise
- Load references/agents-and-editors.md
- Declare servers in a global conf.d file, one backend per tool (aqua, npm, pypi, dotnet, github)
- Turn off the editor's installer if mise is the sole manager
- Verify with
mise which <server>andmise exec -- <server> --version
Resource Summaries
| File | Contents | Lines |
|---|---|---|
| references/core-concepts.md | Installation, shell activation, mise.toml format, config hierarchy, migration from asdf/nvm | ~280 |
| references/commands-reference.md | Full command reference: use, install, upgrade, exec, ls, prune, doctor, env | ~240 |
| references/backends.md | Core, UBI, Cargo, npm, Pipx, Aqua backends; Lua plugin architecture; writing custom plugins | ~260 |
| references/task-runner.md | Task definitions, depends, parallel execution, file tasks, monorepo tasks, Usage completions | ~250 |
| references/environment-secrets.md | [env] reference, PATH management, Tera templating, SOPS integration, fnox remote secrets | ~240 |
| references/advanced-features.md | Caching architecture, Lua lifecycle hooks, Pitchfork daemon manager, shell hooks, team CI/CD | ~260 |
| references/agents-and-editors.md | mise exec versus activate in agent and non-interactive shells, shims, language servers and debug adapters through mise, symptoms | ~190 |
Best Practices
- Use
mise exec --in agent commands:mise activatelives in an interactive rc file, which a non-interactive command never reads;mise exec --needs no activation - Commit mise.toml: treat it as the project's source of truth for the toolchain; everyone on the team gets the same runtimes
- Use mise.local.toml for personal overrides: add it to .gitignore; never commit personal paths or secrets
- Prefer
mise useover hand-editing:mise use node@22writes the correct version and installs the tool atomically - Global tools = CLI utilities only: use
mise use --globalfor ripgrep, bat, gh; enforce local versions for runtimes to ensure reproducibility - Always run
mise doctorfirst: it diagnoses 90% of "tool not found" / "wrong version" issues instantly - Use lockfiles for CI strictness: enable mise.lock (experimental) to pin exact patch versions
- Don't mix mise + asdf shims: they conflict on PATH; remove asdf entirely when migrating
- For dynamic task targets, use
usageargs: prefer one stable task name (for exampleskill:test:skill <skill>) over many duplicated static names; dynamic task names are not automatic unless explicitly defined
External References
- mise documentation, official docs
- mise GitHub, source and releases
- mise backends list, all available backends
- mise plugins registry, community plugins
- SOPS documentation, secrets encryption
- Pitchfork, daemon manager companion tool
- fnox, remote secrets companion tool