gen-devcontainer

gen-devcontainer is a skill for Claude Code from thettwe/nyann. It costs 246 tokens per session (1,868 once invoked), scanned A, original, MIT.

A generator for a devcontainer.json file, which tells VS Code or GitHub Codespaces how to create a shared development environment for a project’s main programming language.

In plain words
What is it for?
Use it to create or refresh a Codespaces or VS Code container setup, including forwarded ports and resource limits. It is for development environments, not production Docker images or diagnosing broken containers.
Why use it?
It avoids making each developer install the right runtime, GitHub CLI, Git LFS, and editor extensions by hand. It also keeps the setup repeatable for the team.

Skill for Claude Code

Written for Claude Code: arguments in frontmatter.

Part of the nyann plugin — 41 skills, 41 commands, 3 hooks shipped together

Good fit Use it to create or refresh a Codespaces or VS Code container setup, including forwarded ports and resource limits. It is for development environments, not production Docker images or diagnosing broken containers.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thettwe/nyann/gen-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 thettwe/nyann --skill gen-devcontainer
Clone the repo
git clone --depth 1 https://github.com/thettwe/nyann

Made for: Claude Code.

Or install nyann, the plugin that ships this one along with the rest of its 41 skills, 41 commands, 3 hooks.

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 gen-devcontainer

README.md
[![agentmods](https://agentmods.dev/badge/skills/thettwe/nyann/gen-devcontainer/github.svg)](https://agentmods.dev/skills/thettwe/nyann/gen-devcontainer)
Your own site
<a href="https://agentmods.dev/skills/thettwe/nyann/gen-devcontainer"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/gen-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 gen-devcontainer

Your own site · 80×15
<a href="https://agentmods.dev/skills/thettwe/nyann/gen-devcontainer"><img src="https://agentmods.dev/badge/skills/thettwe/nyann/gen-devcontainer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 246 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,868 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00246 $0.01868
Opus 5 $0.00123 $0.00934
Sonnet 5 $0.00049 $0.00374
Haiku 4.5 $0.00025 $0.00187

Measured 7d ago against content hash 7c3e0a4b08e3, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

gen-devcontainer scanned grade A with 0 findings 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 7d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/gen-devcontainer/SKILL.md · 173 lines

How it starts

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

gen-devcontainer

Wraps bin/gen-devcontainer.sh. Emits a devcontainer.json; preview- by-default; idempotent on apply.

When to trigger

  • User wants a Codespaces-ready repo and there's no .devcontainer/ directory yet.
  • User wants to refresh an existing devcontainer.json after upgrading nyann (base image tags + extension lists shift with the snapshot_version comment in the file).
  • User wants to add forwarded ports / cpus / memory to an existing devcontainer (use --port 3000 --cpus 4 --memory 8gb).

When NOT to trigger

  • User wants a production Dockerfile — that's an entirely different concern; devcontainer.json is dev-environment only.
  • User wants to debug a broken devcontainer build — open the existing file with them; this skill generates fresh, not diagnoses.
  • User is on a non-Codespaces, non-VS Code editor — the file still works under JetBrains' Dev Containers plugin and devcontainer open (CLI), but flag the broader VS Code-first defaults.

Picking the language

Read StackDescriptor.primary_language from bin/detect-stack.sh:

StackDescriptor.primary_language --language
typescript / javascript node
python python
go go
rust rust
dart dart
java / kotlin java
csharp / dotnet dotnet
php php
ruby ruby
swift swift
elixir elixir
cpp / c cpp

For polyglot monorepos (workspaces[] present), pick the language of the most-important workspace OR ask the user — running multiple devcontainers from a single repo is uncommon and confusing.

Preview, then apply

Always preview first. Show the rendered JSON; wait for confirmation:

bin/gen-devcontainer.sh --language python --name my-app

Then on confirmation:

bin/gen-devcontainer.sh --language python --name my-app \
  --target . --apply

If the destination already matches: log "unchanged" and exit. If it differs: print the unified diff to stderr, exit 3, prompt the user before re-running with --force-overwrite.

Read the full file on GitHub · 173 lines

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. 7d ago First seen · 173 lines · 246 tokens per session scan A 7c3e0a4b08e3

Subscribe to this mod's changes

gen-devcontainer is a skill published in the GitHub repository thettwe/nyann (6 stars, last pushed 12d ago), licensed MIT. It adds 246 tokens to every session and 1,868 once invoked, about $0.0012 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deploy

Elixir/Phoenix deployment patterns — Dockerfile, fly.toml, runtime.exs, mix release, rel/ overlays. Use when configuring Fly.io, Docker, CI/CD, health checks, or production migrations.

oliver-kriska/claude-elixir-phoenix · 46 tokens

daily-working

End-to-end pipeline: pull a task from the project's task tracker by ID (Redmine or GitHub Issues today, more addable via a new adapter), sanity-check and impact-assess it against the codebase before touching anything, implement it with the Claude CLI, verify the result in a real browser via the Claude Chrome extension…

tms-tungnguyen3/daily_working · 98 tokens

companion-clis

Companion CLIs for Runpod workflows — HuggingFace, GitHub, Docker, and AWS.

gaelic-ghost/socket · 26 tokens

strut

Operate and manage Docker Compose stacks on VPS infrastructure with the strut CLI. Use for any strut task — deploying and releasing services, database backup and restore, debugging production issues, detecting config drift, rotating secrets and keys, setting up monitoring, configuring domains and SSL, validating…

gfargo/skills · 67 tokens

dockerized-service-release-deployment-workflow

Create a Dockerized-service release contract with clean GitHub Actions builds, main-anchored tags, immutable digest manifests, published-release deployments, production approval, health checks, and exact-digest rollback.

gaelic-ghost/socket · 49 tokens

linux-development-vm-workflow

Prepare and reset persistent Linux development guests on macOS. Use when comparing container machine, Lima or Colima, and full VMs for distros, init systems, services, custom boot, disks, Rosetta, or nested virtualization.

gaelic-ghost/socket · 54 tokens