docker-local

docker-local is a skill for Claude Code, Codex from edutrul/drupal-ai. It costs 27 tokens per session (491 once invoked), scanned B, original, MIT.

A guide to local development with custom Docker Compose setups. Docker Compose runs related services such as PHP, a database, caching, and search in separate containers.

In plain words
What is it for?
Use it to start, rebuild, stop, and inspect containers; run Drush; execute commands inside services; and import or export MySQL databases.
Why use it?
It gives consistent commands for starting services, running project commands, viewing logs, and moving database data without relying on locally installed versions.

Skill for Claude CodeCodex

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/edutrul/drupal-ai/docker-local
Any agent
npx skills add edutrul/drupal-ai --skill docker-local
Clone the repo
git clone --depth 1 https://github.com/edutrul/drupal-ai

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 docker-local

README.md
[![agentmods](https://agentmods.dev/badge/skills/edutrul/drupal-ai/docker-local.svg)](https://agentmods.dev/skills/edutrul/drupal-ai/docker-local)
Your own site
<a href="https://agentmods.dev/skills/edutrul/drupal-ai/docker-local"><img src="https://agentmods.dev/badge/skills/edutrul/drupal-ai/docker-local.svg" alt="Measured on agentmods" height="20"></a>
Per session 27 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 491 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. 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 $0.00027 $0.00491
Opus 5 $0.00014 $0.00246
Sonnet 5 $0.00005 $0.00098
Haiku 4.5 $0.00003 $0.00049

Measured 4d ago against content hash 80a48794719f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

docker-local 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 4d 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.

sudo lsof -i :80
.claude/skills/docker-local/SKILL.md · 73 lines

What it actually says

Docker Compose Local Development

You are working with custom Docker Compose local development environments (non-DDEV).

Environment Detection

ls -la docker-compose*.yml compose*.yml .env* Makefile docker/ scripts/ 2>/dev/null

Common Commands

docker compose up -d              # Start in background
docker compose up -d --build      # Start with rebuild
docker compose down               # Stop and remove containers
docker compose down -v            # Also remove volumes (DATA LOSS!)
docker compose exec <service> <cmd>
docker compose run --rm <service> <cmd>  # One-off (if not running)
docker compose ps && docker compose logs -f <service>

Drupal Docker Patterns

Service Type Common Names
PHP/Web php, web, app, drupal, php-fpm
Database db, mysql, mariadb, postgres
Cache redis, memcached
Search solr, elasticsearch
# Drush
docker compose exec php ./vendor/bin/drush cr

# MySQL import/export
docker compose exec -T db mysql -u root -p<password> <database> < dump.sql
docker compose exec db mysqldump -u root -p<password> <database> > dump.sql

Troubleshooting

# Port conflicts
sudo lsof -i :80

# Container won't start
docker compose logs <service>
docker compose down && docker compose up -d --build

# Permissions
docker compose exec php chown -R www-data:www-data /var/www/html/web/sites/default/files

# Network: containers reach each other by service name (e.g. host: db)
docker network inspect <project>_default

Environment Variables

Docker Compose auto-loads .env:

COMPOSE_PROJECT_NAME=myproject
MYSQL_ROOT_PASSWORD=root
MYSQL_DATABASE=drupal

Performance on macOS: use :cached volume flag and named volumes for vendor/.

Files

What ships with it

1 file 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. 4d ago First seen · 73 lines · 27 tokens per session scan B 80a48794719f

Subscribe to this mod's changes

docker-local is a skill published in the GitHub repository edutrul/drupal-ai (71 stars, last pushed 3mo ago), licensed MIT. It adds 27 tokens to every session and 491 once invoked, about $0.0001 per session on Opus 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-08-30.

Related

Other skills, from other repositories

redteam-container-detail-pack

Domain routing and boundary guidance for authorized container and orchestration security testing, including Docker escape, Kubernetes privilege escalation, image vulnerabilities, and service mesh bypasses. Use when a task belongs to the container testing domain and needs scope, evidence, pivot, or exit criteria.

Netw0rkNoob/VulnClaw · 59 tokens

kubernetes

Diagnose and fix Kubernetes pods, services, networking, storage, and rollout failures with kubectl. Safety-first, read-only by default.

vladkesler/initrunner · 31 tokens

centos-stream-knowledge-patch

Enterprise Linux 7 -> 8 -> 9 Enterprise Linux 8.10 -> 9.8 Enterprise Linux 9.8 -> 10.2.

Nevaberry/nevaberry-plugins · 11 tokens

docker-knowledge-patch

Use this patch when work touches Docker Engine runtime, networking, images, the Engine API, Go integrations, Buildx, BuildKit, Dockerfile, or Compose.

Nevaberry/nevaberry-plugins · 7 tokens

devcontainers-knowledge-patch

Use this skill when configuring, building, running, or publishing Dev Containers, Features, and Templates. It is especially useful for lifecycle ordering, environment and user selection, metadata merging, lockfiles, dependency ordering, and current CLI behavior.

Nevaberry/nevaberry-plugins · 9 tokens

operate-comfyui

Install, configure, operate, validate, and troubleshoot self-hosted ComfyUI through PawFlow relays, including host execution with local=true and service routing with relaylocal=true. Use for ComfyUI installation or repair, adding models or custom nodes, API workflow creation and submission, image/video/audio…

allcolor/PawFlow-Agents · 87 tokens