devcontainer-init

devcontainer-init is a skill for Claude Code from infraspecdev/tesseract. It costs 37 tokens per session (1,262 once invoked), scanned B, original, MIT.

A setup tool for creating a devcontainer—a reproducible development environment that runs project commands in an isolated container.

In plain words
What is it for?
Use it to detect a repository’s technology stack, generate the container configuration and supporting scripts, and update Shield settings.
Why use it?
It helps limit filesystem and network access while giving implementation workflows a predictable environment.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shield plugin — 36 skills, 17 commands, 22 agents shipped together

Good fit Use it to detect a repository’s technology stack, generate the container configuration and supporting scripts, and update Shield settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/infraspecdev/tesseract/devcontainer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add infraspecdev/tesseract --skill devcontainer
Clone the repo
git clone --depth 1 https://github.com/infraspecdev/tesseract

Made for: Claude Code.

Or install shield, the plugin that ships this one along with the rest of its 36 skills, 17 commands, 22 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for devcontainer-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/infraspecdev/tesseract/devcontainer/github.svg)](https://agentmods.dev/skills/infraspecdev/tesseract/devcontainer)
Your own site
<a href="https://agentmods.dev/skills/infraspecdev/tesseract/devcontainer"><img src="https://agentmods.dev/badge/skills/infraspecdev/tesseract/devcontainer/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for devcontainer-init

Your own site · 80×15
<a href="https://agentmods.dev/skills/infraspecdev/tesseract/devcontainer"><img src="https://agentmods.dev/badge/skills/infraspecdev/tesseract/devcontainer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,262 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00037 $0.01262
Opus 5.5 $0.00015 $0.00505
Sonnet 5.5 $0.00007 $0.00252
Haiku 4.5 $0.00004 $0.00126

Measured 3mo ago against content hash 9e7434a6910f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

devcontainer-init scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

The scan reads SKILL.md. This mod also ships 2 executable files (templates/shield-firewall.sh, test_feature_map.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

`chmod 0755 .devcontainer/postCreate.sh .devcontainer/shield-firewall.sh`.
shield/skills/devcontainer/SKILL.md · 142 lines

How it starts

The opening of the file, as written. The whole thing — 142 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Devcontainer Init

Scaffold a per-repo .devcontainer/ that runs /implement and other agent commands in filesystem + network egress isolation. Follows the design at docs/superpowers/specs/2026-05-18-devcontainer-implement-design.md.

When to Use

  • User runs /shield init-devcontainer.
  • User asks to "set up a devcontainer" or "isolate /implement".

When NOT to Use

  • .devcontainer/ already exists and matches what we'd produce → tell the user it's already set up.
  • User wants cloud / Codespaces / CI launchers → out of scope for v1; suggest local devcontainer first.

Step Skeleton

Step Action Mandatory
1 Detect stacks via shield/scripts/detect_stack.py Yes
2 Confirm with user (add / drop / correct) Yes
3 Compose devcontainer.json via shield/scripts/compose_devcontainer.py Yes
4 Copy templates: shield-firewall.sh, Dockerfile.tmpl, fill postCreate.sh.tmpl Yes
5 Diff against existing .devcontainer/ if present; prompt before overwrite Yes
6 Update .shield.json with devcontainer block Yes
7 Print next-step instructions (VS Code / CLI) Yes

Workflow

1. Detect

uv run python3 -c \
  "from pathlib import Path; \
   import sys; sys.path.insert(0, 'shield/scripts'); \
   from detect_stack import detect_stack; \
   print(' '.join(detect_stack(Path('.'))))"

Output is a space-separated list of stack tags (e.g., python node).

2. Confirm with user

Show the detected stacks. Ask:

Detected: python, node
  [a] proceed with these
  [b] drop one or more
  [c] add a stack not detected

3. Compose devcontainer.json

uv run python3 -c \
  "from pathlib import Path; \
   import sys, json; \
   sys.path.insert(0, 'shield/scripts'); \
   from compose_devcontainer import compose_devcontainer; \
   fm = Path('shield/skills/devcontainer/feature-map.json'); \
   cfg = compose_devcontainer(stacks=['python', 'node'], feature_map_path=fm); \
   print(json.dumps(cfg, indent=2))" > .devcontainer/devcontainer.json

Read the full file on GitHub · 142 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 142 lines · 37 tokens per session scan B 9e7434a6910f

Subscribe to this mod's changes

devcontainer-init is a skill published in the GitHub repository infraspecdev/tesseract (6 stars, last pushed 5mo ago), licensed MIT. It adds 37 tokens to every session and 1,262 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

devcontainer-init compared with skills from other repositories

devcontainer-init next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
devcontainer-initinfraspecdev/tesseractSkill65mo agoMITB37Claude Code
deploy-docker-composeomnigent-ai/omnigentSkill12ktodayApache-2.0A84Claude Code, Codex
bdd-container-updateNVIDIA-AI-Blueprints/video-search-and-summarizationSkill2.0ktodayApache-2.0A117Cursor
securing-kubernetes-on-cloudxalgorix/xalgorixSkill1.6ktodayApache-2.0A80Claude Code, Codex
detecting-privilege-escalation-in-kubernetes-podsxalgorix/xalgorixSkill1.6ktodayApache-2.0A40Claude Code, Codex
docker-socket-mountPurpleAILAB/DecepticonSkill6.9k13d agoApache-2.0B67Claude Code
managing-astro-local-envastronomer/agentsSkill465todayApache-2.0A63Claude Code