sickn33/agentic-awesome-skills/devcontainers-nix
Claude Code and agent skill by sickn33/agentic-awesome-skills
- community
Checking that the SKILL.md file is still in the repository.
Create reproducible development environments with Dev Containers, Nix
Install
npx vskill@latest install sickn33/agentic-awesome-skills/devcontainers-nixSKILL.md
Dev Containers & Nix Environments
Reproducible, portable development environments that eliminate environment drift.
When to Use This Skill
Use this skill when:
- Onboarding new developers (zero-to-productive in minutes)
- Standardizing toolchains across a team
- Eliminating "works on my machine" problems
- Setting up CI environments that match local dev
- Creating ephemeral, disposable dev environments
Environment execution boundaries
Devcontainer features, lifecycle hooks, Nix shell hooks, direnv and dependency installers execute code; inspect the complete configuration, locked inputs and source before activation. Do not run moving downloaded installers or accept a hash mismatch by deleting/recreating state; verify publisher/version and integrity first. Avoid privileged Docker-in-Docker and host sockets for untrusted repositories. Never pass production credentials into a development environment by default. Offline operation needs every dependency/artifact already available locally; a lockfile alone is insufficient. nix build/run need corresponding outputs, which the devShell-only example does not define.
Dev Containers
Basic Configuration
Docker Compose Dev Container
Custom Dockerfile
Nix Flakes
Basic Flake
Pin Dependencies
Devbox (Nix Made Simple)
Devbox wraps Nix with a friendlier interface:
devbox.json Configuration
Devbox + direnv (Auto-Activate)
Now cd-ing into the project automatically loads the environment.
CI/CD Integration
GitHub Actions with Devbox
GitHub Actions with Nix
GitHub Codespaces
Comparison
| Feature | Dev Containers | Nix Flakes | Devbox | |
|---|---|---|---|---|
| Learning curve | Low | High | Low | |
| Reproducibility | Good (Docker) | Excellent | Excellent (Nix) | |
| Speed | Slow (build image) | Fast (cached) | Fast (cached) | |
| IDE support | VS Code, JetBrains | Any terminal | Any terminal | |
| CI integration | Docker-based | Nix actions | Devbox action | |
| Offline support | Limited | Full | Full | |
| macOS/Linux/Win | All | macOS/Linux | macOS/Linux |
Best Practices
- Pin all tool versions explicitly — never use
latest - Commit lock files (
flake.lock,devbox.lock, etc.) - Use direnv for automatic environment activation
- Cache Nix store in CI (Cachix or GitHub cache)
- Document setup in README:
devbox shellornix develop - Keep dev environment close to production (same Node/Python versions)
Troubleshooting
| Issue | Solution | |
|---|---|---|
| Nix build slow first time | Use binary cache (Cachix), nix develop caches after first run | |
| Dev Container won't build | Check Docker disk space, rebuild with --no-cache | |
| Package not in Nixpkgs | Search at search.nixos.org, or use fetchFromGitHub overlay | |
| Devbox hash mismatch | Run devbox update, delete .devbox/ and re-init | |
| direnv not activating | Run direnv allow, check shell hook is installed |
Related Skills
- docker-management (
docker-management) — Container image optimization - github-actions (
github-actions) — CI/CD pipeline setup - linux-administration (
linux-administration) — System-level tooling
Limitations
- Guidance executes against real environments: confirm target, blast radius, and rollback plan before applying anything.
- Never deploy to production without explicit approval. Docs-only import: upstream scripts and templates not bundled.
Example
Adapted from BagelHole/DevOps-Security-Agent-Skills (MIT); frontmatter, When to Use/Limitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/devcontainers-nix/SKILL.md
Popularity
- Repository stars
- 47,054
- Repository forks
- 6,853
- 7-day trend score
- 54
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/sickn33/agentic-awesome-skills/devcontainers-nix)