Use when you have a written implementation plan to execute in a separate session with review checkpoints
npx skills add axelknock/agent-skills --skill "devenv"
Install specific skill from multi-skill repository
# Description
Manage and troubleshoot devenv-based developer environments. Use when creating or modifying devenv.nix/devenv.yaml, adding or removing packages, updating inputs/lockfiles, configuring scripts/tasks/processes/services, or fixing devenv evaluation/shell errors and direnv activation issues.
# SKILL.md
name: devenv
description: Manage and troubleshoot devenv-based developer environments. Use when creating or modifying devenv.nix/devenv.yaml, adding or removing packages, updating inputs/lockfiles, configuring scripts/tasks/processes/services, or fixing devenv evaluation/shell errors and direnv activation issues.
Devenv Configuration
Workflow
- Inspect the repo for
devenv.nix,devenv.yaml,devenv.lock,devenv.local.nix,devenv.local.yaml, and.envrcbefore changing anything. - Prefer minimal, targeted edits that match the existing style and structure.
- Update both configuration and lockfile only when asked (or when required by an inputs change).
- When changing inputs, run
devenv updateunless the user requests a manual pin. - When troubleshooting, collect the exact error message and identify the failing file or option.
Common edits
- Add or remove packages by editing
packages = [ ... ];indevenv.nix. - Adjust inputs/imports in
devenv.yaml; keepdevenv.lockin sync. - Prefer
tasksover complexenterShellfor ordered or repeatable setup steps. - Use
scripts.*for helper commands andprocesses.*/services.*for long-running dev services.
Troubleshooting
- Use
devenv search <name>to confirm package names in the pinned nixpkgs. - Use
devenv infoto inspect resolved environment details. - For evaluation errors, locate the invalid option or Nix syntax issue and correct it in the relevant file.
- For direnv issues, confirm
.envrccontainsuse devenv(or the officialdevenv direnvrc) and rerundirenv allow.
References
- Read
references/devenv.mdfor common patterns, commands, and examples when implementing changes.
# Supported AI Coding Agents
This skill is compatible with the SKILL.md standard and works with all major AI coding agents:
Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.