Skills Explorer Add Skills

devcontainer-setup

An agent skill by trailofbits, from trailofbits/skills. Tags: automation, cloud, developer-tools, devops, local-workflow.

What it does

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.

Install

With the skills CLI, which installs into Claude Code, Codex, Cursor and other agents:

npx skills add trailofbits/skills --skill devcontainer-setup

Or copy the skill folder into Claude Code's skills directory by hand (~/.claude/skills for every project, or .claude/skills inside one):

git clone --depth 1 https://github.com/trailofbits/skills
cp -r skills/plugins/devcontainer-setup/skills/devcontainer-setup ~/.claude/skills/devcontainer-setup

Safety box score

Grade F, high risk: 89 of 100 risk points, rated 2026-10-20. The grade rates what the skill and its scripts can reach on the machine of whoever installs it, across eight categories from shell execution to secrets access. How the score works.

This skill generates a devcontainer image plus helper scripts that install Claude Code, add marketplace plugins, and wire in language tooling. The main risks are executing downloaded installers during build/startup, forwarding Claude/Anthropic credentials into the container, and helper commands that can write to host dotfiles or delete Docker resources.

Category levels, from 0 (none) to 3 (high)
CategoryLevelWhy
Code & shell execution3 (high)`resources/Dockerfile` runs downloaded installers with `curl ... | bash`, and `resources/post_install.py` spawns `claude -p`; this is broad code execution during build and container startup.
Network access3 (high)The setup fetches code and artifacts from the network (`https://claude.ai/install.sh`, GitHub release `.deb`/`.tar.gz` URLs) and forwards auth-bearing env vars into the container via `remoteEnv`.
Filesystem reach3 (high)It writes outside the project into home dotfiles and persistent state (`~/.gitconfig.local`, `~/.gitignore_global`, `~/.tmux.conf`, `~/.claude/`) and includes destructive cleanup paths like `rm -rf .venv` and `destroy`.
Secrets & credentials2 (moderate)`resources/devcontainer.json` forwards `CLAUDE_CODE_OAUTH_TOKEN` and `ANTHROPIC_API_KEY` into the container, and `resources/post_install.py` uses the OAuth token to seed auth state in `~/.claude.json`.
Privilege & persistence2 (moderate)The devcontainer requests elevated capabilities (`--cap-add=NET_ADMIN`, `--cap-add=NET_RAW`) and `post_install.py` invokes `sudo chown -R`, but it does not require host sudo by default.
Instruction hijack surface3 (high)`resources/post_install.py` sets Claude's default permission mode to `bypassPermissions`, which suppresses normal approval checks; the helper also advertises `destroy -f` to skip confirmations.
Irreversible actions3 (high)`resources/install.sh` can stop/remove containers, volumes, and images (`destroy`), sync sessions from containers to the host, and upgrade Claude Code without further verification.
Transparency3 (high)Several build steps rely on remote installers and release artifacts fetched by URL, so the reviewer cannot inspect the executed code from the repository alone.

Before installing

Rated 2026-10-20 by an automated review of 9 files from the skill's repository.

Source

Repository
trailofbits/skills (all skills from this repository)
Path
plugins/devcontainer-setup/skills/devcontainer-setup/SKILL.md
Branch
main
Collection
devcontainer-setup
Updated
2026-09-19