Tooluck logoTooluck
SKILL.md

devcontainers-nix

Agent skill fromBagelHole/DevOps-Security-Agent-Skills

Create reproducible development environments with Dev Containers, Nix flakes, and Devbox for consistent toolchains across teams. Use when onboarding developers, standardizing build environments, or eliminating "works on my machine" problems.

How to install devcontainers-nix

install devcontainers-nix
# install the DevOps-Security-Agent-Skills pack with the skills CLI
npx skills add BagelHole/DevOps-Security-Agent-Skills

# or add only this skill to Claude Code: copy the folder

devops/developer-experience/devcontainers-nix/

# into

~/.claude/skills/devcontainers-nix/ (all projects)

.claude/skills/devcontainers-nix/ (one project)

devops/developer-experience/devcontainers-nix/SKILL.md

MITFull file
1# Dev Containers & Nix Environments
2
3Reproducible, portable development environments that eliminate environment drift.
4
5## When to Use This Skill
6
7Use this skill when:
8- Onboarding new developers (zero-to-productive in minutes)
9- Standardizing toolchains across a team
10- Eliminating "works on my machine" problems
11- Setting up CI environments that match local dev
12- Creating ephemeral, disposable dev environments
13
14## Dev Containers
15
16### Basic Configuration
17
18```json
19// .devcontainer/devcontainer.json
20{
21 "name": "My Project",
22 "image": "mcr.microsoft.com/devcontainers/base:ubuntu-22.04",
23 "features": {
24 "ghcr.io/devcontainers/features/node:1": { "version": "20" },
25 "ghcr.io/devcontainers/features/python:1": { "version": "3.12" },
26 "ghcr.io/devcontainers/features/docker-in-docker:2": {},
27 "ghcr.io/devcontainers/features/kubectl-helm-minikube:1": {}
28 },
29 "forwardPorts": [3000, 5432],
30 "postCreateCommand": "npm install",
31 "customizations": {
32 "vscode": {
33 "extensions": [
34 "dbaeumer.vscode-eslint",
35 "esbenp.prettier-vscode",
36 "ms-python.python"
37 ],
38 "settings": {
39 "editor.formatOnSave": true
40 }
41 }
42 }
43}
44```
45
46### Docker Compose Dev Container
47
48```json
49// .devcontainer/devcontainer.json
50{
51 "name": "Full Stack Dev",
52 "dockerComposeFile": "docker-compose.yml",
53 "service": "app",
54 "workspaceFolder": "/workspace",
55 "forwardPorts": [3000, 5432, 6379],
56 "postCreateCommand": "npm install && npx prisma migrate dev"
57}
58…

Excerpt shown under the repository's MIT license.

More skills in DevOps-Security-Agent-Skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates