/devenv:manage [add|upgrade|remove|security]from devenv
Nix flake dev environment setup and changes: add, upgrade, remove, security.
Ships in devenv. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Initialize and manage Nix flake development environments. Provides a devbox-like experience with auto-detection of project dependencies and security tooling using native Nix solutions.
First, determine if this is a new setup or managing an existing environment:
flake.nix exists in the current directorygit-hooks input is present (indicates pre-commit is configured).claude/devenv.local.md if it exists for:
nixos-unstable)box)shell_welcome: custom)Read references/init-flow.md and follow it.
Read references/manage-flow.md and follow it.
nix-shell -p <tool> --run "<command>" for nix tools - do NOT assume they are installed system-wideflake.nix after any Write/Edit operations.claude/devenv.local.md if it exists, otherwise default to nixos-unstablegit-hooks.nix auto-generates .pre-commit-config.yaml via shellHook - no manual YAML needed!self parameter in flake outputs is REQUIRED by the Nix flake system, even if not explicitly used in the function body. The plugin's deadnix hook is configured with --no-lambda-pattern-names to preserve itnix flake check --no-build before completing any flake creation/modification taskinputs.direnv-instant.url = "github:Mic92/direnv-instant" and referenced as direnv-instant.packages.${system}.default. Standard direnv IS in nixpkgs and can be added directly to the packages list.See references/mcp-package-search.md (section "MCP Tools: NixOS Package Search") for the tool priority order (1mcp, global/project mcp-nixos, plugin bundled MCP, bash fallback), exact call signatures for package and version search, the version resolution workflow, and the parameter reference.
Users can customize behavior via .claude/devenv.local.md:
---
nixpkgs_channel: nixos-unstable
use_mcp_search: true
direnv_mode: instant
shell_welcome: box
shell_welcome_custom: ""
---
| Setting | Default | Description |
|---|---|---|
nixpkgs_channel | nixos-unstable | Nixpkgs channel to use |
use_mcp_search | true | Use mcp-nixos for package search. Set to false to always use bash fallback |
direnv_mode | instant | direnv integration: instant (async, recommended), standard (sync), or none |
shell_welcome | box | Welcome message style: box, minimal, project, tech, custom, or none |
shell_welcome_custom | "" | Custom welcome message text (only used when shell_welcome: custom). Use \n for multi-line |
See references/git-hooks.md (section "git-hooks.nix Hook Reference") for available hooks by language and an example hook configuration.
references/flake-templates.md (opens in a new tab)references/git-hooks.md (opens in a new tab)references/init-flow.md (opens in a new tab)references/manage-flow.md (opens in a new tab)references/mcp-package-search.md (opens in a new tab)references/output-instructions.md (opens in a new tab)references/shell-welcome.md (opens in a new tab)references/stack-detection.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Use when setting up or changing a Nix flake development environment: 'set up devenv', 'devenv setup', 'init a nix flake', 'create a dev shell', 'add package X to the flake', 'upgrade flake inputs', 'remove package from devenv', 'add pre-commit/security hooks'. Auto-detects project stack and manages flake.nix.
npx claudepluginhub jskswamy/skills --plugin devenv