一键导入
root
Safe deterministic package management via Root
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Safe deterministic package management via Root
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | root |
| description | Safe deterministic package management via Root |
Use Root as the safe install layer for developer tools. Root wraps Nix to provide deterministic installs, automatic snapshots, binary verification, and one-command rollbacks.
Use Root whenever a task requires installing or checking system-level developer dependencies:
jq, ripgrep, fd, bat, htop)nodejs, python, ruby, go)typescript-language-server, rust-analyzer)postgresql, redis, sqlite)poppler, ffmpeg, imagemagick)openssl, libxml2, pkg-config)Always follow this sequence when installing a package. Every step uses --json for machine-parseable output.
Doctor — root doctor --json
Check environment health. If healthy is false, warn the user.
Plan — root plan install <pkg> --json
Search nixpkgs for the package. Confirm it exists before installing.
Install — root install <pkg> --json
Install the package. Root automatically creates a pre-install snapshot.
Verify — root verify <pkg> --json
Confirm every binary the package exposes is executable.
Rollback — root rollback --last --json
If verification fails, revert to the snapshot taken before install.
Summarize — Tell the user what changed and whether rollback is available.
brew install — Homebrew is non-deterministic and lacks snapshots.curl ... | sh — Piped scripts are unverifiable.npm install -g or pip install --user — Global language installs fragment the environment.PATH manually — Root manages profile activation through Nix.User: I need to extract text from PDFs.
Agent:
root doctor --json
root plan install poppler --json
root install poppler --json
root verify poppler --json
Summary: Installed poppler via Root (deterministic, snapshot-protected).
pdftotext verified successfully.