[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6P1D72Y132PXAZ8RK3C6R5Y":3,"skill-same:01M6P1D72Y132PXAZ8RK3C6R5Y":71},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":28,"commitSha":52,"skillDirectory":53,"forksCount":13,"repositoryHtmlUrl":54,"repositoryHomepageUrl":6,"ownerHtmlUrl":55,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":56,"install":57,"resources":70},"01M6P1D72Y132PXAZ8RK3C6R5Y","devcontainers-nix",null,"Create reproducible development environments with Dev Containers, Nix flakes, and Devbox for consistent toolchains across teams.","duc-duy-1612\u002FOnline-Delivery-Systems-Web","duc-duy-1612","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F192231384?v=4","01M6NSDKQQDKVTHZ8DZMZ1VYY6","01M6NSDKW8DDVTQHBT1HBDDJPT",0,"MIT","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fdevcontainers-nix\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"devcontainers nix","devcontainers","nix","community","environments","relevant","scripts","critical","platform","across","main","only","access","devops-security","kubectl","ci","git","create","development","security","2026-11-10 10:12:30",false,"---\nname: devcontainers-nix\ndescription: Create reproducible development environments with Dev Containers, Nix\n  flakes, and Devbox for consistent toolchains across teams.\ncategory: devops\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\nsource_repo: BagelHole\u002FDevOps-Security-Agent-Skills\nsource_type: community\ndate_added: '2026-09-20'\nlicense: MIT\nlicense_source: https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE\ncompatibility: Requires the relevant platform CLIs (kubectl, helm, terraform, git,\n  CI runners) and authorized access to the target environment. Docs-only; helper scripts\n  and templates not bundled.\nmetadata:\n  author: devops-skills\n  version: '1.0'\n---\n\n# Dev Containers & Nix Environments\n\nReproducible, portable development environments that eliminate environment drift.\n\n## When to Use This Skill\n\nUse this skill when:\n- Onboarding new developers (zero-to-productive in minutes)\n- Standardizing toolchains across a team\n- Eliminating \"works on my machine\" problems\n- Setting up CI environments that match local dev\n- Creating ephemeral, disposable dev environments\n\n## Dev Containers\n\n### Basic Configuration\n\n```json\n\u002F\u002F .devcontainer\u002Fdevcontainer.json\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu-22.04\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": { \"version\": \"20\" },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fpython:1\": { \"version\": \"3.12\" },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker:2\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fkubectl-helm-minikube:1\": {}\n  },\n  \"forwardPorts\": [3000, 5432],\n  \"postCreateCommand\": \"npm install\",\n  \"customizations\": {\n    \"vscode\": {\n      \"extensions\": [\n        \"dbaeumer.vscode-eslint\",\n        \"esbenp.prettier-vscode\",\n        \"ms-python.python\"\n      ],\n      \"settings\": {\n        \"editor.formatOnSave\": true\n      }\n    }\n  }\n}\n```\n\n### Docker Compose Dev Container\n\n```json\n\u002F\u002F .devcontainer\u002Fdevcontainer.json\n{\n  \"name\": \"Full Stack Dev\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"app\",\n  \"workspaceFolder\": \"\u002Fworkspace\",\n  \"forwardPorts\": [3000, 5432, 6379],\n  \"postCreateCommand\": \"npm install && npx prisma migrate dev\"\n}\n```\n\n```yaml\n# .devcontainer\u002Fdocker-compose.yml\nservices:\n  app:\n    build:\n      context: ..\n      dockerfile: .devcontainer\u002FDockerfile\n    volumes:\n      - ..:\u002Fworkspace:cached\n    command: sleep infinity\n    depends_on: [db, redis]\n\n  db:\n    image: postgres:16\n    environment:\n      POSTGRES_DB: dev\n      POSTGRES_USER: dev\n      POSTGRES_PASSWORD: dev\n    volumes:\n      - pgdata:\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata\n    ports:\n      - \"5432:5432\"\n\n  redis:\n    image: redis:7-alpine\n    ports:\n      - \"6379:6379\"\n\nvolumes:\n  pgdata:\n```\n\n### Custom Dockerfile\n\n```dockerfile\n# .devcontainer\u002FDockerfile\nFROM mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu-22.04\n\n# System dependencies\nRUN apt-get update && apt-get install -y \\\n    build-essential \\\n    curl \\\n    git \\\n    jq \\\n    unzip \\\n    && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n\n# Install project-specific tools\nRUN curl -fsSL https:\u002F\u002Fget.opentofu.org\u002Finstall-opentofu.sh -o \u002Ftmp\u002Finstall-opentofu.sh \\\n    && sh \u002Ftmp\u002Finstall-opentofu.sh -s -- --install-method standalone \\\n    && rm \u002Ftmp\u002Finstall-opentofu.sh\nRUN curl -LO \"https:\u002F\u002Fdl.k8s.io\u002Frelease\u002F$(curl -sL https:\u002F\u002Fdl.k8s.io\u002Frelease\u002Fstable.txt)\u002Fbin\u002Flinux\u002Famd64\u002Fkubectl\" \\\n    && install kubectl \u002Fusr\u002Flocal\u002Fbin\u002F\n\n# Non-root user setup\nUSER vscode\nWORKDIR \u002Fworkspace\n```\n\n## Nix Flakes\n\n### Basic Flake\n\n```nix\n# flake.nix\n{\n  description = \"Project development environment\";\n\n  inputs = {\n    nixpkgs.url = \"github:NixOS\u002Fnixpkgs\u002Fnixos-unstable\";\n    flake-utils.url = \"github:numtide\u002Fflake-utils\";\n  };\n\n  outputs = { self, nixpkgs, flake-utils }:\n    flake-utils.lib.eachDefaultSystem (system:\n      let\n        pkgs = nixpkgs.legacyPackages.${system};\n      in {\n        devShells.default = pkgs.mkShell {\n          buildInputs = with pkgs; [\n            # Languages\n            nodejs_20\n            python312\n            go_1_22\n            rustc\n            cargo\n\n            # Tools\n            docker-compose\n            kubectl\n            kubernetes-helm\n            opentofu\n            awscli2\n            jq\n            yq-go\n\n            # Databases\n            postgresql_16\n            redis\n          ];\n\n          shellHook = ''\n            echo \"Dev environment loaded\"\n            export PROJECT_ROOT=$(pwd)\n            export PATH=\"$PROJECT_ROOT\u002Fnode_modules\u002F.bin:$PATH\"\n          '';\n        };\n      }\n    );\n}\n```\n\n```bash\n# Enter the dev shell\nnix develop\n\n# Or run a single command\nnix develop --command bash -c \"node --version && go version\"\n\n# Build and run\nnix build\nnix run\n```\n\n### Pin Dependencies\n\n```bash\n# Lock flake inputs for reproducibility\nnix flake lock\nnix flake update  # Update all inputs\n\n# Update a specific input\nnix flake lock --update-input nixpkgs\n```\n\n## Devbox (Nix Made Simple)\n\nDevbox wraps Nix with a friendlier interface:\n\n```bash\n# Install Devbox\ncurl -fsSL https:\u002F\u002Fget.jetify.com\u002Fdevbox -o \u002Ftmp\u002Finstall-devbox.sh && sh \u002Ftmp\u002Finstall-devbox.sh && rm \u002Ftmp\u002Finstall-devbox.sh\n\n# Initialize project\ndevbox init\n\n# Add packages\ndevbox add nodejs@20 python@3.12 postgresql@16\ndevbox add go@1.22 kubectl helm\n\n# Enter shell\ndevbox shell\n\n# Run commands without entering shell\ndevbox run node --version\n```\n\n### devbox.json Configuration\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002Fjetify-com\u002Fdevbox\u002Fmain\u002F.schema\u002Fdevbox.schema.json\",\n  \"packages\": [\n    \"nodejs@20\",\n    \"python@3.12\",\n    \"go@1.22\",\n    \"kubectl@1.29\",\n    \"kubernetes-helm@3.14\",\n    \"opentofu@1.8\",\n    \"awscli2@2.15\",\n    \"jq@1.7\",\n    \"postgresql@16\",\n    \"redis@7\"\n  ],\n  \"env\": {\n    \"PROJECT_ROOT\": \"$PWD\",\n    \"DATABASE_URL\": \"postgresql:\u002F\u002Flocalhost:5432\u002Fdev\"\n  },\n  \"shell\": {\n    \"init_hook\": [\n      \"echo 'Dev environment ready'\",\n      \"npm install --silent 2>\u002Fdev\u002Fnull || true\"\n    ],\n    \"scripts\": {\n      \"dev\": \"npm run dev\",\n      \"test\": \"npm test\",\n      \"db:start\": \"pg_ctl -D .devbox\u002Fvirtenv\u002Fpostgresql\u002Fdata start\",\n      \"db:stop\": \"pg_ctl -D .devbox\u002Fvirtenv\u002Fpostgresql\u002Fdata stop\",\n      \"db:migrate\": \"npx prisma migrate dev\"\n    }\n  }\n}\n```\n\n```bash\n# Run project scripts\ndevbox run dev\ndevbox run test\ndevbox run db:start\n\n# Generate direnv integration (auto-activate on cd)\ndevbox generate direnv\n\n# Generate Dockerfile from devbox config\ndevbox generate dockerfile\n```\n\n### Devbox + direnv (Auto-Activate)\n\n```bash\n# Install direnv\ndevbox add direnv\n\n# Generate .envrc\ndevbox generate direnv\n\n# Allow direnv\ndirenv allow\n```\n\n```bash\n# .envrc (auto-generated)\neval \"$(devbox generate direnv --print-envrc)\"\n```\n\nNow `cd`-ing into the project automatically loads the environment.\n\n## CI\u002FCD Integration\n\n### GitHub Actions with Devbox\n\n```yaml\n# .github\u002Fworkflows\u002Fci.yml\nname: CI\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: jetify-com\u002Fdevbox-install-action@v0.11.0\n        with:\n          enable-cache: true\n      - run: devbox run test\n      - run: devbox run lint\n```\n\n### GitHub Actions with Nix\n\n```yaml\nname: CI\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: cachix\u002Finstall-nix-action@v26\n        with:\n          nix_path: nixpkgs=channel:nixos-unstable\n      - uses: cachix\u002Fcachix-action@v14\n        with:\n          name: my-project\n          authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'\n      - run: nix develop --command bash -c \"npm ci && npm test\"\n```\n\n### GitHub Codespaces\n\n```json\n\u002F\u002F .devcontainer\u002Fdevcontainer.json — works in Codespaces\n{\n  \"name\": \"Codespaces Dev\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Funiversal:2\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": { \"version\": \"20\" }\n  },\n  \"postCreateCommand\": \"npm install\",\n  \"portsAttributes\": {\n    \"3000\": { \"label\": \"App\", \"onAutoForward\": \"openBrowser\" },\n    \"5432\": { \"label\": \"Postgres\", \"onAutoForward\": \"ignore\" }\n  }\n}\n```\n\n## Comparison\n\n| Feature | Dev Containers | Nix Flakes | Devbox |\n|---------|---------------|------------|--------|\n| Learning curve | Low | High | Low |\n| Reproducibility | Good (Docker) | Excellent | Excellent (Nix) |\n| Speed | Slow (build image) | Fast (cached) | Fast (cached) |\n| IDE support | VS Code, JetBrains | Any terminal | Any terminal |\n| CI integration | Docker-based | Nix actions | Devbox action |\n| Offline support | Limited | Full | Full |\n| macOS\u002FLinux\u002FWin | All | macOS\u002FLinux | macOS\u002FLinux |\n\n## Best Practices\n\n- Pin all tool versions explicitly — never use `latest`\n- Commit lock files (`flake.lock`, `devbox.lock`, etc.)\n- Use direnv for automatic environment activation\n- Cache Nix store in CI (Cachix or GitHub cache)\n- Document setup in README: `devbox shell` or `nix develop`\n- Keep dev environment close to production (same Node\u002FPython versions)\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Nix build slow first time | Use binary cache (Cachix), `nix develop` caches after first run |\n| Dev Container won't build | Check Docker disk space, rebuild with `--no-cache` |\n| Package not in Nixpkgs | Search at search.nixos.org, or use `fetchFromGitHub` overlay |\n| Devbox hash mismatch | Run `devbox update`, delete `.devbox\u002F` and re-init |\n| direnv not activating | Run `direnv allow`, check shell hook is installed |\n\n## Related Skills\n\n- docker-management (`docker-management`) — Container image optimization\n- github-actions (`github-actions`) — CI\u002FCD pipeline setup\n- linux-administration (`linux-administration`) — System-level tooling\n\n## Limitations\n\n- Guidance executes against real environments: confirm target, blast radius, and rollback plan before applying anything.\n- Never deploy to production without explicit approval. Docs-only import: upstream scripts and templates not bundled.\n\n### Example\n\n```bash\ngit status && git diff --stat\nkubectl diff -f manifest.yaml\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n","# Dev Containers & Nix Environments\n\nReproducible, portable development environments that eliminate environment drift.\n\n## When to Use This Skill\n\nUse this skill when:\n- Onboarding new developers (zero-to-productive in minutes)\n- Standardizing toolchains across a team\n- Eliminating \"works on my machine\" problems\n- Setting up CI environments that match local dev\n- Creating ephemeral, disposable dev environments\n\n## Dev Containers\n\n### Basic Configuration\n\n```json\n\u002F\u002F .devcontainer\u002Fdevcontainer.json\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu-22.04\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": { \"version\": \"20\" },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fpython:1\": { \"version\": \"3.12\" },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker:2\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fkubectl-helm-minikube:1\": {}\n  },\n  \"forwardPorts\": [3000, 5432],\n  \"postCreateCommand\": \"npm install\",\n  \"customizations\": {\n    \"vscode\": {\n      \"extensions\": [\n        \"dbaeumer.vscode-eslint\",\n        \"esbenp.prettier-vscode\",\n        \"ms-python.python\"\n      ],\n      \"settings\": {\n        \"editor.formatOnSave\": true\n      }\n    }\n  }\n}\n```\n\n### Docker Compose Dev Container\n\n```json\n\u002F\u002F .devcontainer\u002Fdevcontainer.json\n{\n  \"name\": \"Full Stack Dev\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"app\",\n  \"workspaceFolder\": \"\u002Fworkspace\",\n  \"forwardPorts\": [3000, 5432, 6379],\n  \"postCreateCommand\": \"npm install && npx prisma migrate dev\"\n}\n```\n\n```yaml\n# .devcontainer\u002Fdocker-compose.yml\nservices:\n  app:\n    build:\n      context: ..\n      dockerfile: .devcontainer\u002FDockerfile\n    volumes:\n      - ..:\u002Fworkspace:cached\n    command: sleep infinity\n    depends_on: [db, redis]\n\n  db:\n    image: postgres:16\n    environment:\n      POSTGRES_DB: dev\n      POSTGRES_USER: dev\n      POSTGRES_PASSWORD: dev\n    volumes:\n      - pgdata:\u002Fvar\u002Flib\u002Fpostgresql\u002Fdata\n    ports:\n      - \"5432:5432\"\n\n  redis:\n    image: redis:7-alpine\n    ports:\n      - \"6379:6379\"\n\nvolumes:\n  pgdata:\n```\n\n### Custom Dockerfile\n\n```dockerfile\n# .devcontainer\u002FDockerfile\nFROM mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu-22.04\n\n# System dependencies\nRUN apt-get update && apt-get install -y \\\n    build-essential \\\n    curl \\\n    git \\\n    jq \\\n    unzip \\\n    && rm -rf \u002Fvar\u002Flib\u002Fapt\u002Flists\u002F*\n\n# Install project-specific tools\nRUN curl -fsSL https:\u002F\u002Fget.opentofu.org\u002Finstall-opentofu.sh -o \u002Ftmp\u002Finstall-opentofu.sh \\\n    && sh \u002Ftmp\u002Finstall-opentofu.sh -s -- --install-method standalone \\\n    && rm \u002Ftmp\u002Finstall-opentofu.sh\nRUN curl -LO \"https:\u002F\u002Fdl.k8s.io\u002Frelease\u002F$(curl -sL https:\u002F\u002Fdl.k8s.io\u002Frelease\u002Fstable.txt)\u002Fbin\u002Flinux\u002Famd64\u002Fkubectl\" \\\n    && install kubectl \u002Fusr\u002Flocal\u002Fbin\u002F\n\n# Non-root user setup\nUSER vscode\nWORKDIR \u002Fworkspace\n```\n\n## Nix Flakes\n\n### Basic Flake\n\n```nix\n# flake.nix\n{\n  description = \"Project development environment\";\n\n  inputs = {\n    nixpkgs.url = \"github:NixOS\u002Fnixpkgs\u002Fnixos-unstable\";\n    flake-utils.url = \"github:numtide\u002Fflake-utils\";\n  };\n\n  outputs = { self, nixpkgs, flake-utils }:\n    flake-utils.lib.eachDefaultSystem (system:\n      let\n        pkgs = nixpkgs.legacyPackages.${system};\n      in {\n        devShells.default = pkgs.mkShell {\n          buildInputs = with pkgs; [\n            # Languages\n            nodejs_20\n            python312\n            go_1_22\n            rustc\n            cargo\n\n            # Tools\n            docker-compose\n            kubectl\n            kubernetes-helm\n            opentofu\n            awscli2\n            jq\n            yq-go\n\n            # Databases\n            postgresql_16\n            redis\n          ];\n\n          shellHook = ''\n            echo \"Dev environment loaded\"\n            export PROJECT_ROOT=$(pwd)\n            export PATH=\"$PROJECT_ROOT\u002Fnode_modules\u002F.bin:$PATH\"\n          '';\n        };\n      }\n    );\n}\n```\n\n```bash\n# Enter the dev shell\nnix develop\n\n# Or run a single command\nnix develop --command bash -c \"node --version && go version\"\n\n# Build and run\nnix build\nnix run\n```\n\n### Pin Dependencies\n\n```bash\n# Lock flake inputs for reproducibility\nnix flake lock\nnix flake update  # Update all inputs\n\n# Update a specific input\nnix flake lock --update-input nixpkgs\n```\n\n## Devbox (Nix Made Simple)\n\nDevbox wraps Nix with a friendlier interface:\n\n```bash\n# Install Devbox\ncurl -fsSL https:\u002F\u002Fget.jetify.com\u002Fdevbox -o \u002Ftmp\u002Finstall-devbox.sh && sh \u002Ftmp\u002Finstall-devbox.sh && rm \u002Ftmp\u002Finstall-devbox.sh\n\n# Initialize project\ndevbox init\n\n# Add packages\ndevbox add nodejs@20 python@3.12 postgresql@16\ndevbox add go@1.22 kubectl helm\n\n# Enter shell\ndevbox shell\n\n# Run commands without entering shell\ndevbox run node --version\n```\n\n### devbox.json Configuration\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fraw.githubusercontent.com\u002Fjetify-com\u002Fdevbox\u002Fmain\u002F.schema\u002Fdevbox.schema.json\",\n  \"packages\": [\n    \"nodejs@20\",\n    \"python@3.12\",\n    \"go@1.22\",\n    \"kubectl@1.29\",\n    \"kubernetes-helm@3.14\",\n    \"opentofu@1.8\",\n    \"awscli2@2.15\",\n    \"jq@1.7\",\n    \"postgresql@16\",\n    \"redis@7\"\n  ],\n  \"env\": {\n    \"PROJECT_ROOT\": \"$PWD\",\n    \"DATABASE_URL\": \"postgresql:\u002F\u002Flocalhost:5432\u002Fdev\"\n  },\n  \"shell\": {\n    \"init_hook\": [\n      \"echo 'Dev environment ready'\",\n      \"npm install --silent 2>\u002Fdev\u002Fnull || true\"\n    ],\n    \"scripts\": {\n      \"dev\": \"npm run dev\",\n      \"test\": \"npm test\",\n      \"db:start\": \"pg_ctl -D .devbox\u002Fvirtenv\u002Fpostgresql\u002Fdata start\",\n      \"db:stop\": \"pg_ctl -D .devbox\u002Fvirtenv\u002Fpostgresql\u002Fdata stop\",\n      \"db:migrate\": \"npx prisma migrate dev\"\n    }\n  }\n}\n```\n\n```bash\n# Run project scripts\ndevbox run dev\ndevbox run test\ndevbox run db:start\n\n# Generate direnv integration (auto-activate on cd)\ndevbox generate direnv\n\n# Generate Dockerfile from devbox config\ndevbox generate dockerfile\n```\n\n### Devbox + direnv (Auto-Activate)\n\n```bash\n# Install direnv\ndevbox add direnv\n\n# Generate .envrc\ndevbox generate direnv\n\n# Allow direnv\ndirenv allow\n```\n\n```bash\n# .envrc (auto-generated)\neval \"$(devbox generate direnv --print-envrc)\"\n```\n\nNow `cd`-ing into the project automatically loads the environment.\n\n## CI\u002FCD Integration\n\n### GitHub Actions with Devbox\n\n```yaml\n# .github\u002Fworkflows\u002Fci.yml\nname: CI\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: jetify-com\u002Fdevbox-install-action@v0.11.0\n        with:\n          enable-cache: true\n      - run: devbox run test\n      - run: devbox run lint\n```\n\n### GitHub Actions with Nix\n\n```yaml\nname: CI\non: [push, pull_request]\n\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: cachix\u002Finstall-nix-action@v26\n        with:\n          nix_path: nixpkgs=channel:nixos-unstable\n      - uses: cachix\u002Fcachix-action@v14\n        with:\n          name: my-project\n          authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'\n      - run: nix develop --command bash -c \"npm ci && npm test\"\n```\n\n### GitHub Codespaces\n\n```json\n\u002F\u002F .devcontainer\u002Fdevcontainer.json — works in Codespaces\n{\n  \"name\": \"Codespaces Dev\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Funiversal:2\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": { \"version\": \"20\" }\n  },\n  \"postCreateCommand\": \"npm install\",\n  \"portsAttributes\": {\n    \"3000\": { \"label\": \"App\", \"onAutoForward\": \"openBrowser\" },\n    \"5432\": { \"label\": \"Postgres\", \"onAutoForward\": \"ignore\" }\n  }\n}\n```\n\n## Comparison\n\n| Feature | Dev Containers | Nix Flakes | Devbox |\n|---------|---------------|------------|--------|\n| Learning curve | Low | High | Low |\n| Reproducibility | Good (Docker) | Excellent | Excellent (Nix) |\n| Speed | Slow (build image) | Fast (cached) | Fast (cached) |\n| IDE support | VS Code, JetBrains | Any terminal | Any terminal |\n| CI integration | Docker-based | Nix actions | Devbox action |\n| Offline support | Limited | Full | Full |\n| macOS\u002FLinux\u002FWin | All | macOS\u002FLinux | macOS\u002FLinux |\n\n## Best Practices\n\n- Pin all tool versions explicitly — never use `latest`\n- Commit lock files (`flake.lock`, `devbox.lock`, etc.)\n- Use direnv for automatic environment activation\n- Cache Nix store in CI (Cachix or GitHub cache)\n- Document setup in README: `devbox shell` or `nix develop`\n- Keep dev environment close to production (same Node\u002FPython versions)\n\n## Troubleshooting\n\n| Issue | Solution |\n|-------|---------|\n| Nix build slow first time | Use binary cache (Cachix), `nix develop` caches after first run |\n| Dev Container won't build | Check Docker disk space, rebuild with `--no-cache` |\n| Package not in Nixpkgs | Search at search.nixos.org, or use `fetchFromGitHub` overlay |\n| Devbox hash mismatch | Run `devbox update`, delete `.devbox\u002F` and re-init |\n| direnv not activating | Run `direnv allow`, check shell hook is installed |\n\n## Related Skills\n\n- docker-management (`docker-management`) — Container image optimization\n- github-actions (`github-actions`) — CI\u002FCD pipeline setup\n- linux-administration (`linux-administration`) — System-level tooling\n\n## Limitations\n\n- Guidance executes against real environments: confirm target, blast radius, and rollback plan before applying anything.\n- Never deploy to production without explicit approval. Docs-only import: upstream scripts and templates not bundled.\n\n### Example\n\n```bash\ngit status && git diff --stat\nkubectl diff -f manifest.yaml\n```\n\n> Adapted from [BagelHole\u002FDevOps-Security-Agent-Skills](https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills) (MIT); frontmatter, When to Use\u002FLimitations, and safety boundaries added for upstream compliance. Docs-only import: helper scripts and templates not bundled.\n",{"name":5,"risk":25,"source":43,"license":14,"category":44,"metadata":45,"date_added":48,"description":7,"source_repo":49,"source_type":21,"compatibility":50,"license_source":51},"https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills","devops",{"author":46,"version":47},"devops-skills","1.0","2026-09-20","BagelHole\u002FDevOps-Security-Agent-Skills","Requires the relevant platform CLIs (kubectl, helm, terraform, git, CI runners) and authorized access to the target environment. Docs-only; helper scripts and templates not bundled.","https:\u002F\u002Fgithub.com\u002FBagelHole\u002FDevOps-Security-Agent-Skills\u002Fblob\u002Fmain\u002FLICENSE","f3312ba749561b6159f477dbfc9313c875d40a56",".agents\u002Fskills_archive\u002Fdevcontainers-nix","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612","2026-10-25 23:50:58",{"source":8,"skillName":5,"commands":58,"prompt":68,"zipAvailable":69},[59,62,65],{"tool":60,"command":61},"npx","npx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill devcontainers-nix",{"tool":63,"command":64},"bunx","bunx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill devcontainers-nix",{"tool":66,"command":67},"pnpm","pnpm dlx skills add duc-duy-1612\u002FOnline-Delivery-Systems-Web --skill devcontainers-nix","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fdevcontainers-nix\u002FSKILL.md",true,[],[72,90,114,139,156,176],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M6Q0FA5FZ410Z33Z3TFQ4DBA","zero-trust","Implement zero-trust network architecture. Configure identity-based access, micro-segmentation, and continuous verification. Use when implementing modern security architectures.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzero-trust\u002FSKILL.md",[],[79,80,81,82,83,84,74,85,31,30,86,29,21,28,87,25,88,24,23,89],"ZeRO","trust","zero trust","architecture","assessment","verification","segmentation","configure","active","scope","implementing",{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":38},"01M6Q0F1YZJW3KX5FBKEVZ8CV4","zcode-delegate","Delegate coding tasks to the Z.AI ZCode CLI only when the user explicitly requests it, while the orchestrator retains review and landing responsibility.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fzcode-delegate\u002FSKILL.md",[],[97,98,99,100,101,102,103,104,105,106,107,108,109,29,110,21,111,112,25,113],"delegate","zcode","zcode delegate","review","cli","orchestration","tasks","run","Bash","model","node","read","orchestrator","files","desktop app","app","agent-orchestration",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":38},"01M6Q0ETK41VGNMYEXW0T00AJN","youtube-transcript","Fetch YouTube transcripts through DeepAPI or local fallback tooling and save clean text output.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript\u002FSKILL.md",[],[121,122,123,124,125,126,127,128,129,130,131,132,133,21,28,134,135,136,137,138],"transcript","youtube transcript","youtube","safe","github","codex","research","license","https","text","fetch","tooling","clean","local","output","deepapi","youtube transcripts","blob",{"skillNo":140,"name":141,"nameZh":6,"description":142,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":143,"categories":144,"keywords":145,"publishedAt":38},"01M6Q0EPPH2PVMDW40017F8WX0","youtube-transcript-skills","Fetch YouTube video transcripts, search videos\u002Fchannels, browse channels, and extract playlists via the getyoutubetranscript.com API - free tier, no card required.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-transcript-skills\u002FSKILL.md",[],[121,122,123,146,124,147,125,126,128,148,149,150,151,131,152,21,28,153,154,155],"youtube transcript skills","gemini","search","api","Video","browse","api-integration","free","card","channels",{"skillNo":157,"name":158,"nameZh":6,"description":159,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":162,"publishedAt":38},"01M6Q0EAB96PX83W5PTE8A0R8D","youtube-notetaker","Turn YouTube talks into local study notes with slides, transcripts, editable annotations, and a markdown-backed viewer.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-notetaker\u002FSKILL.md",[],[123,163,164,101,124,165,166,167,168,128,150,169,170,171,172,28,173,134,174,175],"youtube notetaker","notetaker","workflow","official","notes","code","markdown","slides","annotations","README","study","dair-academy","viewer",{"skillNo":177,"name":178,"nameZh":6,"description":179,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":180,"categories":181,"keywords":182,"publishedAt":38},"01M6Q0E55F0GW5MX48V8HXS8B5","youtube-full","Fetch YouTube transcripts, search videos, browse channels, and extract playlists via TranscriptAPI — no yt-dlp, no Google API key, works from any cloud server.","https:\u002F\u002Fgithub.com\u002Fduc-duy-1612\u002FOnline-Delivery-Systems-Web\u002Fblob\u002Fmain\u002F.agents\u002Fskills_archive\u002Fyoutube-full\u002FSKILL.md",[],[183,123,184,185,124,147,148,186,187,149,150,151,131,188,152,21,28,153,189,137],"youtube full","full","google","server","dlp","credits","automatic"]