Przejdź do treści
Biblioteka skilli
DevOps i chmura · Integracja z narzędziem

working-with-mise

/working-with-mise

Pomaga dodawać, konfigurować i naprawiać narzędzia zarządzane przez mise: poprawne użycie CLI, wykrywanie istniejących plików konfiguracji i diagnoza problemów z PATH i aktywacją.

Licencja
MIT
Ostatnia zmiana repozytorium
19.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
80
Skrypty
1
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 19.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co sprawdzić przed instalacją
  • 1 skrypt w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.

Skrypty: update-docs.sh

Co robi i kiedy

Pomaga dodawać, konfigurować i naprawiać narzędzia zarządzane przez mise: poprawne użycie CLI, wykrywanie istniejących plików konfiguracji i diagnoza problemów z PATH i aktywacją.

Oryginalny opis (EN)

Use when adding, configuring, or troubleshooting mise-managed tools - ensures proper CLI usage, detects existing config files, and diagnoses PATH/activation issues when commands aren't found

Jak działa

  1. Overview
  2. The Iron Rules
  3. When to Use mise vs Alternatives
  4. Adding Tools with mise
  5. Troubleshooting "Command Not Found"
  6. Validation Commands
  7. Available References
  8. Red Flags - You're About to Violate
Sekcje z nagłówków SKILL.md, w oryginale · 238 linii, 999 słów
Podgląd SKILL.md
---
name: working-with-mise
description: Use when adding, configuring, or troubleshooting mise-managed tools - ensures proper CLI usage, detects existing config files, and diagnoses PATH/activation issues when commands aren't found
---

# Working with mise

## Overview

mise is a polyglot tool version manager. Use this skill when:
- Adding tools to a project via mise
- Troubleshooting "command not found" when mise should have tools available
- Deciding whether mise is the right choice for a dependency

## The Iron Rules

1. **Use `mise use` to add tools** - never manually edit config files
2. **Detect existing config files first** - don't create new ones when one exists
3. **Fix the shell, don't workaround** - if tools aren't on PATH, diagnose the activation issue rather than using `mise exec` as a permanent workaround

## When to Use mise vs Alternatives

### Use mise when version matters per-project

Tools where different projects need different versions:
- Language runtimes: node, python, ruby, go, rust
- Infrastructure tools: terraform, kubectl, helm
- Tools with breaking changes between versions

```bash
# Good mise candidates - version sensitivity
mise use node@20      # Projects may need different Node versions
mise use terraform@1.5  # IaC often pins specific versions
mise use ruby@3.2     # Gemfiles often require specific Ruby
```

### Use Homebrew/system when version rarely matters

Stable CLIs with consistent interfaces across versions:
- jq, yq - query languages are stable
- gh, hub - GitHub CLI
- ripgrep, fd - search tools
- tree, htop - system utilities

```bash
# Better as Homebrew - version doesn't matter
brew install jq gh ripgrep
```

### Decision checklist

Ask yourself:
1. Does this project's README/docs specify a version? → mise
2. Could different team members need different versions? → mise
3. Does the tool have breaking changes between versions? → mise
4. Is it a stable CLI you use the same way everywhere? → Homebrew

## Adding Tools with mise

### 1. Check for existing config files first

Before adding tools, detect what config format the project uses:

```bash
# Check for existing mise config
ls -la mise.toml .mise.toml .mise.local.toml .tool-versions 2>/dev/null
```

Config file precedence (mise uses the first it finds):
- `mise.toml` or `.mise.toml` - standard mise config
- `.mise.local.toml` - local overrides (usually gitignored)
- `.tool-versions` - legacy asdf format

**If a config file exists, use that format.** Don't create a new one.

### 2. Use `mise use` to add tools

**Always use the CLI** - it validates the tool exists and works:

```bash
# Add to project config (mise.toml or existing format)
mise use node@20

# Add to global config (~/.config/mise/config.toml)
mise use -g python@3.12

# Dry run to see what would happen
mise use --dry-run terraform@1.5
```

**Never manually edit config files** - `mise use` ensures:
- The tool/version exists in the registry
- The tool installs correctly
- The config syntax is valid

### 3. Verify the tool is available

```bash
# Check mise sees the tool
mise ls

# Check the tool is on PATH
which node
node --version

# Compare with mise's view
mise which node
```

## Troubleshooting "Command Not Found"

When a tool should be available but isn't found:

### Diagnostic workflow

```bash
# 1. Check mise installation health
mise doctor

# 2. Check what tools mise knows about
mise ls                    # All installed tools
mise ls --current          # Tools for current directory

# 3. Compare which vs mise which
which node                 # What shell finds
mise which node            # What mise thinks it should be

# 4. Check if tool would work via mise exec
mise exec -- node --version  # If this works, it's an activation issue
```

### Common causes and fixes

#### Shell activation not set up

**Symptom**: `mise exec -- node` works, but `node` doesn't

**Diagnose**:
```bash
mise doctor  # Look for activation warnings
```

**Fix** - add to shell rc file:

```bash
# For zsh (~/.zshrc)
eval "$(mise activate zsh)"

# For bash (~/.bashrc)
eval "$(mise activate bash)"

# For fish (~/.config/fish/config.fish)
mise activate fish | source
```

Then restart your shell or `source` the rc file.

#### Config file not trusted

**Symptom**: mise shows trust warning, tools not activated

**Fix**:
```bash
mise trust
```

#### Tool not installed for current directory

**Symptom**: `mise ls` shows tool globally but not in `mise ls --current`

**Diagnose**:
```bash
# Check what config file applies
mise config

# Check if there's a local config overriding global
cat mise.toml .mise.toml .tool-versions 2>/dev/null
```

**Fix**: Add the tool to the project config:
```bash
mise use node@20  # Adds to project config
```

#### Shims vs PATH activation confusion

**Symptom**: Tools work in terminal but not in IDE/scripts

See [references/dev-tools/shims-html.md](references/dev-tools/shims-html.md) for detailed explanation.

**Quick fix** for non-interactive contexts:
```bash
# In ~/.zprofile or ~/.bash_profile (non-interactive)
eval "$(mise activate zsh --shims)"

# In ~/.zshrc or ~/.bashrc (interactive)
eval "$(mise activate zsh)"
```

### When to use `mise exec` (legitimately)

`mise exec` is appropriate for:
- One-off commands with specific versions: `mise exec node@18 -- npm test`
- CI/CD scripts where activation isn't available
- Testing a different version temporarily

`mise exec` is NOT a fix for:
- Tools not being on PATH in your terminal (fix activation instead)
- "It works with mise exec" as a permanent solution

## Validation Commands

After configuration changes, verify everything works:

```bash
# Full health check
mise doctor

# Verify specific tool
mise which node && node --version

# Verify PATH includes mise tools
echo $PATH | tr ':' '\n' | grep mise
```

## Available References

- [references/cli/use-html.md](references/cli/use-html.md) - Full `mise use` documentation
- [references/cli/doctor-html.md](references/cli/doctor-html.md) - Diagnostic commands
- [references/cli/activate-html.md](references/cli/activate-html.md) - Shell activation
- [references/cli/which-html.md](references/cli/which-html.md) - Path resolution
- [references/dev-tools/shims-html.md](references/dev-tools/shims-html.md) - Shims vs PATH activation
- [references/guides/getting-started.md](references/guides/getting-started.md) - Setup guide

## Red Flags - You're About to Violate

- "Let me just add this to mise.toml manually" → Use `mise use` instead
- "I'll use mise exec as a workaround" → Diagnose why activation isn't working
- "Let me create a .mise.toml" → Check if config already exists first
- Adding jq/gh/ripgrep to mise → Consider if version actually matters
- Assuming mise is activated → Run `mise doctor` to verify
Pliki w paczce (80)
  • .gitignore 1 KB
  • SKILL.md 7 KB
  • update-docs.sh 3 KB
  • references/index.md 1 KB
  • references/cli/activate-html.md 2 KB
  • references/cli/alias-html.md 1 KB
  • references/cli/backends-html.md 1 KB
  • references/cli/bin-paths-html.md 1 KB
  • references/cli/cache-html.md 1 KB
  • references/cli/completion-html.md 1 KB
  • references/cli/config-html.md 1 KB
  • references/cli/deactivate-html.md 1 KB
  • references/cli/doctor-html.md 1 KB
  • references/cli/en-html.md 1 KB
  • references/cli/env-html.md 1 KB
  • references/cli/exec-html.md 2 KB
  • references/cli/fmt-html.md 1 KB
  • references/cli/generate-html.md 1 KB
  • references/cli/implode-html.md 1 KB
  • references/cli/install-html.md 2 KB
  • references/cli/install-into-html.md 1 KB
  • references/cli/latest-html.md 1 KB
  • references/cli/link-html.md 1 KB
  • references/cli/lock-html.md 2 KB
  • references/cli/ls-html.md 2 KB
  • references/cli/ls-remote-html.md 1 KB
  • references/cli/mcp-html.md 2 KB
  • references/cli/outdated-html.md 1 KB
  • references/cli/plugins-html.md 1 KB
  • references/cli/prune-html.md 1 KB
  • references/cli/registry-html.md 1 KB
  • references/cli/reshim-html.md 1 KB
  • references/cli/run-html.md 4 KB
  • references/cli/search-html.md 2 KB
  • references/cli/self-update-html.md 1 KB
  • references/cli/set-html.md 2 KB
  • references/cli/settings-html.md 2 KB
  • references/cli/shell-html.md 1 KB
  • references/cli/sync-html.md 1 KB
  • references/cli/tasks-html.md 2 KB
  • references/cli/test-tool-html.md 1 KB
  • references/cli/tool-html.md 1 KB
  • references/cli/tool-stub-html.md 2 KB
  • references/cli/trust-html.md 1 KB
  • references/cli/uninstall-html.md 1 KB
  • references/cli/unset-html.md 1 KB
  • references/cli/unuse-html.md 2 KB
  • references/cli/upgrade-html.md 2 KB
  • references/cli/use-html.md 3 KB
  • references/cli/use.md 3 KB
  • references/cli/version-html.md 1 KB
  • references/cli/watch-html.md 29 KB
  • references/cli/where-html.md 1 KB
  • references/cli/which-html.md 1 KB
  • references/configuration/environments-html.md 2 KB
  • references/configuration/settings-html.md 40 KB
  • references/dev-tools/aliases-html.md 2 KB
  • references/dev-tools/backend_architecture-html.md 10 KB
  • references/dev-tools/backends.md 2 KB
  • references/dev-tools/comparison-to-asdf-html.md 9 KB
  • references/dev-tools/index-html.md 14 KB
  • references/dev-tools/mise-lock-html.md 9 KB
  • references/dev-tools/shims-html.md 13 KB
  • references/dev-tools/tool-stubs-html.md 11 KB
  • references/dev-tools/backends/aqua-html.md 10 KB
  • references/dev-tools/backends/asdf-html.md 1 KB
  • references/dev-tools/backends/cargo-html.md 4 KB
  • references/dev-tools/backends/conda-html.md 3 KB
  • references/dev-tools/backends/dotnet-html.md 3 KB
  • references/dev-tools/backends/gem-html.md 1 KB
  • references/dev-tools/backends/github-html.md 8 KB
  • references/dev-tools/backends/gitlab-html.md 9 KB
  • references/dev-tools/backends/go-html.md 1 KB
  • references/dev-tools/backends/http-html.md 12 KB
  • references/dev-tools/backends/npm-html.md 2 KB
  • references/dev-tools/backends/pipx-html.md 5 KB
  • references/dev-tools/backends/spm-html.md 3 KB
  • references/dev-tools/backends/ubi-html.md 8 KB
  • references/dev-tools/backends/vfox-html.md 3 KB
  • references/guides/getting-started.md 8 KB

Wersje

W bazie nie ma innych skilli o nazwie working-with-mise.

Migawka bazy z 28.10.2026 · wersja paczki 926d02a67b29 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 100mise
    Pomaga skonfigurować i diagnozować mise, czyli menedżer narzędzi i zadań: wybór między mise.toml a mise.local.toml, aktywacja albo shimy, backendy oraz ustawienia lockfile, auto-install i offline.
  • 90mise-task-configuration
    Pomaga definiować i konfigurować zadania Mise w mise.toml: definicje, zależności, zadania plikowe i wykonanie równoległe.
  • 100mise-tool-management
    Przypina binarne narzędzia CLI i build (swiftlint, xcbeautify, gitleaks, lefthook) przez mise we wspólnym .mise.toml dla maszyn deweloperskich i CI oraz pomaga debugować jego użycie w nowych worktree.
  • 100mise
    Konfiguruje i utrzymuje środowiska deweloperskie z mise: menedżer wersji narzędzi, przełączanie środowiska według katalogu i uruchamianie zadań, z mise.toml, mise use i mise run.
  • 95mise
    Konfiguruje narzędzia deweloperskie mise: wersje Node, Java, pnpm i Maven oraz zadania w pliku mise.toml.
  • 100fix-mise
    Diagnozuje i naprawia awarie środowisk uruchomieniowych mise spowodowane konfiguracją, brakującymi runtime'ami, nieaktualnymi wersjami, monitami o zaufaniu lub rozjazdem aktywacji powłoki.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.