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.
From nix-tasukenpx claudepluginhub ncaq/konoka --plugin nix-tasukeThis skill uses the workspace's default tool permissions.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Guides agent creation for Claude Code plugins with file templates, frontmatter specs (name, description, model), triggering examples, system prompts, and best practices.
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 --gc / nix-collect-garbage | nix store gc |
nix-store --optimise | nix store optimise |
nix-store --add | nix store add |
nix-store --delete | nix store delete |
nix-store --verify | nix store verify |
nix-store --repair-path | nix store repair |
nix-store -q | nix path-info |
nix-store -qR | nix path-info -r |
nix-store -l | nix log |
nix-copy-closure | nix copy |
| 禁止(旧形式) | 使用すべき新形式 |
|---|---|
nix-hash --flat | nix hash file |
nix-hash | nix hash path |
nix-hash --to-base32等 | nix hash to-base16/32/64/sri |
nix-prefetch-url | nix store prefetch-file |
| 禁止(旧形式) | 使用すべき新形式 |
|---|---|
nix-channel | nix flake update / nix registry |
nixpkgs#hello
github:NixOS/nixpkgs#hello
.#mypackage
path:/path/to/flake#output
nix build 'nixpkgs#hello'
nix build '.#mypackage'
nix develop
nix develop '.#myDevShell'
nix shell 'nixpkgs#ripgrep' 'nixpkgs#fd'
nix run 'nixpkgs#hello'
nix search nixpkgs hello
nix flake show
nix flake metadata
nix flake update
nix flake update nixpkgs
nix eval 'nixpkgs#hello.meta.description'
nix store gc
nix path-info -rSh 'nixpkgs#hello'
新形式ではビルドログがデフォルトで非表示です。
表示するには-Lフラグを使用します。
nix build 'nixpkgs#hello' -L
nix develop -L
nix-shellからnix develop/nix shellへの移行nix-shell -p pkg: nix shell nixpkgs#pkgに置き換えnix-shell(ビルド環境): nix developに置き換え