[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M737X5J7FGT827RVSQG4F9RY":3,"skill-same:01M737X5J7FGT827RVSQG4F9RY":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M737X5J7FGT827RVSQG4F9RY","skill-148",null,"Expert guidance for Development Containers (devcontainers) in VS Code. Create, configure, and manage devcontainer.json files, use Templates and Features, integrate with Docker\u002FDocker Compose, and troubleshoot common issues. Use when working with devcontainers, containerized development environments, or when user mentions devcontainer.json, dev containers, VS Code containers, or Docker development. Requires Docker (Docker Desktop on Mac\u002FWindows or Docker CE\u002FEE on Linux) and VS Code with Dev Containers extension.","legendtkl\u002Fagentic-skill-router","legendtkl","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2370761?v=4","01M71RR3WRQC40G964Q2GVDMND","01M737GJZQ9TF1VE3VM255EDAK",8,"MIT","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-148\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: skill-148\ndescription: \"Expert guidance for Development Containers (devcontainers) in VS Code. Create, configure, and manage devcontainer.json files, use Templates and Features, integrate with Docker\u002FDocker Compose, and troubleshoot common issues. Use when working with devcontainers, containerized development environments, or when user mentions devcontainer.json, dev containers, VS Code containers, or Docker development. Requires Docker (Docker Desktop on Mac\u002FWindows or Docker CE\u002FEE on Linux) and VS Code with Dev Containers extension.\"\n---\n\n# Development Containers Expert\n\nExpert guidance for working with Development Containers (devcontainers) - a standardized way to create fully-featured, containerized development environments.\n\n## When to Use This Skill\n\nActivate this skill when:\n- Creating or configuring devcontainer.json files\n- Setting up containerized development environments in VS Code\n- Working with dev container Templates or Features\n- Troubleshooting devcontainer issues\n- Integrating development containers with Docker or Docker Compose\n- User mentions: devcontainers, dev containers, devcontainer.json, VS Code containers, containerized development, or development environment setup\n\n## What Are Development Containers?\n\nA development container (dev container) is a running Docker container with a well-defined tool\u002Fruntime stack and its prerequisites. The configuration is defined in a `devcontainer.json` file that tells VS Code (or other supporting tools) how to access or create a development container.\n\n**Key Benefits:**\n- **Consistency**: Same environment for all developers\n- **Repeatability**: Quickly recreate environments\n- **Isolation**: Separate tools\u002Flibraries per project\n- **Onboarding**: New developers get productive faster\n- **CI\u002FCD Integration**: Same environment for local dev and testing\n\n**The Specification:**\nDev containers follow the open [Development Containers Specification](https:\u002F\u002Fcontainers.dev\u002F) maintained by the devcontainers community.\n\n## Prerequisites\n\n### Required Software\n\n1. **Docker**\n   - **Windows**: Docker Desktop 2.0+ (Windows 10 Pro\u002FEnterprise or Windows 10 Home 2004+ with WSL 2)\n   - **macOS**: Docker Desktop 2.0+\n   - **Linux**: Docker CE\u002FEE 18.06+ and Docker Compose 1.21+\n\n2. **VS Code**\n   - Visual Studio Code or VS Code Insiders\n   - Dev Containers extension (`ms-vscode-remote.remote-containers`)\n\n3. **System Resources**\n   - Minimum: 1 GB RAM\n   - Recommended: 2 GB RAM and 2-core CPU\n\n### Installation Steps\n\n**Windows\u002FmacOS:**\n1. Install Docker Desktop from https:\u002F\u002Fwww.docker.com\u002Fproducts\u002Fdocker-desktop\n2. For Windows WSL 2: Enable \"Use the WSL 2 based engine\" in Docker Desktop settings\n3. Install VS Code from https:\u002F\u002Fcode.visualstudio.com\u002F\n4. Install the Dev Containers extension from the VS Code Extensions marketplace\n\n**Linux:**\n1. Install Docker CE\u002FEE following official instructions for your distribution\n2. Add your user to the docker group: `sudo usermod -aG docker $USER`\n3. Sign out and back in for changes to take effect\n4. Install VS Code\n5. Install the Dev Containers extension\n\n## Creating a devcontainer.json File\n\nThe `devcontainer.json` file is the core configuration for your dev container. It can be placed in one of two locations:\n- `.devcontainer\u002Fdevcontainer.json` (recommended for complex setups)\n- `.devcontainer.json` (root of project)\n\n### Quick Start: Using a Template\n\nThe easiest way to create a dev container is using a pre-built Template:\n\n1. **Open Command Palette** in VS Code: `F1` or `Cmd\u002FCtrl+Shift+P`\n2. **Run**: `Dev Containers: Add Dev Container Configuration Files...`\n3. **Select a Template** based on your tech stack (e.g., Node.js, Python, Go, Java)\n4. **Customize with Features** (optional) - add tools like Git, GitHub CLI, Docker-in-Docker\n5. **Reopen in Container**: Run `Dev Containers: Reopen in Container`\n\nVS Code will build the container and reopen your workspace inside it.\n\n### Basic devcontainer.json Structure\n\n**Minimal Example (Using Pre-built Image):**\n\n```json\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Ftypescript-node:20\",\n  \"forwardPorts\": [3000],\n  \"customizations\": {\n    \"vscode\": {\n      \"extensions\": [\n        \"dbaeumer.vscode-eslint\",\n        \"esbenp.prettier-vscode\"\n      ]\n    }\n  }\n}\n```\n\n**Using a Dockerfile:**\n\n```json\n{\n  \"name\": \"My Custom Container\",\n  \"build\": {\n    \"dockerfile\": \"Dockerfile\",\n    \"context\": \"..\",\n    \"args\": {\n      \"VARIANT\": \"18\"\n    }\n  },\n  \"forwardPorts\": [3000, 5000],\n  \"postCreateCommand\": \"npm install\",\n  \"customizations\": {\n    \"vscode\": {\n      \"settings\": {\n        \"terminal.integrated.defaultProfile.linux\": \"bash\"\n      },\n      \"extensions\": [\"dbaeumer.vscode-eslint\"]\n    }\n  }\n}\n```\n\n**Using Docker Compose:**\n\n```json\n{\n  \"name\": \"My Multi-Container App\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"app\",\n  \"workspaceFolder\": \"\u002Fworkspace\",\n  \"forwardPorts\": [3000],\n  \"postCreateCommand\": \"npm install\",\n  \"customizations\": {\n    \"vscode\": {\n      \"extensions\": [\"dbaeumer.vscode-eslint\"]\n    }\n  }\n}\n```\n\n## Ready-to-Use Templates\n\nFor quick starts, this skill includes practical, copy-paste devcontainer.json templates in `assets\u002Ftemplates\u002F`:\n\n- **[basic-node.json](assets\u002Ftemplates\u002Fbasic-node.json)** - Simple Node.js\u002FTypeScript starter\n- **[python-with-features.json](assets\u002Ftemplates\u002Fpython-with-features.json)** - Python with Features demonstration  \n- **[docker-compose.json](assets\u002Ftemplates\u002Fdocker-compose.json)** - Multi-service full-stack app\n- **[advanced-lifecycle.json](assets\u002Ftemplates\u002Fadvanced-lifecycle.json)** - Complex lifecycle patterns\n- **[monorepo-polyglot.json](assets\u002Ftemplates\u002Fmonorepo-polyglot.json)** - Multi-language monorepo\n- **[security-hardened.json](assets\u002Ftemplates\u002Fsecurity-hardened.json)** - Security best practices\n- **[dockerfile-multistage.json](assets\u002Ftemplates\u002Fdockerfile-multistage.json)** - Custom Dockerfile with multi-stage builds\n\nEach template is fully commented and demonstrates different patterns. **For detailed template descriptions, selection guidance, and usage instructions**, see [references\u002FTEMPLATES_GUIDE.md](references\u002FTEMPLATES_GUIDE.md).\n\n### Key Configuration Properties\n\n**Container Definition:**\n- `name`: Display name for the container\n- `image`: Pre-built Docker image to use\n- `build`: Build configuration (dockerfile, context, args, target, cacheFrom, options)\n- `dockerComposeFile`: Path to docker-compose.yml file\n- `service`: Docker Compose service name to connect to\n\n**Environment Setup:**\n- `workspaceFolder`: Path where workspace is mounted (default: `\u002Fworkspaces\u002F\u003Cproject-name>`)\n- `workspaceMount`: Custom workspace mount configuration\n- `mounts`: Additional volume\u002Fbind mounts\n- `containerEnv`: Environment variables for the container\n- `containerUser`: User for starting the container (default: image default)\n- `remoteUser`: User to run as inside container (default: root or image default)\n- `remoteEnv`: Environment variables for remote processes and IDE server\n- `updateRemoteUserUID`: Update container user's UID\u002FGID to match local user (Linux only)\n\n**Port Forwarding:**\n- `forwardPorts`: Array of ports to forward (e.g., `[3000, 8080]`)\n- `appPort`: Application ports exposed by container (deprecated in favor of `forwardPorts`)\n- `portsAttributes`: Configure port labels, protocols, auto-forward behavior, and elevation\n- `otherPortsAttributes`: Default properties for ports not explicitly configured\n\n**Lifecycle Scripts:**\n- `initializeCommand`: Runs locally before anything else\n- `onCreateCommand`: Runs once when container is created\n- `updateContentCommand`: Runs when container config changes\n- `postCreateCommand`: Runs after container creation (often used for `npm install`, `pip install`)\n- `postStartCommand`: Runs every time the container starts\n- `postAttachCommand`: Runs every time you attach to the container\n- `waitFor`: Which command to wait for before starting UI (default: `updateContentCommand`)\n\n**Advanced Container Options:**\n- `runArgs`: Additional Docker run arguments\n- `init`: Pass `--init` flag for proper signal handling\n- `privileged`: Run container in privileged mode\n- `capAdd`: Docker capabilities to add\n- `securityOpt`: Docker security options\n- `overrideCommand`: Override the default command from the image\n- `shutdownAction`: Action when disconnecting (`none` or `stopContainer`\u002F`stopCompose`)\n\n**Features and Environment:**\n- `features`: Features to add to the container\n- `overrideFeatureInstallOrder`: Control the order Features are installed\n- `userEnvProbe`: How to load user environment (`none`, `loginShell`, `loginInteractiveShell`, `interactiveShell`)\n\n**Host Requirements:**\n- `hostRequirements`: Minimum host hardware (cpus, memory, storage, gpu)\n\n**Security and Secrets:**\n- `secrets`: Recommended secrets with descriptions and documentation URLs\n\n**VS Code Customization:**\n- `customizations.vscode.extensions`: Extensions to install in the container\n- `customizations.vscode.settings`: VS Code settings for the container\n- `customizations`: Tool-specific customizations for other editors\u002Ftools\n\n## Working with Dev Container Features\n\nFeatures are self-contained, shareable units of installation code that add tools, runtimes, or libraries to your container.\n\n### Adding Features\n\n**Method 1: During Setup**\nWhen running `Dev Containers: Add Dev Container Configuration Files...`, you'll be prompted to select Features.\n\n**Method 2: Add to Existing Config**\n1. Open Command Palette: `F1`\n2. Run: `Dev Containers: Configure Container Features`\n3. Select Features to add\n\n**Method 3: Edit devcontainer.json Directly**\n\n```json\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {\n      \"version\": \"20\"\n    },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgit:1\": {\n      \"version\": \"latest\"\n    },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgithub-cli:1\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker:2\": {\n      \"version\": \"latest\",\n      \"moby\": true\n    }\n  }\n}\n```\n\n### Popular Features\n\nBrowse all at https:\u002F\u002Fcontainers.dev\u002Ffeatures:\n- **node, python, go, rust, java, dotnet** - Language runtimes\n- **git, github-cli, azure-cli, aws-cli** - CLI tools  \n- **docker-in-docker, kubectl-helm-minikube** - Container\u002FK8s tools\n- **common-utils** - Essential utilities (zsh, oh-my-zsh, etc.)\n\n### Pinning Feature Versions\n\nFeatures follow semantic versioning. You can pin to specific versions:\n\n```json\n\"features\": {\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {},           \u002F\u002F Latest v1.x.x\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fpython:1.0\": {},       \u002F\u002F Latest v1.0.x\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgo:1.0.0\": {}          \u002F\u002F Exact version 1.0.0\n}\n```\n\n### Creating Custom Features\n\nYou can create your own Features using the [feature-starter template](https:\u002F\u002Fgithub.com\u002Fdevcontainers\u002Ffeature-starter). Each Feature is a folder with:\n- `devcontainer-feature.json` - Metadata and options\n- `install.sh` - Installation script\n\n### Controlling Feature Installation Order\n\nBy default, Features are installed in an implementation-defined order. To control this:\n\n```json\n{\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fcommon-utils:1\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker:2\": {}\n  },\n  \"overrideFeatureInstallOrder\": [\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fcommon-utils\",\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode\",\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker\"\n  ]\n}\n```\n\n## Complete Property Reference\n\nFor comprehensive documentation of all devcontainer.json properties with detailed examples, see **[references\u002FJSON_SCHEMA_REFERENCE.md](references\u002FJSON_SCHEMA_REFERENCE.md)**.\n\nThis reference covers:\n- All general, container source, and lifecycle properties\n- Advanced port configuration and attributes\n- Environment variables, user configuration, and variable substitution\n- Host requirements (CPU, memory, storage, GPU)\n- Security options, secrets management, and container runtime settings\n- Build configuration, Docker Compose options, and tool customizations\n\n## Common Workflows\n\n**Open Local Project in Container:**\n1. Open project in VS Code\n2. Run: `Dev Containers: Reopen in Container` (F1)\n3. Select Template if no devcontainer.json exists\n4. VS Code builds and reopens in container\n\n**Clone Repository in Container Volume** (better performance on Windows\u002FmacOS):\n1. Run: `Dev Containers: Clone Repository in Container Volume...`\n2. Enter Git URL or select from GitHub\n3. Choose Template if needed\n\n**Open GitHub PR:**\n1. Run: `Dev Containers: Clone Repository in Container Volume...`\n2. Paste GitHub PR URL\n3. VS Code opens PR with GitHub Pull Requests extension\n\n**Rebuild Container** (after config changes):\n- `Dev Containers: Rebuild Container`\n- OR `Dev Containers: Rebuild Container Without Cache` (full rebuild)\n\n**Attach to Running Container:**\n1. Run: `Dev Containers: Attach to Running Container...`\n2. Select container from list\n\n## Advanced Configuration\n\n### Monorepos: Multiple Devcontainers\n\n**Important Limitation:** Multi-root workspaces (`.code-workspace` files) open **all folders in the same container**. To use different containers per package, open each folder separately.\n\n**Pattern 1: Separate Package Containers** (different tech stacks)\n\n```\nmonorepo\u002F\n├── apps\u002F\n│   ├── frontend\u002F.devcontainer\u002Fdevcontainer.json\n│   └── backend\u002F.devcontainer\u002Fdevcontainer.json\n```\n\n**Frontend (.devcontainer\u002Fdevcontainer.json):**\n```json\n{\n  \"name\": \"Frontend\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Ftypescript-node:20\",\n  \"workspaceFolder\": \"\u002Fworkspaces\u002Fmonorepo\u002Fapps\u002Ffrontend\",\n  \"workspaceMount\": \"source=${localWorkspaceFolder}\u002F..\u002F..,target=\u002Fworkspaces\u002Fmonorepo,type=bind\"\n}\n```\n\n**Workflow:** \n- Single package: Right-click `frontend\u002F` → \"Open Folder in Container\"\n- Multiple packages: Open separate VS Code windows, one per package\n\n**Pattern 2: Unified Polyglot Container** (all tools in one)\n\n```json\n{\n  \"name\": \"Monorepo All\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {\"version\": \"20\"},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fpython:1\": {\"version\": \"3.11\"},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgo:1\": {}\n  }\n}\n```\n\n**Pattern 3: Docker Compose Multi-Container** (services in separate containers)\n\nUse Docker Compose when packages need to run simultaneously (frontend + backend + db):\n\n```yaml\nservices:\n  frontend:\n    build: .\u002Fapps\u002Ffrontend\n    volumes: [\".:\u002Fworkspace:cached\"]\n  backend:\n    build: .\u002Fapps\u002Fbackend\n    volumes: [\".:\u002Fworkspace:cached\"]\n  db:\n    image: postgres:14\n```\n\n```json\n{\n  \"name\": \"Monorepo\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"frontend\",\n  \"workspaceFolder\": \"\u002Fworkspace\"\n}\n```\n\n**Choose \"frontend\" or \"backend\" as primary `service`**. Access other containers via `docker exec` or attach in separate windows.\n\n## Advanced Topics\n\nFor in-depth coverage of advanced scenarios, see the [references\u002F](references\u002F) directory:\n\n- **[Templates Guide](references\u002FTEMPLATES_GUIDE.md)** - Detailed template descriptions and selection guidance\n- **[JSON Schema Complete Reference](references\u002FJSON_SCHEMA_REFERENCE.md)** - Comprehensive documentation of all devcontainer.json properties\n- **[Pre-building Images](references\u002FPREBUILDING.md)** - Image caching, CI\u002FCD workflows, supply-chain security\n- **[Kubernetes Integration](references\u002FKUBERNETES.md)** - Attach to K8s pods, cluster development\n- **[Networking Fundamentals](references\u002FNETWORKING.md)** - Docker network modes, port forwarding, DNS, proxies\n- **[Advanced Networking](references\u002FNETWORKING_ADVANCED.md)** - VPN, network security, service mesh, load balancing\n- **[Volume Performance](references\u002FVOLUME_PERFORMANCE.md)** - Optimize disk performance on Windows\u002FmacOS\n- **[Container-in-Container](references\u002FCONTAINER_IN_CONTAINER.md)** - Docker-in-Docker for CI\u002FCD testing\n- **[Security Hardening](references\u002FSECURITY.md)** - Non-root users, secrets management, capabilities\n- **[Dotfiles & Personalization](references\u002FDOTFILES.md)** - Shell customization, tool configuration\n- **[Recovery & Debugging](references\u002FRECOVERY_DEBUGGING.md)** - Fix build failures, inspect containers\n\n## Advanced Configuration (Quick Reference)\n\n### Using Docker Compose\n\n**docker-compose.yml:**\n```yaml\nservices:\n  app:\n    build: .\n    volumes:\n      - .:\u002Fworkspace:cached\n    command: sleep infinity\n  db:\n    image: postgres:14\n    environment:\n      POSTGRES_PASSWORD: example\n```\n\n**devcontainer.json:**\n```json\n{\n  \"name\": \"App with Database\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"app\",\n  \"workspaceFolder\": \"\u002Fworkspace\",\n  \"postCreateCommand\": \"npm install\"\n}\n```\n\n### Non-Root User (See [SECURITY.md](references\u002FSECURITY.md))\n\n```json\n{\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Ftypescript-node:20\",\n  \"remoteUser\": \"node\"\n}\n```\n\n### Custom Mounts and Environment (See [SECURITY.md](references\u002FSECURITY.md))\n\n```json\n{\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fpython:3.11\",\n  \"mounts\": [\n    \"source=${localEnv:HOME}\u002F.ssh,target=\u002Fhome\u002Fnode\u002F.ssh,readonly,type=bind\"\n  ],\n  \"containerEnv\": {\n    \"DATABASE_URL\": \"postgresql:\u002F\u002Flocalhost\u002Fmydb\"\n  }\n}\n```\n\n## Troubleshooting (Quick Reference)\n\nFor comprehensive debugging guides, see [references\u002FRECOVERY_DEBUGGING.md](references\u002FRECOVERY_DEBUGGING.md).\n\n**Common Issues:**\n\n- **Docker Not Running**: Check `docker ps` works. On Linux: `sudo systemctl status docker`\n- **Port Already in Use**: Find process with `lsof -i :\u003Cport>` (macOS\u002FLinux) or `netstat -ano | findstr :\u003Cport>` (Windows)\n- **Slow Performance**: See [VOLUME_PERFORMANCE.md](references\u002FVOLUME_PERFORMANCE.md) for optimization strategies  \n- **Build Failures**: Use `Dev Containers: Reopen in Recovery Container` to debug. See [RECOVERY_DEBUGGING.md](references\u002FRECOVERY_DEBUGGING.md)\n- **Permission Errors**: Set `remoteUser` or see [SECURITY.md](references\u002FSECURITY.md) for non-root configuration\n\n## Best Practices\n\n1. **Version Control** - Commit `.devcontainer\u002F` so all developers use the same environment\n2. **Use Official Images** - Start with `mcr.microsoft.com\u002Fdevcontainers\u002F` for reliability\n3. **Pin Versions** - Lock Feature and base image versions for reproducibility\n4. **Security** - Run as non-root, avoid committing secrets. See [SECURITY.md](references\u002FSECURITY.md)\n5. **Performance** - Use volume mounts on Windows\u002FmacOS. See [VOLUME_PERFORMANCE.md](references\u002FVOLUME_PERFORMANCE.md)\n6. **Test Regularly** - Ensure new team members can build containers from scratch\n7. **Document** - Add comments explaining custom configurations\n\n## Pre-building and CI\u002FCD\n\nPre-building images improves startup time and enables CI\u002FCD integration. See [references\u002FPREBUILDING.md](references\u002FPREBUILDING.md) for comprehensive guides.\n\n**Quick Example (GitHub Actions):**\n```yaml\nname: CI\non: [push]\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v3\n      - uses: devcontainers\u002Fci@v0.3\n        with:\n          imageName: ghcr.io\u002F${{ github.repository }}-devcontainer\n          cacheFrom: ghcr.io\u002F${{ github.repository }}-devcontainer\n          push: always\n          runCmd: npm test\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Resources\n\n- **Specification**: https:\u002F\u002Fcontainers.dev\u002F\n- **VS Code Docs**: https:\u002F\u002Fcode.visualstudio.com\u002Fdocs\u002Fdevcontainers\u002Fcontainers\n- **Templates**: https:\u002F\u002Fcontainers.dev\u002Ftemplates\n- **Features**: https:\u002F\u002Fcontainers.dev\u002Ffeatures\n- **GitHub Org**: https:\u002F\u002Fgithub.com\u002Fdevcontainers\n- **CLI Reference**: https:\u002F\u002Fgithub.com\u002Fdevcontainers\u002Fcli\n- **Docker Images**: https:\u002F\u002Fgithub.com\u002Fdevcontainers\u002Fimages\n\n## Quick Reference\n\n**VS Code Commands** (open with `F1` or `Cmd\u002FCtrl+Shift+P`):\n- `Dev Containers: Reopen in Container`\n- `Dev Containers: Rebuild Container`\n- `Dev Containers: Add Dev Container Configuration Files...`\n- `Dev Containers: Configure Container Features`\n- `Dev Containers: Clone Repository in Container Volume...`\n- `Dev Containers: Attach to Running Container...`\n- `Dev Containers: Show Container Log`\n\n**Key Configuration Locations**:\n- `.devcontainer\u002Fdevcontainer.json` (recommended)\n- `.devcontainer.json` (alternative)\n- Dockerfile: `.devcontainer\u002FDockerfile`\n- Docker Compose: `.devcontainer\u002Fdocker-compose.yml`","# Development Containers Expert\n\nExpert guidance for working with Development Containers (devcontainers) - a standardized way to create fully-featured, containerized development environments.\n\n## When to Use This Skill\n\nActivate this skill when:\n- Creating or configuring devcontainer.json files\n- Setting up containerized development environments in VS Code\n- Working with dev container Templates or Features\n- Troubleshooting devcontainer issues\n- Integrating development containers with Docker or Docker Compose\n- User mentions: devcontainers, dev containers, devcontainer.json, VS Code containers, containerized development, or development environment setup\n\n## What Are Development Containers?\n\nA development container (dev container) is a running Docker container with a well-defined tool\u002Fruntime stack and its prerequisites. The configuration is defined in a `devcontainer.json` file that tells VS Code (or other supporting tools) how to access or create a development container.\n\n**Key Benefits:**\n- **Consistency**: Same environment for all developers\n- **Repeatability**: Quickly recreate environments\n- **Isolation**: Separate tools\u002Flibraries per project\n- **Onboarding**: New developers get productive faster\n- **CI\u002FCD Integration**: Same environment for local dev and testing\n\n**The Specification:**\nDev containers follow the open [Development Containers Specification](https:\u002F\u002Fcontainers.dev\u002F) maintained by the devcontainers community.\n\n## Prerequisites\n\n### Required Software\n\n1. **Docker**\n   - **Windows**: Docker Desktop 2.0+ (Windows 10 Pro\u002FEnterprise or Windows 10 Home 2004+ with WSL 2)\n   - **macOS**: Docker Desktop 2.0+\n   - **Linux**: Docker CE\u002FEE 18.06+ and Docker Compose 1.21+\n\n2. **VS Code**\n   - Visual Studio Code or VS Code Insiders\n   - Dev Containers extension (`ms-vscode-remote.remote-containers`)\n\n3. **System Resources**\n   - Minimum: 1 GB RAM\n   - Recommended: 2 GB RAM and 2-core CPU\n\n### Installation Steps\n\n**Windows\u002FmacOS:**\n1. Install Docker Desktop from https:\u002F\u002Fwww.docker.com\u002Fproducts\u002Fdocker-desktop\n2. For Windows WSL 2: Enable \"Use the WSL 2 based engine\" in Docker Desktop settings\n3. Install VS Code from https:\u002F\u002Fcode.visualstudio.com\u002F\n4. Install the Dev Containers extension from the VS Code Extensions marketplace\n\n**Linux:**\n1. Install Docker CE\u002FEE following official instructions for your distribution\n2. Add your user to the docker group: `sudo usermod -aG docker $USER`\n3. Sign out and back in for changes to take effect\n4. Install VS Code\n5. Install the Dev Containers extension\n\n## Creating a devcontainer.json File\n\nThe `devcontainer.json` file is the core configuration for your dev container. It can be placed in one of two locations:\n- `.devcontainer\u002Fdevcontainer.json` (recommended for complex setups)\n- `.devcontainer.json` (root of project)\n\n### Quick Start: Using a Template\n\nThe easiest way to create a dev container is using a pre-built Template:\n\n1. **Open Command Palette** in VS Code: `F1` or `Cmd\u002FCtrl+Shift+P`\n2. **Run**: `Dev Containers: Add Dev Container Configuration Files...`\n3. **Select a Template** based on your tech stack (e.g., Node.js, Python, Go, Java)\n4. **Customize with Features** (optional) - add tools like Git, GitHub CLI, Docker-in-Docker\n5. **Reopen in Container**: Run `Dev Containers: Reopen in Container`\n\nVS Code will build the container and reopen your workspace inside it.\n\n### Basic devcontainer.json Structure\n\n**Minimal Example (Using Pre-built Image):**\n\n```json\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Ftypescript-node:20\",\n  \"forwardPorts\": [3000],\n  \"customizations\": {\n    \"vscode\": {\n      \"extensions\": [\n        \"dbaeumer.vscode-eslint\",\n        \"esbenp.prettier-vscode\"\n      ]\n    }\n  }\n}\n```\n\n**Using a Dockerfile:**\n\n```json\n{\n  \"name\": \"My Custom Container\",\n  \"build\": {\n    \"dockerfile\": \"Dockerfile\",\n    \"context\": \"..\",\n    \"args\": {\n      \"VARIANT\": \"18\"\n    }\n  },\n  \"forwardPorts\": [3000, 5000],\n  \"postCreateCommand\": \"npm install\",\n  \"customizations\": {\n    \"vscode\": {\n      \"settings\": {\n        \"terminal.integrated.defaultProfile.linux\": \"bash\"\n      },\n      \"extensions\": [\"dbaeumer.vscode-eslint\"]\n    }\n  }\n}\n```\n\n**Using Docker Compose:**\n\n```json\n{\n  \"name\": \"My Multi-Container App\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"app\",\n  \"workspaceFolder\": \"\u002Fworkspace\",\n  \"forwardPorts\": [3000],\n  \"postCreateCommand\": \"npm install\",\n  \"customizations\": {\n    \"vscode\": {\n      \"extensions\": [\"dbaeumer.vscode-eslint\"]\n    }\n  }\n}\n```\n\n## Ready-to-Use Templates\n\nFor quick starts, this skill includes practical, copy-paste devcontainer.json templates in `assets\u002Ftemplates\u002F`:\n\n- **[basic-node.json](assets\u002Ftemplates\u002Fbasic-node.json)** - Simple Node.js\u002FTypeScript starter\n- **[python-with-features.json](assets\u002Ftemplates\u002Fpython-with-features.json)** - Python with Features demonstration  \n- **[docker-compose.json](assets\u002Ftemplates\u002Fdocker-compose.json)** - Multi-service full-stack app\n- **[advanced-lifecycle.json](assets\u002Ftemplates\u002Fadvanced-lifecycle.json)** - Complex lifecycle patterns\n- **[monorepo-polyglot.json](assets\u002Ftemplates\u002Fmonorepo-polyglot.json)** - Multi-language monorepo\n- **[security-hardened.json](assets\u002Ftemplates\u002Fsecurity-hardened.json)** - Security best practices\n- **[dockerfile-multistage.json](assets\u002Ftemplates\u002Fdockerfile-multistage.json)** - Custom Dockerfile with multi-stage builds\n\nEach template is fully commented and demonstrates different patterns. **For detailed template descriptions, selection guidance, and usage instructions**, see [references\u002FTEMPLATES_GUIDE.md](references\u002FTEMPLATES_GUIDE.md).\n\n### Key Configuration Properties\n\n**Container Definition:**\n- `name`: Display name for the container\n- `image`: Pre-built Docker image to use\n- `build`: Build configuration (dockerfile, context, args, target, cacheFrom, options)\n- `dockerComposeFile`: Path to docker-compose.yml file\n- `service`: Docker Compose service name to connect to\n\n**Environment Setup:**\n- `workspaceFolder`: Path where workspace is mounted (default: `\u002Fworkspaces\u002F\u003Cproject-name>`)\n- `workspaceMount`: Custom workspace mount configuration\n- `mounts`: Additional volume\u002Fbind mounts\n- `containerEnv`: Environment variables for the container\n- `containerUser`: User for starting the container (default: image default)\n- `remoteUser`: User to run as inside container (default: root or image default)\n- `remoteEnv`: Environment variables for remote processes and IDE server\n- `updateRemoteUserUID`: Update container user's UID\u002FGID to match local user (Linux only)\n\n**Port Forwarding:**\n- `forwardPorts`: Array of ports to forward (e.g., `[3000, 8080]`)\n- `appPort`: Application ports exposed by container (deprecated in favor of `forwardPorts`)\n- `portsAttributes`: Configure port labels, protocols, auto-forward behavior, and elevation\n- `otherPortsAttributes`: Default properties for ports not explicitly configured\n\n**Lifecycle Scripts:**\n- `initializeCommand`: Runs locally before anything else\n- `onCreateCommand`: Runs once when container is created\n- `updateContentCommand`: Runs when container config changes\n- `postCreateCommand`: Runs after container creation (often used for `npm install`, `pip install`)\n- `postStartCommand`: Runs every time the container starts\n- `postAttachCommand`: Runs every time you attach to the container\n- `waitFor`: Which command to wait for before starting UI (default: `updateContentCommand`)\n\n**Advanced Container Options:**\n- `runArgs`: Additional Docker run arguments\n- `init`: Pass `--init` flag for proper signal handling\n- `privileged`: Run container in privileged mode\n- `capAdd`: Docker capabilities to add\n- `securityOpt`: Docker security options\n- `overrideCommand`: Override the default command from the image\n- `shutdownAction`: Action when disconnecting (`none` or `stopContainer`\u002F`stopCompose`)\n\n**Features and Environment:**\n- `features`: Features to add to the container\n- `overrideFeatureInstallOrder`: Control the order Features are installed\n- `userEnvProbe`: How to load user environment (`none`, `loginShell`, `loginInteractiveShell`, `interactiveShell`)\n\n**Host Requirements:**\n- `hostRequirements`: Minimum host hardware (cpus, memory, storage, gpu)\n\n**Security and Secrets:**\n- `secrets`: Recommended secrets with descriptions and documentation URLs\n\n**VS Code Customization:**\n- `customizations.vscode.extensions`: Extensions to install in the container\n- `customizations.vscode.settings`: VS Code settings for the container\n- `customizations`: Tool-specific customizations for other editors\u002Ftools\n\n## Working with Dev Container Features\n\nFeatures are self-contained, shareable units of installation code that add tools, runtimes, or libraries to your container.\n\n### Adding Features\n\n**Method 1: During Setup**\nWhen running `Dev Containers: Add Dev Container Configuration Files...`, you'll be prompted to select Features.\n\n**Method 2: Add to Existing Config**\n1. Open Command Palette: `F1`\n2. Run: `Dev Containers: Configure Container Features`\n3. Select Features to add\n\n**Method 3: Edit devcontainer.json Directly**\n\n```json\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {\n      \"version\": \"20\"\n    },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgit:1\": {\n      \"version\": \"latest\"\n    },\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgithub-cli:1\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker:2\": {\n      \"version\": \"latest\",\n      \"moby\": true\n    }\n  }\n}\n```\n\n### Popular Features\n\nBrowse all at https:\u002F\u002Fcontainers.dev\u002Ffeatures:\n- **node, python, go, rust, java, dotnet** - Language runtimes\n- **git, github-cli, azure-cli, aws-cli** - CLI tools  \n- **docker-in-docker, kubectl-helm-minikube** - Container\u002FK8s tools\n- **common-utils** - Essential utilities (zsh, oh-my-zsh, etc.)\n\n### Pinning Feature Versions\n\nFeatures follow semantic versioning. You can pin to specific versions:\n\n```json\n\"features\": {\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {},           \u002F\u002F Latest v1.x.x\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fpython:1.0\": {},       \u002F\u002F Latest v1.0.x\n  \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgo:1.0.0\": {}          \u002F\u002F Exact version 1.0.0\n}\n```\n\n### Creating Custom Features\n\nYou can create your own Features using the [feature-starter template](https:\u002F\u002Fgithub.com\u002Fdevcontainers\u002Ffeature-starter). Each Feature is a folder with:\n- `devcontainer-feature.json` - Metadata and options\n- `install.sh` - Installation script\n\n### Controlling Feature Installation Order\n\nBy default, Features are installed in an implementation-defined order. To control this:\n\n```json\n{\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fcommon-utils:1\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker:2\": {}\n  },\n  \"overrideFeatureInstallOrder\": [\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fcommon-utils\",\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode\",\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fdocker-in-docker\"\n  ]\n}\n```\n\n## Complete Property Reference\n\nFor comprehensive documentation of all devcontainer.json properties with detailed examples, see **[references\u002FJSON_SCHEMA_REFERENCE.md](references\u002FJSON_SCHEMA_REFERENCE.md)**.\n\nThis reference covers:\n- All general, container source, and lifecycle properties\n- Advanced port configuration and attributes\n- Environment variables, user configuration, and variable substitution\n- Host requirements (CPU, memory, storage, GPU)\n- Security options, secrets management, and container runtime settings\n- Build configuration, Docker Compose options, and tool customizations\n\n## Common Workflows\n\n**Open Local Project in Container:**\n1. Open project in VS Code\n2. Run: `Dev Containers: Reopen in Container` (F1)\n3. Select Template if no devcontainer.json exists\n4. VS Code builds and reopens in container\n\n**Clone Repository in Container Volume** (better performance on Windows\u002FmacOS):\n1. Run: `Dev Containers: Clone Repository in Container Volume...`\n2. Enter Git URL or select from GitHub\n3. Choose Template if needed\n\n**Open GitHub PR:**\n1. Run: `Dev Containers: Clone Repository in Container Volume...`\n2. Paste GitHub PR URL\n3. VS Code opens PR with GitHub Pull Requests extension\n\n**Rebuild Container** (after config changes):\n- `Dev Containers: Rebuild Container`\n- OR `Dev Containers: Rebuild Container Without Cache` (full rebuild)\n\n**Attach to Running Container:**\n1. Run: `Dev Containers: Attach to Running Container...`\n2. Select container from list\n\n## Advanced Configuration\n\n### Monorepos: Multiple Devcontainers\n\n**Important Limitation:** Multi-root workspaces (`.code-workspace` files) open **all folders in the same container**. To use different containers per package, open each folder separately.\n\n**Pattern 1: Separate Package Containers** (different tech stacks)\n\n```\nmonorepo\u002F\n├── apps\u002F\n│   ├── frontend\u002F.devcontainer\u002Fdevcontainer.json\n│   └── backend\u002F.devcontainer\u002Fdevcontainer.json\n```\n\n**Frontend (.devcontainer\u002Fdevcontainer.json):**\n```json\n{\n  \"name\": \"Frontend\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Ftypescript-node:20\",\n  \"workspaceFolder\": \"\u002Fworkspaces\u002Fmonorepo\u002Fapps\u002Ffrontend\",\n  \"workspaceMount\": \"source=${localWorkspaceFolder}\u002F..\u002F..,target=\u002Fworkspaces\u002Fmonorepo,type=bind\"\n}\n```\n\n**Workflow:** \n- Single package: Right-click `frontend\u002F` → \"Open Folder in Container\"\n- Multiple packages: Open separate VS Code windows, one per package\n\n**Pattern 2: Unified Polyglot Container** (all tools in one)\n\n```json\n{\n  \"name\": \"Monorepo All\",\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fbase:ubuntu\",\n  \"features\": {\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fnode:1\": {\"version\": \"20\"},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fpython:1\": {\"version\": \"3.11\"},\n    \"ghcr.io\u002Fdevcontainers\u002Ffeatures\u002Fgo:1\": {}\n  }\n}\n```\n\n**Pattern 3: Docker Compose Multi-Container** (services in separate containers)\n\nUse Docker Compose when packages need to run simultaneously (frontend + backend + db):\n\n```yaml\nservices:\n  frontend:\n    build: .\u002Fapps\u002Ffrontend\n    volumes: [\".:\u002Fworkspace:cached\"]\n  backend:\n    build: .\u002Fapps\u002Fbackend\n    volumes: [\".:\u002Fworkspace:cached\"]\n  db:\n    image: postgres:14\n```\n\n```json\n{\n  \"name\": \"Monorepo\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"frontend\",\n  \"workspaceFolder\": \"\u002Fworkspace\"\n}\n```\n\n**Choose \"frontend\" or \"backend\" as primary `service`**. Access other containers via `docker exec` or attach in separate windows.\n\n## Advanced Topics\n\nFor in-depth coverage of advanced scenarios, see the [references\u002F](references\u002F) directory:\n\n- **[Templates Guide](references\u002FTEMPLATES_GUIDE.md)** - Detailed template descriptions and selection guidance\n- **[JSON Schema Complete Reference](references\u002FJSON_SCHEMA_REFERENCE.md)** - Comprehensive documentation of all devcontainer.json properties\n- **[Pre-building Images](references\u002FPREBUILDING.md)** - Image caching, CI\u002FCD workflows, supply-chain security\n- **[Kubernetes Integration](references\u002FKUBERNETES.md)** - Attach to K8s pods, cluster development\n- **[Networking Fundamentals](references\u002FNETWORKING.md)** - Docker network modes, port forwarding, DNS, proxies\n- **[Advanced Networking](references\u002FNETWORKING_ADVANCED.md)** - VPN, network security, service mesh, load balancing\n- **[Volume Performance](references\u002FVOLUME_PERFORMANCE.md)** - Optimize disk performance on Windows\u002FmacOS\n- **[Container-in-Container](references\u002FCONTAINER_IN_CONTAINER.md)** - Docker-in-Docker for CI\u002FCD testing\n- **[Security Hardening](references\u002FSECURITY.md)** - Non-root users, secrets management, capabilities\n- **[Dotfiles & Personalization](references\u002FDOTFILES.md)** - Shell customization, tool configuration\n- **[Recovery & Debugging](references\u002FRECOVERY_DEBUGGING.md)** - Fix build failures, inspect containers\n\n## Advanced Configuration (Quick Reference)\n\n### Using Docker Compose\n\n**docker-compose.yml:**\n```yaml\nservices:\n  app:\n    build: .\n    volumes:\n      - .:\u002Fworkspace:cached\n    command: sleep infinity\n  db:\n    image: postgres:14\n    environment:\n      POSTGRES_PASSWORD: example\n```\n\n**devcontainer.json:**\n```json\n{\n  \"name\": \"App with Database\",\n  \"dockerComposeFile\": \"docker-compose.yml\",\n  \"service\": \"app\",\n  \"workspaceFolder\": \"\u002Fworkspace\",\n  \"postCreateCommand\": \"npm install\"\n}\n```\n\n### Non-Root User (See [SECURITY.md](references\u002FSECURITY.md))\n\n```json\n{\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Ftypescript-node:20\",\n  \"remoteUser\": \"node\"\n}\n```\n\n### Custom Mounts and Environment (See [SECURITY.md](references\u002FSECURITY.md))\n\n```json\n{\n  \"image\": \"mcr.microsoft.com\u002Fdevcontainers\u002Fpython:3.11\",\n  \"mounts\": [\n    \"source=${localEnv:HOME}\u002F.ssh,target=\u002Fhome\u002Fnode\u002F.ssh,readonly,type=bind\"\n  ],\n  \"containerEnv\": {\n    \"DATABASE_URL\": \"postgresql:\u002F\u002Flocalhost\u002Fmydb\"\n  }\n}\n```\n\n## Troubleshooting (Quick Reference)\n\nFor comprehensive debugging guides, see [references\u002FRECOVERY_DEBUGGING.md](references\u002FRECOVERY_DEBUGGING.md).\n\n**Common Issues:**\n\n- **Docker Not Running**: Check `docker ps` works. On Linux: `sudo systemctl status docker`\n- **Port Already in Use**: Find process with `lsof -i :\u003Cport>` (macOS\u002FLinux) or `netstat -ano | findstr :\u003Cport>` (Windows)\n- **Slow Performance**: See [VOLUME_PERFORMANCE.md](references\u002FVOLUME_PERFORMANCE.md) for optimization strategies  \n- **Build Failures**: Use `Dev Containers: Reopen in Recovery Container` to debug. See [RECOVERY_DEBUGGING.md](references\u002FRECOVERY_DEBUGGING.md)\n- **Permission Errors**: Set `remoteUser` or see [SECURITY.md](references\u002FSECURITY.md) for non-root configuration\n\n## Best Practices\n\n1. **Version Control** - Commit `.devcontainer\u002F` so all developers use the same environment\n2. **Use Official Images** - Start with `mcr.microsoft.com\u002Fdevcontainers\u002F` for reliability\n3. **Pin Versions** - Lock Feature and base image versions for reproducibility\n4. **Security** - Run as non-root, avoid committing secrets. See [SECURITY.md](references\u002FSECURITY.md)\n5. **Performance** - Use volume mounts on Windows\u002FmacOS. See [VOLUME_PERFORMANCE.md](references\u002FVOLUME_PERFORMANCE.md)\n6. **Test Regularly** - Ensure new team members can build containers from scratch\n7. **Document** - Add comments explaining custom configurations\n\n## Pre-building and CI\u002FCD\n\nPre-building images improves startup time and enables CI\u002FCD integration. See [references\u002FPREBUILDING.md](references\u002FPREBUILDING.md) for comprehensive guides.\n\n**Quick Example (GitHub Actions):**\n```yaml\nname: CI\non: [push]\njobs:\n  test:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v3\n      - uses: devcontainers\u002Fci@v0.3\n        with:\n          imageName: ghcr.io\u002F${{ github.repository }}-devcontainer\n          cacheFrom: ghcr.io\u002F${{ github.repository }}-devcontainer\n          push: always\n          runCmd: npm test\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n## Resources\n\n- **Specification**: https:\u002F\u002Fcontainers.dev\u002F\n- **VS Code Docs**: https:\u002F\u002Fcode.visualstudio.com\u002Fdocs\u002Fdevcontainers\u002Fcontainers\n- **Templates**: https:\u002F\u002Fcontainers.dev\u002Ftemplates\n- **Features**: https:\u002F\u002Fcontainers.dev\u002Ffeatures\n- **GitHub Org**: https:\u002F\u002Fgithub.com\u002Fdevcontainers\n- **CLI Reference**: https:\u002F\u002Fgithub.com\u002Fdevcontainers\u002Fcli\n- **Docker Images**: https:\u002F\u002Fgithub.com\u002Fdevcontainers\u002Fimages\n\n## Quick Reference\n\n**VS Code Commands** (open with `F1` or `Cmd\u002FCtrl+Shift+P`):\n- `Dev Containers: Reopen in Container`\n- `Dev Containers: Rebuild Container`\n- `Dev Containers: Add Dev Container Configuration Files...`\n- `Dev Containers: Configure Container Features`\n- `Dev Containers: Clone Repository in Container Volume...`\n- `Dev Containers: Attach to Running Container...`\n- `Dev Containers: Show Container Log`\n\n**Key Configuration Locations**:\n- `.devcontainer\u002Fdevcontainer.json` (recommended)\n- `.devcontainer.json` (alternative)\n- Dockerfile: `.devcontainer\u002FDockerfile`\n- Docker Compose: `.devcontainer\u002Fdocker-compose.yml`",{"name":5,"description":7},"main","160b30f0b67c923077f886376fdfae1016a70702","experiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-148",2,"https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router","https:\u002F\u002Flegendtkl.github.io\u002Fagentic-skill-router\u002F","https:\u002F\u002Fgithub.com\u002Flegendtkl","http:\u002F\u002Fwww.legendtkl.com","No secret before debugging.\r\n","2026-06-04 14:02:56",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add legendtkl\u002Fagentic-skill-router --skill skill-148",{"tool":39,"command":40},"bunx","bunx skills add legendtkl\u002Fagentic-skill-router --skill skill-148",{"tool":42,"command":43},"pnpm","pnpm dlx skills add legendtkl\u002Fagentic-skill-router --skill skill-148","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fskillrouter-skills\u002Fskill-148\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":18},"01M7384EP28XVSR2R0YGRS0GK9","foo","A test skill named foo","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Ffoo\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":18},"01M7384DECF306RRRC16PZJTQ5","bar","飞书 — bar with quoted Chinese","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fbar\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":18},"01M738491441AQ85E7GD7VVDTA","agentic-skill-router","First use any clearly matching enabled local\u002Fuser Agent Skill. If none matches, prefer this router for skill-shaped requests involving a named tool, API, service, CLI, platform, file format, dataset, or domain workflow, including when a generic built-in skill such as browser, Chrome, or web search also seems applicable; use built-ins directly only when explicitly requested or when the task is primarily live browsing, logged-in page operation, clicking, screenshotting, or current webpage inspection. Also use directly to audit, slim, disable, restore, or route locally installed Agent Skills across supported hosts. Examples include Vercel, Netlify, Cloudflare, Render, Playwright, Sentry, Linear, GitHub, OpenAI APIs, PDF, DOCX, PPTX, and spreadsheets.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fskills\u002Fagentic-skill-router\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M738475HF7SXTP4HCPZJVZ8E","syn-video-trim","Skill for trimming and cutting clips in the context of video files. Use when the user's task is specifically about trimming and cutting clips.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-trim\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":18},"01M73845F4RD2AA6YHS1E3VQRB","syn-video-transcode","Skill for transcoding codecs and resolutions in the context of video files. Use when the user's task is specifically about transcoding codecs and resolutions.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-transcode\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":18},"01M73842YN17QSJETPZX6Z9DAG","syn-video-thumbnail","Skill for extracting thumbnails and frames in the context of video files. Use when the user's task is specifically about extracting thumbnails and frames.","https:\u002F\u002Fgithub.com\u002Flegendtkl\u002Fagentic-skill-router\u002Fblob\u002Fmain\u002Fexperiments\u002Fdci-compare\u002Fsynthetic-skills\u002Fsyn-video-thumbnail\u002FSKILL.md",[],[]]