Back to Skills

devcontainer-setup

Creates devcontainers with Claude Code, language-specific tooling (Python/Node/Rust/Go), and persistent volumes. Use when adding devcontainer support to a project, setting up isolated development environments, or configuring sandboxed Claude Code workspaces.

5,392stars479forksUpdated 5/26/2026

Security Assessment

Critical Risk(0/100)

Detected risks:

Destructive Operations([references/dockerfile-best-practices.md] rm -rf, [SKILL.md] rm -rf)
Persistence([SKILL.md] .zshrc)
Remote Code Execution([references/dockerfile-best-practices.md] curl -fsSL https://example.com/install.sh | bash)
Security Score0/100

About devcontainer-setup

The devcontainer-setup skill creates a pre-configured development container environment designed for isolated and reproducible project workflows. It helps developers quickly add devcontainer support to existing repositories by generating standardized configuration files and automatically detecting the project’s language stack. The skill is focused on development use cases rather than production deployment and is intended to simplify onboarding, sandboxing, and consistent local development across teams. It also supports persistent configuration through dedicated volumes and integrates Claude Code tooling into the containerized environment.

The skill includes a structured workflow that performs project reconnaissance, language detection, configuration generation, and file creation inside a .devcontainer/ directory. It supports Python, Node/TypeScript, Rust, and Go projects, including multi-language repositories where configurations, setup commands, extensions, and settings are merged together. The generated environment includes Claude Code integrations, sandboxing utilities, Python 3.13 via uv, Node 22 via fnm, AST-based search tooling, network isolation capabilities, token forwarding through environment variables, and modern command-line utilities such as ripgrep, fd, fzf, tmux, and git-delta. For Python projects, the skill can also adjust the installed Python version based on project configuration.

This skill is useful for developers, AI-assisted coding workflows, open source contributors, and teams that require secure and reproducible development environments. It is particularly valuable for projects that need isolated workspaces, standardized tooling across contributors, or sandboxed Claude Code environments. The skill is best suited for initializing new devcontainer support rather than modifying existing configurations or managing production container infrastructure.

FAQ

What types of projects are supported by this skill?

The skill supports Python, Node/TypeScript, Rust, and Go projects. It can also configure multi-language repositories by combining tooling and setup steps from all detected languages.

Does this skill create production-ready Docker containers?

No. The generated configuration is intended for development environments only and is not designed for production deployment.

How does the skill detect the project language stack?

The skill checks for language-specific files such as pyproject.toml, package.json, Cargo.toml, go.mod, and related source files to determine which languages and tools should be configured.

Can the generated environment include multiple language toolchains?

Yes. When multiple languages are detected, the skill merges extensions, settings, and setup commands into a combined configuration following a defined priority order.

What development tools are included in the generated devcontainer?

The generated environment includes Claude Code integrations, Python and Node tooling, ast-grep, sandboxing utilities, network isolation tools, and command-line utilities such as ripgrep, fd, fzf, tmux, and git-delta.

All Files

8 files
resources/.zshrc1.8 KB
View
resources/install.sh22.6 KB
View
references/features-vs-dockerfile.md0.7 KB
View
resources/post_install.py8.4 KB
View
references/dockerfile-best-practices.md3.3 KB
View
resources/devcontainer.json2.5 KB
View
resources/Dockerfile3.6 KB
View
SKILL.md7.9 KB
View

Install devcontainer-setup

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill