Devcontainers

From uw-ssec/rse-plugins · View interactive version

Devcontainers is an AI agent skill from the GitHub repository uw-ssec/rse-plugins. Use when the user asks to create, configure, or troubleshoot dev containers, devcontainer.json files, or GitHub Codespaces setups. Creates and configures devcontainer.json, adds features and lifecycle hooks, supports Docker Compose dev environments, and validates container setup for reproducible dev

How to use this skill

Skill file

Dev Containers

Primary Actions

Minimal Template

{
  "name": "My Project",
  "image": "mcr.microsoft.com/devcontainers/base:ubuntu",
  "features": {
    "ghcr.io/devcontainers/features/python:1": { "version": "3.12" }
  },
  "customizations": {
    "vscode": {
      "extensions": ["ms-python.python"]
    }
  },
  "postCreateCommand": "pip install -e '.[dev]'"
}

Validation Workflow

  1. Create/update devcontainer.json.
  2. Validate build:
devcontainer build --workspace-folder .
  1. Rebuild/reopen container in editor.
  2. Verify lifecycle hooks and required extensions.
  3. If using Compose, verify dependent services are healthy/reachable.
  4. If failures occur, fix config and repeat from step 2.

Deep References

references/devcontainer-json.md

references/features-and-customization.md

references/validation-and-troubleshooting.md

Templates

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.