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…
от j4flmao★ 47 звёзд на GitHub
Установить dev-loop-dev-container в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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"
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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
Что делает скилл 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 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).
Как установить скилл dev-loop-dev-container?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dev-loop-dev-container запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
AnthropicGuide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
claude-api
AnthropicReference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
algorithmic-art
AnthropicCreating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
mcp-integration
AnthropicThis skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…