B+
package mgmtmise complete

Mise Complete

Configure and operate Mise for deterministic developer environments. Use when installing runtime/tool versions, defining reusable tasks, managing layered environment variables, migrating from asdf/nvm/pyenv, or debugging mise.toml behavior in CI and local shells. Keywords: mise, mise.toml, tool versions, tasks, env, asdf migration, setup automation, dev environment.

npx skills add github:pantheon-org/tekhne --skill package-mgmt--mise-complete

When to Use

Use this skill when setup, version management, or task automation needs to be standardized with Mise.

When Not to Use

Do not use this skill when the repository intentionally uses another tool manager as the source of truth.

Core Principles

  1. Keep one canonical mise.toml per project scope.
  2. Pin tool versions for reproducible builds.
  3. Make tasks deterministic and non-interactive by default.
  4. Keep secrets out of committed task definitions.

Deterministic Workflow

  1. Detect existing tool managers and migration constraints.
  2. Define or update mise.toml tool versions.
  3. Add or normalize tasks for common workflows.
  4. Configure environment variables by scope.
  5. Install configured tools and validate with mise install && mise doctor.
  6. If mise install fails, run mise doctor to diagnose path or plugin issues, then re-run mise install.

Quick Commands

Install configured tools

mise install

Expected result: configured runtimes are installed for the current project.

Verify environment health after install

mise doctor

Expected result: no errors reported; any warnings indicate misconfigured plugins or PATH issues to resolve before proceeding.

Verify active tool versions match pinned values

mise ls

Expected result: each tool shows the pinned version from mise.toml as the active version.

Pin a tool version

mise use node@22

Expected result: mise.toml updated with pinned Node version.

Run a named task

mise run test

Expected result: task executes with the environment defined by Mise.

Inspect effective environment

mise env

Expected result: resolved environment variables and tool paths are printed.

Evaluate this skill quality

pantheon-skill-auditor evaluate mise-complete --json

Expected result: updated audit dimensions and grade.

mise.toml Example

A minimal mise.toml showing pinned tool versions, a task definition, and a scoped environment variable:

[tools]
node = "22.4.0"
python = "3.12.3"
terraform = "1.8.5"

[tasks.test]
description = "Run test suite"
run = "npm test"

[tasks.lint]
description = "Run linter"
run = "npm run lint"

[env]
NODE_ENV = "development"
  • All tool versions are pinned to exact releases for reproducibility.
  • Tasks are self-contained; no implicit shell state is assumed.
  • Environment variables are scoped to this project and not committed with secrets.

Anti-Patterns

NEVER keep floating tool versions in team repositories

  • WHY: Unpinned versions cause machine-to-machine drift.
  • BAD: node = "latest" for shared project tooling.
  • GOOD: Pin exact versions required by CI and teammates.
  • Consequence: Builds pass on one machine and fail on another.

NEVER embed secrets in committed mise.toml

  • WHY: Version control is not a secret store.
  • BAD: Hardcode API tokens in environment blocks.
  • GOOD: Load secrets from external secret management or local env files.
  • Consequence: Secret leakage and mandatory credential rotation.

NEVER define tasks that rely on implicit shell state

  • WHY: Hidden state makes task outcomes non-deterministic.
  • BAD: Task assumes manual cd or prior env exports.
  • GOOD: Task commands are self-contained with explicit paths.
  • Consequence: Task behavior differs across terminals and CI.

NEVER mix multiple tool managers as active authority

  • WHY: Overlapping managers conflict on PATH and versions.
  • BAD: Keep both nvm and Mise controlling Node in CI.
  • GOOD: Migrate ownership per tool and remove overlapping activation.
  • Consequence: Unpredictable runtime resolution and flaky builds.

NEVER skip mise doctor after installing tools

  • WHY: mise install can succeed while PATH or plugin problems remain, and these surface later as confusing build failures.
  • BAD: Run mise install, see no error and move on without checking health.
  • GOOD: Run mise install && mise doctor and resolve any warnings before proceeding.
  • Consequence: Misconfigured plugins or PATH issues are discovered mid-build instead of at setup.

NEVER leave a failed mise install without diagnosing it

  • WHY: Re-running the same command repeats the same failure and hides the PATH or plugin cause.
  • BAD: Retry mise install several times, or loosen the pin until it passes.
  • GOOD: Run mise doctor to diagnose the path or plugin issue, fix it, then re-run mise install.
  • Consequence: Pins get weakened to hide a local setup fault.

NEVER define interactive tasks that wait for user input

  • WHY: Tasks must be deterministic and non-interactive by default so they run the same locally and in CI.
  • BAD: A task that prompts for confirmation before running.
  • GOOD: A task whose commands run to completion with no prompt.
  • Consequence: Unattended CI jobs hang or fail.

NEVER hardcode machine-specific absolute paths in mise.toml

  • WHY: Paths such as a home directory only exist on one machine, so the file stops being portable.
  • BAD: PROJECT_DIR = "/Users/john/projects/myapp".
  • GOOD: PROJECT_DIR = "{{ config_root }}".
  • Consequence: Teammates and CI resolve the wrong or missing directory.

NEVER keep more than one canonical mise.toml defining the same tools for one scope

  • WHY: Duplicate definitions drift apart and leave it unclear which pins apply.
  • BAD: Copies of the same tool pins in a repository root and a sub-package, edited independently.
  • GOOD: One canonical mise.toml per project scope, with shared settings in the global config.
  • Consequence: Different directories resolve different versions of the same tool.

References

  • references/tools-installation.md
  • references/tools-versions.md
  • references/tools-migration.md
  • references/tasks-definition.md
  • references/tasks-execution.md
  • references/env-definition.md
  • references/env-hierarchies.md
  • references/config-structure.md
  • references/config-management.md
  • references/config-anti-patterns.md