Skip to main content

missing-tools

Resolves missing CLI tools. Use when a command is unavailable, a shell reports command not found, or a tool must be run without installing it globally.

来源信息

仓库
ryoppippi/dotfiles
最近来源活动
2026年10月20日 10:52
检测到的 SKILL.md 语言
英语
星标
269
Forks
5

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
missing-tools
description
Resolves missing CLI tools. Use when a command is unavailable, a shell reports command not found, or a tool must be run without installing it globally.
Use this workflow when a required command is unavailable: 1. Try comma: `, <command>`. When several packages provide the command and there is no terminal, it runs the one named after the command and says which on stderr; if that is the wrong one, list them with `, -p <command>` and use step 3 or 4. 2. Try the project environment: `direnv exec . <command>`. 3. Use `nix run nixpkgs#<package> -- <args>` when a package is known. 4. Use `nix shell nixpkgs#<package> --command <command>` when a package is known but a temporary shell is required. Exceptions: - Script with a missing interpreter: read its shebang and run it with `nix shell nixpkgs#<package> --command ./<script>`. - Last resort: `docker run --rm -v "$PWD:/workspace" -w /workspace <image> <command>`. For GitHub-backed Nix fetches, use the `nix-github-rate-limit` skill. Never install tools globally. Use Zsh for normal commands; if a user tool is only on Fish's PATH, resolve it with `fish -lc 'command -v <tool>'` and invoke the resulting path.
在 GitHub 查看