agentleFS
pantheon-orgpantheon-org/tekhne/skills/package-mgmt/mise-complete/SKILL.md

mise-complete

Skill10 starsChanged 39 days agoMITView on GitHub

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.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 5 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

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

    line 15
  2. Distinctive:

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

    line 19
  3. Very specific:

    Keep one canonical mise.toml per project scope.

    line 23
  4. Distinctive:

    Keep secrets out of committed task definitions.

    line 26
  5. Distinctive:

    Add or normalize tasks for common workflows.

    line 32
  6. Very specific:

    If mise install fails, run mise doctor to diagnose path or plugin issues, then re-run mise install.

    line 35
  7. Distinctive:

    All tool versions are pinned to exact releases for reproducibility.

    line 117
  8. Very specific:

    BAD: Keep both nvm and Mise controlling Node in CI.

    line 147
  9. Very specific:

    BAD: Run mise install, see no error and move on without checking health.

    line 154
  10. Very specific:

    GOOD: Run mise install && mise doctor and resolve any warnings before proceeding.

    line 155
  11. Very specific:

    GOOD: Run mise doctor to diagnose the path or plugin issue, fix it, then re-run mise install.

    line 162

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.