devcontainers

devcontainers is a skill for Claude Code, Codex from digitalocean-labs/do-app-platform-skills. It costs 52 tokens per session (1,915 once invoked), scanned D, original, MIT.

A setup for running an application and its supporting services in development containers, which are isolated, repeatable environments for software work. It is designed for applications deployed on DigitalOcean App Platform.

In plain words
What is it for?
It is for adding a development-container setup and configuring local PostgreSQL, MySQL, MongoDB, Valkey, Kafka, S3-compatible storage, or OpenSearch services.
Why use it?
It helps developers test locally with services and settings closer to production, reducing reliance on repeated remote deployments.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

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.

agentmods
npx agentmods add skills/digitalocean-labs/do-app-platform-skills/devcontainers
Any agent
npx skills add digitalocean-labs/do-app-platform-skills --skill devcontainers
Clone the repo
git clone --depth 1 https://github.com/digitalocean-labs/do-app-platform-skills

Made for: Claude Code, Codex.

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 devcontainers

README.md
[![agentmods](https://agentmods.dev/badge/skills/digitalocean-labs/do-app-platform-skills/devcontainers.svg)](https://agentmods.dev/skills/digitalocean-labs/do-app-platform-skills/devcontainers)
Your own site
<a href="https://agentmods.dev/skills/digitalocean-labs/do-app-platform-skills/devcontainers"><img src="https://agentmods.dev/badge/skills/digitalocean-labs/do-app-platform-skills/devcontainers.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,915 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. Scan, not verified.
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.00052 $0.01915
Opus 5 $0.00026 $0.00958
Sonnet 5 $0.00010 $0.00383
Haiku 4.5 $0.00005 $0.00192

Measured 6d ago against content hash 3c0e6ab62a51, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade D, and why

devcontainers scanned grade D with 2 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 6d 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.

Asks for rootmediumPrivilege escalation

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

| Permission denied | Run: `sudo chown -R vscode:vscode /home/vscode` |

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

rm -rf /tmp/devcontainer-ref
skills/devcontainers/SKILL.md · 255 lines

How it starts

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

Dev Containers Skill

Set up local development environments with production parity for DigitalOcean App Platform applications.

Primary value: 30-second feedback loops instead of 7-minute deploy cycles.

Quick Decision

What do you need?
├── New project setup → Workflow 1
├── Existing App Platform app → Workflow 2
└── CLI-only testing (no IDE) → See cli-workflow.md

Quick Start: Clone and Copy

# Clone the reference devcontainer
git clone --depth 1 https://github.com/bikramkgupta/do-app-devcontainer.git /tmp/devcontainer-ref

# Copy to your project
cp -r /tmp/devcontainer-ref/.devcontainer /path/to/your-project/

# Clean up
rm -rf /tmp/devcontainer-ref

Then customize COMPOSE_PROFILES in .devcontainer/devcontainer.json:

"containerEnv": {
  "COMPOSE_PROFILES": "app,postgres,minio"
}

Available Profiles

Profile Service Use When
postgres PostgreSQL 18 SQL database
mysql MySQL 8 MySQL database
mongo MongoDB 8 Document database
valkey Valkey 8 Redis-compatible cache
kafka Confluent Kafka 7.7 Message streaming
minio RustFS S3-compatible storage
opensearch OpenSearch 3.0 Full-text search

Connection Strings

Service Connection String
PostgreSQL postgresql://postgres:password@postgres:5432/app
MySQL mysql://mysql:mysql@mysql:3306/app
MongoDB mongodb://mongodb:mongodb@mongo:27017/app?authSource=admin
Valkey redis://valkey:6379
Kafka kafka:9092
RustFS http://minio:9000 (creds: rustfsadmin/rustfsadmin)
OpenSearch http://opensearch:9200

Inside container: Use service names (e.g., postgres:5432) From host: Use docker compose port to find mapped ports


Workflow 1: New Project Setup

Trigger: "I'm building a [language] app with [services]"

  1. Copy .devcontainer/ from reference repo (see Quick Start)
  2. Set COMPOSE_PROFILES based on required services
  3. Create env-devcontainer.example with connection strings
  4. Open in VS Code/Cursor → "Reopen in Container"

Read the full file on GitHub · 255 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. 6d ago First seen · 255 lines · 52 tokens per session scan D 3c0e6ab62a51

Subscribe to this mod's changes

devcontainers is a skill published in the GitHub repository digitalocean-labs/do-app-platform-skills (36 stars, last pushed 6d ago), licensed MIT. It adds 52 tokens to every session and 1,915 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories