---
name: mise
description: "Configure mise.toml tasks, pins, mise.lock, and env; format with dprint; upgrade repo tools and deps."
license: MIT
metadata:
kind: task
author: Médéric HURIER (Fmind)
source: github.com/fmind/dot/tree/main/skills/mise
created: "2026-07-04"
updated: "2026-12-01"
---
# Mise
One project `mise.toml` owns tool pins and task commands; hooks and CI only choose when to invoke them. All stack starters share [repo-core.toml](templates/repo-core.toml); start Python projects from [python/foundation](../python/references/foundation/templates/mise.toml), standalone doc sites from [docs/site](../docs/references/site/templates/mise.toml), and OpenTofu projects from [infra-as-code](../infra-as-code/templates/mise.toml).
## Workflow
1. **Pin exact versions** per [tool-versions.md](references/tool-versions.md) before installing copied scaffolds; never commit tool binaries.
1. **Keep tasks simple**: use direct commands, short `run` arrays, native CLI flags, and `depends`; never wrap commands in `bash -c`/`sh -c`, nest conditionals, cram scripts onto one line, or embed large shell blocks in TOML (put branching, retries, and response parsing in a small Python script).
1. **Follow the shared vocabulary** in [task-conventions.md](references/task-conventions.md#task-vocabulary) (`install`, `format`, `check`, `test`, `build`, `watch`, `doctor`, `all`) plus subtask naming, concise output, and argument forwarding.
1. **Lock and validate**: install pinned tools, run `mise tasks validate` and `mise lock --check`, and invoke `mise run <task>` in automation.
1. **Verify** modified tasks and their callers, documenting any held-back pin.
## Task guides
<!-- guides:start -->
- [dprint](references/dprint.md): Configure and format JSON, Markdown, TOML, and YAML with dprint.
- [upgrade-tools](references/upgrade-tools/GUIDE.md): Upgrade one repo's mise tools, uv deps, Actions, images.
<!-- guides:end -->
## Gotchas
- **Load `.env` only when needed, without shadowing caller overrides**: `[env]` keys and `_.file = ".env"` (`_.source` for shell scripts) override inherited process variables, so keep task-overridable defaults like `PORT` in `${PORT:-8000}` rather than `[env]` or `.env`.
- **Keep gates side-effect-free**: `check`, `test`, `build`, and `all` must never publish, deploy, or spend; keep consequential tasks explicit.
- **Isolate `mise run all` on dirty trees**: `all` inspects the full tree without rewriting files while `format` mutates files; when unrelated edits exist, test a materialized snapshot via [git-worktree](../git-delivery/references/git-worktree/GUIDE.md).
- **Pin project tools in the project**: global workstation tools never replace project pins; declare every tool (`kubectl`, `opentofu`, etc.) in the project's `mise.toml` via `mise use --pin <tool>` ([tool-versions.md](references/tool-versions.md)), and ask before adding `mise.toml` to a non-mise client repo.
- **Never set `MISE_LOCKED=0`**: global mise runs locked, so `mise x <unlisted-tool>` outside a project fails (`No lockfile URL found ... (--locked mode)`); declare the tool in the project rather than mutating the global lock.
## Documentation
- [mise](https://mise.jdx.dev) · [Tasks](https://mise.jdx.dev/tasks/) · [Settings](https://mise.jdx.dev/configuration/settings.html) · [dprint](https://dprint.dev/) · [mise releases](https://github.com/jdx/mise/releases) · [changelog](https://github.com/jdx/mise/blob/main/CHANGELOG.md)
- Companions: [lefthook](../git-delivery/references/lefthook.md), [github/ci-cd](../github/references/ci-cd/GUIDE.md).