devcontainer-setup
Skill by trailofbits
Creates a devcontainer for a project with Claude Code, language-specific tooling for Python, Node, Rust and Go, and persistent volumes. It suits developers who want an isolated, sandboxed Claude Code workspace.
Install devcontainer-setup
Built from the published package, never by AI.
git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/plugins/devcontainer-setup/skills/devcontainer-setup ~/.claude/skills/devcontainer-setupRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/trailofbits/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/plugins/devcontainer-setup/skills/devcontainer-setup ~/.gemini/antigravity-cli/skills/devcontainer-setupAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The devcontainer-setup skill creates a pre-configured devcontainer for a project, with Claude Code and language-specific tooling for Python, Node/TypeScript, Rust and Go. It reads the project name from files such as package.json or pyproject.toml, detects the languages present, and fills in templates from its resources folder. It then writes a Dockerfile, devcontainer.json, post_install.py, .zshrc and install.sh into the .devcontainer/ directory.
The base template adds Claude Code with marketplace plugins, sandboxing via bubblewrap and socat, Python 3.13 via uv, Node 22 via fnm, and several modern CLI tools. It can also add persistent volumes, for example for Cargo or Go. The .devcontainer/ folder is mounted read-only. The skill is aimed at developers who want an isolated Claude Code workspace for a project, and the source says it is for development only, not production containers.
Written from the project's SKILL.md and checked against it.
What it can do
- Project name detectionInfers the project name from package.json, pyproject.toml, Cargo.toml, go.mod or the directory name.
- Language detectionDetects Python, Node/TypeScript, Rust and Go and configures all detected languages together.
- Claude Code base setupInstalls Claude Code with marketplace plugins and sandboxing via bubblewrap and socat.
- Language toolingProvides Python 3.13 via uv, Node 22 via fnm, and Rust and Go devcontainer features.
- Editor configurationAdds VS Code extensions and settings for each detected language.
- Persistent volumesAdds named volumes for paths such as /home/vscode/.cargo and /home/vscode/go.
- Network isolation toolsIncludes iptables and ipset with the NET_ADMIN capability for network isolation.
- Modern CLI toolsInstalls ripgrep, fd, fzf, tmux, git-delta and ast-grep in the container.
What you need
- VS Code with Dev Containers support, or the devcontainer CLI
- CLAUDE_CODE_OAUTH_TOKEN or ANTHROPIC_API_KEY for token forwarding
Try asking
- Set up a devcontainer for this Python and Node project.
- Add a sandboxed Claude Code devcontainer with Rust support.
- Add a persistent Go module volume to my devcontainer.
Good to know
- Intended for development only, not production containers.
- Not for projects that already have a devcontainer configuration and only need changes.
- The network isolation tools require the NET_ADMIN capability.
Security check
C- Asks for administrator rights (sudo)In
plugins/devcontainer-setup/skills/devcontainer-setup/resources/post_install.py:sudo
Checked automatically: plugins/devcontainer-setup/skills/devcontainer-setup/SKILL.md, plugins/devcontainer-setup/skills/devcontainer-setup/resources/install.sh, plugins/devcontainer-setup/skills/devcontainer-setup/resources/post_install.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md8 KB -
agents/openai.yaml239 B -
assets/trail-of-bits-mark.svg3 KB -
references/dockerfile-best-practices.md3 KB -
references/features-vs-dockerfile.md675 B
Show all 10 files
-
resources/.zshrc2 KB -
resources/Dockerfile4 KB -
resources/devcontainer.json3 KB -
resources/install.sh23 KB -
resources/post_install.py8 KB
Alternatives to devcontainer-setup
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
devcontainer-setup: common questions
Which languages does the devcontainer setup support?
The skill supports Python, Node/TypeScript, Rust and Go. If a project uses several of them, the skill configures all detected languages in one setup.
Can this be used for production deployments?
No. The source says this skill is for development only and is not meant for deploying production containers.
How does it protect the container from changes to its own config?
The .devcontainer/ directory is mounted read-only to prevent container escape.
How do I install devcontainer-setup?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is devcontainer-setup free?
The code is published under the CC-BY-SA-4.0 licence. The service it connects to may have its own pricing.
Is devcontainer-setup safe to use?
It scores 92 of 100. Grades: maintenance A, licence C, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.
What are alternatives to devcontainer-setup?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
