← ClaudeAtlas

nix-commandlisted

Nix CLI command guidelines. Use new unified CLI (nix subcommand) instead of legacy commands (nix-build, nix-env, nix-shell, etc.). Use when running or suggesting Nix commands.
ncaq/konoka · ★ 3 · AI & Automation · score 72
Install: claude install-skill ncaq/konoka
# Nixコマンドガイドライン `experimental-features = nix-command flakes`が有効な環境では、 新しい統一CLI(`nix <subcommand>`形式)を使用してください。 ## 旧形式コマンドの使用禁止 以下の旧形式コマンドは使用禁止です。 対応する新形式を使ってください。 ### ビルド・開発環境 | 禁止(旧形式) | 使用すべき新形式 | | ----------------- | ------------------------------------------------- | | `nix-build` | `nix build` | | `nix-shell` | `nix develop`(ビルド環境) / `nix shell`(一���利用) | | `nix-instantiate` | `nix eval` / `nix derivation show` | ### パッケージ管理 | 禁止(旧形式) | 使用すべき新形式 | | ------------------------------ | -------------------------- | | `nix-env -i` / `nix-env -iA` | `nix profile add` | | `nix-env -e` | `nix profile remove` | | `nix-env -u` | `nix profile upgrade` | | `nix-env -q` | `nix profile list` | | `nix-env -qa` | `nix search` | | `nix-env --rollback` | `nix profile rollback` | | `nix-env --list-generations` | `nix profile history` | | `nix-env --delete-generations` | `nix profile wipe-history` | ### Nix Store操作 | 禁止(旧形式) | 使用すべき新形式 | | ---------------------------------------- | -------------------- | | `nix-store --gc` / `nix-collect-garbage` | `nix store gc` | | `nix-store --optimise` | `nix store optimise` | | `nix-store --add` | `nix s