Skip to content
OpenSmartRoute
Skillv1.0.0

devcontainers

Define reproducible development environments with Dev Containers. Use when a user asks to standardize dev environments, set up VS Code remote containers, create reproducible dev setups, or onboard dev

by terminalskills(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from terminalskills/skills (skills/devcontainers/SKILL.md). Install upstream with npx skills add terminalskills/skills --skill devcontainers. Copyright stays with the author (Apache-2.0).

Dev Containers

Overview

Dev Containers define reproducible development environments in Docker. Open a repo in VS Code or GitHub Codespaces and get the exact same environment — tools, extensions, settings pre-installed.

Instructions

Step 1: Basic Config

// .devcontainer/devcontainer.json — Dev environment definition
{
  "name": "My Project",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:20",
  "features": {
    "ghcr.io/devcontainers/features/docker-in-docker:2": {},
    "ghcr.io/devcontainers/features/github-cli:1": {}
  },
  "forwardPorts": [3000, 5432],
  "postCreateCommand": "npm install",
  "customizations": {
    "vscode": {
      "extensions": [
        "dbaeumer.vscode-eslint",
        "esbenp.prettier-vscode"
      ],
      "settings": { "editor.formatOnSave": true }
    }
  }
}

Step 2: With Database

# .devcontainer/docker-compose.yml
services:
  app:
    image: mcr.microsoft.com/devcontainers/typescript-node:20
    volumes: [../:/workspace:cached]
    command: sleep infinity
  db:
    image: postgres:16
    environment:
      POSTGRES_PASSWORD: postgres
      POSTGRES_DB: myapp
    volumes: [pgdata:/var/lib/postgresql/data]
volumes:
  pgdata:

Guidelines

  • New developer: clone → open in VS Code → "Reopen in Container" → ready.
  • Features marketplace adds tools without custom Dockerfiles.
  • Works with GitHub Codespaces — same config, cloud-hosted.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/terminalskills-skills-devcontainers/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

terminalskills-skills-devcontainers.ocm.jsonjson
{
  "ocm": "1",
  "id": "terminalskills-skills-devcontainers",
  "kind": "skill",
  "name": "devcontainers",
  "description": "Define reproducible development environments with Dev Containers. Use when a user asks to standardize dev environments, set up VS Code remote containers, create reproducible dev setups, or onboard developers faster.",
  "publisher": "terminalskills",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "devcontainers",
      "docker",
      "vscode",
      "codespaces",
      "reproducible",
      "skills-sh"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Define reproducible development environments with Dev Containers. Use when a user asks to standardize dev environments, set up VS Code remote containers, create reproducible dev setups, or onboard developers faster."
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "skills.sh",
      "repository": "https://github.com/terminalskills/skills",
      "path": "skills/devcontainers/SKILL.md",
      "ref": "HEAD",
      "url": "https://github.com/terminalskills/skills/blob/HEAD/skills/devcontainers/SKILL.md",
      "key": "terminalskills/skills/skills/devcontainers/SKILL.md"
    },
    "compatibility": "VS Code, GitHub Codespaces",
    "license": "Apache-2.0"
  },
  "instructions": "# Dev Containers\n\n## Overview\nDev Containers define reproducible development environments in Docker. Open a repo in VS Code or GitHub Codespaces and get the exact same environment — tools, extensions, settings pre-installed.\n\n## Instructions\n\n### Step 1: Basic Config\n```json\n// .devcontainer/devcontainer.json — Dev environment definition\n{\n  \"name\": \"My Project\",\n  \"image\": \"mcr.microsoft.com/devcontainers/typescript-node:20\",\n  \"features\": {\n    \"ghcr.io/devcontainers/features/docker-in-docker:2\": {},\n    \"ghcr.io/devcontainers/features/github-cli:1\": {}\n  },\n  \"forwardPorts\": [3000, 5432],\n ",
  "cost": {
    "context_tokens": 359
  }
}

Fetch it by URL: GET /api/v1/registry/terminalskills-skills-devcontainers/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.