← 返回 Skills 市场
Nix Run
作者
Double Dimos
· GitHub ↗
· v1.0.0
· MIT-0
134
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install nix-run
功能描述
Execute **ANY** command via Nix, regardless of whether it is installed or the local version is outdated. Access 100,000+ packages from nixpkgs-unstable with...
安全使用建议
This skill implements what it claims: it auto-finds packages in nixpkgs-unstable and runs requested commands by invoking 'nix shell' on the specified package(s). Before installing/using it, consider: 1) Nix must be installed on the host (and nix-index/nix-locate for lookups); the SKILL.md's 'zero installation' refers to target tools, not Nix itself. 2) The script pulls packages from the live nixpkgs-unstable flake (network fetches) and executes those binaries with access to your filesystem and network — this is inherent to its design and is a supply‑chain/execution risk if you run untrusted commands or packages. 3) The skill intentionally discourages recommending local installs and insists the agent use its script; be aware this changes normal troubleshooting guidance. 4) If you need stronger guarantees, use pinned/narrower package references instead of nixpkgs-unstable, audit the script, and avoid running untrusted package names/commands. Additional provenance (author, homepage, changelog, or third‑party review) would increase confidence.
功能分析
Type: OpenClaw Skill
Name: nix-run
Version: 1.0.0
The nix-run skill is a utility designed to allow an AI agent to execute CLI tools via the Nix package manager, ensuring dependencies are met without manual installation. The core logic in `scripts/nix-run.sh` uses standard Nix commands (`nix shell`, `nix search`) and `nix-locate` to find and run packages from the official NixOS unstable repository. While the `SKILL.md` contains forceful instructions for the agent to prioritize this tool, these are aligned with the stated purpose of providing a reliable execution environment and do not exhibit malicious intent or prompt-injection attacks aimed at exfiltration or unauthorized access.
能力评估
Purpose & Capability
The skill claims to 'run ANY command via Nix' and its script implements exactly that by detecting local commands, using nix-locate to find packages, and calling 'nix shell github:NixOS/nixpkgs/nixpkgs-unstable#<pkg> -c'. Requiring Nix and nix-index/nix-locate is coherent for this purpose, but the SKILL.md's messaging ('zero installation') can be misleading because Nix (and optionally nix-index) must be present for the script to work.
Instruction Scope
The SKILL.md gives concrete, narrow runtime instructions that map to the included script. It does not instruct reading unrelated files or exfiltrating data. It does strongly require the agent always use the provided script rather than calling nix directly, which is unusual but consistent with the script providing lookup/behavioral logic.
Install Mechanism
There is no install spec; the skill is instruction + script only. Nothing is downloaded or written by an automated install step in the skill bundle itself (lowest installer risk).
Credentials
The skill declares no environment variables or credentials and the script likewise does not read secrets. It does require the host to have Nix (and optionally nix-index/nix-locate) available; those requirements are proportional to the stated functionality.
Persistence & Privilege
The skill does not request always:true, does not modify other skills, and does not persist credentials. It only runs the included shell script when invoked.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install nix-run - 安装完成后,直接呼叫该 Skill 的名称或使用
/nix-run触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of nix-run (v1.0.0): Universal CLI tool runner via Nix with zero configuration.
- Automatically runs any command through Nix if not found locally, accessing 100,000+ packages from nixpkgs-unstable.
- Supports multi-package environments with --shell for complex tasks.
- Includes auto-detection, tool discovery via --search, and package pinning with --pkg.
- Provides rules for exclusive Nix usage—no manual installs or direct nix CLI calls.
- Handles automatic recovery from "command not found" errors and offers workflows for proactive, multi-tool, and discovery use cases.
元数据
常见问题
Nix Run 是什么?
Execute **ANY** command via Nix, regardless of whether it is installed or the local version is outdated. Access 100,000+ packages from nixpkgs-unstable with... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 134 次。
如何安装 Nix Run?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install nix-run」即可一键安装,无需额外配置。
Nix Run 是免费的吗?
是的,Nix Run 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Nix Run 支持哪些平台?
Nix Run 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Nix Run?
由 Double Dimos(@msdimos)开发并维护,当前版本 v1.0.0。
推荐 Skills