Command Palette

Search for a command to run...

Back to skills
skill № 75457

dev-loop-dev-container

Use when the user asks about devcontainer.json, Dev Containers in VS Code, GitHub Codespaces, a reproducible Docker-based development environment or dev…

FreeNo executable scripts
j4flmaoby j4flmao★ 47 GitHub stars

Install dev-loop-dev-container in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

Dev Container

Purpose

Create and configure development containers — Docker-based, consistent development environments defined by a devcontainer.json and Dockerfile. Dev containers ensure all team members (and CI) use identical tools, runtimes, and configurations, eliminating "works on my machine" issues.

Agent Protocol

Trigger

Exact user phrases: "dev container", "devcontainer.json", "development container", "VS Code Dev Container", "GitHub Codespaces", "dev environment setup", "reproducible dev environment", "containerized dev", "Docker dev environment", "remote container".

Input Context

  • Language runtime (Node.js, Python, Go, Rust, Java, .NET, Ruby, PHP)
  • Build tools (npm, pip, cargo, maven, gradle, make, cmake)
  • Services needed (PostgreSQL, Redis, MySQL, MongoDB, RabbitMQ, Elasticsearch)
  • VS Code extensions required for development
  • Post-create setup steps (npm install, database migrations, seed data)
  • Platform (VS Code, GitHub Codespaces, JetBrains Remote, DevPod)
  • Base image preference (mcr.microsoft.com/devcontainers/*, debian, ubuntu, alpine)

Output Artifact

Complete dev container configuration with Dockerfile, devcontainer.json, and Docker Compose (if multi-service).

Response Format

Base: {image or Dockerfile}
Features: {ghcr.io/devcontainers/features/... list}
Services: {compose services | none}
Lifecycle: postCreateCommand {cmd}
Ports: {forwardPorts}
Files: .devcontainer/devcontainer.json {+ Dockerfile, compose.yaml}

Completion Criteria

  • devcontainer.json configured with image or Dockerfile
  • Dockerfile defined (or base image selected) with all required tools
  • VS Code extensions listed (or JetBrains gateway config)
  • Mount/bind mount configuration for source code
  • Port forwarding configured for application and services
  • Environment variables set (or .env file reference)
  • Post-create command configured (install dependencies)
  • Multi-service setup via Docker Compose (if needed)
  • Container user permissions configured (avoid root)
  • Git credential forwarding configured
  • Features selected from devcontainer-features registry

Max Response Length

200 lines.

Framework/Methodology

Dev Container Decision Tree

What is the project type?
├── Single runtime, no services → Dockerfile-based
│   base: mcr.microsoft.com/devcontainers/typescript-node:24
│   → apt install tools → npm install → done
├── Single runtime + databases → Docker Compose
│   app container + postgres + redis containers
│   → depends_on, network, healthcheck
├── Polyglot / multiple runtimes → Feature-based
│   base: debian + features (node, python, go)
│   → ghcr.io/devcontainers/features/*
├── GPU / CUDA development → GPU-enabled base
│   base: mcr.microsoft.com/devcontainers/cuda
│   → nvidia-docker runtime
└── Embedded / IoT (Rust, C++) → Cross-compilation tools
    → arm-none-eabi-gcc, QEMU, platformio feature

Dev Container Architecture

Host Machine (VS Code, Codespaces, JetBrains)
    ↕ Dev Containers extension / Codespaces / devcontainer CLI
Container (Docker)
├── Application code (mounted volume)
├── Language runtime (Node, Python, Go, etc.)
├── Build tools (npm, cargo, make, etc.)
├── VS Code extensions (inside container)
├── Git credentials forwarded
├── SSH agent forwarded
├── Ports forwarded (app, debugger, services)
└── Docker-outside-Docker (optional)
    ↓
Docker Compose (optional multi-service)
├── App container
├── PostgreSQL / MySQL / MongoDB
├── Redis / Memcached
└── Other services

Workflow

Step 1: Create devcontainer.json

// .devcontainer/devcontainer.json
{
  "name": "My App Dev Container",

  // Option A: Use a pre-built dev container image
  "image": "mcr.microsoft.com/devcontainers/typescript-node:24",

  // Option B: Build from Dockerfile
  // "build": {
  //   "dockerfile": "Dockerfile",
  //   "args": { "VARIANT": "20" }
  // },

  // Option C: Use Docker Compose
  // "dockerComposeFile": "docker-compose.yml",
  // "service": "app",
  // "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",

  // Features (additional tools from registry)
  // (the typescript-node image already ships Node; add the node feature only on generic bases)
  "features": {
    "ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
    "ghcr.io/devcontainers/features/git:1": {},
    "ghcr.io/devcontainers/features/github-cli:1": {}
  },

  // Tool-specific settings live under "customizations" (top-level "extensions"/"settings" are deprecated)
  "customizations": {
    "vscode": {
      "extensions": [
        "dbaeumer.vscode-eslint",
        "esbenp.prettier-vscode",
        "bradlc.vscode-tailwindcss",
        "github.vscode-github-actions",
        "ms-azuretools.vscode-docker"
      ],
      "settings": {
        "editor.formatOnSave": true,
        "editor.defaultFormatter": "esbenp.prettier-vscode",
        "typescript.updateImportsOnFileMove.enabled": "always"
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • references/dev-container-advanced.md
  • references/dev-container-fundamentals.md
  • references/devcontainer-advanced.md
  • references/devcontainer-setup.md
  • references/dockerfile-patterns.md
  • references/vscode-extensions.md

FAQ

What does the dev-loop-dev-container skill do?

Use when the user asks about devcontainer.json, Dev Containers in VS Code, GitHub Codespaces, a reproducible Docker-based development environment or dev container features. Produces devcontainer config, Dockerfile and compose setup for local development. Not for production images (use docker-patterns) or CI pipelines (use github-actions).

How do I install the dev-loop-dev-container skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the dev-loop-dev-container skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare dev-loop-dev-container with