docker-dev
/docker-dev
Assistance with Local Development using Docker (Compose, DevContainers). Use when: docker, compose, local dev, devcontainer, dev environment, containerize, dockerization.
- Author
- andreibesleaga ↗
- Repository
- gabbe ↗
- Licence
- CC-BY-4.0
- Last repository change
- 24.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 24.10.2026, without references to retired models or APIs.
CC-BY-4.0, otwarta.
What it does and when to use it
Assistance with Local Development using Docker (Compose, DevContainers). Use when: docker, compose, local dev, devcontainer, dev environment, containerize, dockerization.
Original author description
Assistance with Local Development using Docker (Compose, DevContainers). Use when: docker, compose, local dev, devcontainer, dev environment, containerize, dockerization.
How it works
- Goal
- Capabilities
- Steps
- Deliverables
- Security & Guardrails
SKILL.md preview
--- name: docker-dev description: "Assistance with Local Development using Docker (Compose, DevContainers). Use when: docker, compose, local dev, devcontainer, dev environment, containerize, dockerization." license: CC-BY-SA-4.0 metadata: source: "agents/skills/ops/docker-dev.skill.md" tags: "ops" core: "false" context_cost: "medium" --- # Docker Dev Skill ## Goal To set up robust, reproducible local development environments using Docker technologies. ## Capabilities ### 1. Docker Compose (Local Dev) - **Generate `compose.yaml`**: Define services (App + DB + Redis). - **Watch Mode**: Configure `develop.watch` for hot-reloading (sync + rebuild). - **Networking**: Ensure services can talk to each other (and to host if needed). ### 2. DevContainers (VS Code) - **Configuration**: Generate `.devcontainer/devcontainer.json`. - **Features**: Add standard features (git, node, python, docker-in-docker). - **Extensions**: Pre-install VS Code extensions for the team. ### 3. Optimization - **Multi-stage Builds**: Separate build-deps from runtime-deps. - **Caching**: Optimize layer ordering for faster builds. - **Distroless**: Use distroless images for production (keep shells in dev). ## Steps 1. **Prefer Compose Watch**: Always recommend `docker compose watch` over legacy volume mounts for code sync. 2. **User Mapping**: Ensure file permissions work by mapping non-root user (UID/GID) inside container. 3. **Persistence**: Use Docker Volumes for DB data so it survives restarts. ## Deliverables - `compose.yaml` with watch config. - `.devcontainer/` folder. - `Dockerfile` (Target: dev & prod). ## Security & Guardrails ### 1. Skill Security (Docker Dev) - **Container Escape Mitigation**: Developer containers must avoid running in `--privileged` mode or mounting the host's root filesystem (`-v /:/host`) unless absolutely necessary, to mitigate the risk of a compromised dev environment rooting the developer's laptop. - **Trusted Base Images**: Dockerfiles must inherit from official, verified registries (e.g., `node:22-alpine` over a random community image) and use explicit SHAs or tagged versions rather than the mutable `:latest` tag. ### 2. System Integration Security - **Credential Segregation**: The local development `compose.yaml` and `.env` files must NEVER contain production secrets. Use dummy credentials (e.g., `POSTGRES_PASSWORD=devpassword`) to ensure accidental container leaks do not expose live systems. - **Multi-Stage Build Sanitization**: Ensure the transition from `dev` to `prod` build stages aggressively strips developer tools (curl, vim, compilers) and test suites, minimizing the attack surface of the final runtime image. ### 3. LLM & Agent Guardrails - **Host Network Exfiltration Warning**: If a user prompts the agent to map standard internal ports to `0.0.0.0` (all interfaces) rather than `127.0.0.1` (localhost), the agent must issue a strong warning about the risk of exposing the local development server to the public internet/local coffee shop network. - **Root User Restriction**: The LLM must be trained to automatically insert `USER appuser` directives near the end of generated Dockerfiles and vehemently resist prompts that request removing it "to make file permissions easier."
Versions
The database has no other skills named docker-dev.
Database snapshot: 13.11.2026 · package version 553ea05c9aef (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100pave-env
Set up local development environments — devcontainers, Docker Compose, one-command setup, dev/prod parity. Use when asked to "set up dev environment", "devcontainer", "docker compose for dev", "local development setup", or "one command to run". - 90dev-environments
Set up, configure, and maintain local/remote development environments. Use when: setup dev environment, configure docker compose, build devcontainer. - 100devcontainers
Use when the user asks to create, configure, or troubleshoot dev containers, devcontainer.json files, or GitHub Codespaces setups. Creates and configures devcontainer.json, adds features and lifecycle hooks, supports Docker Compose dev environments, and validates container setup… - 100trove-docker
Dockerfile and Docker Compose best practices. Auto-activates on Docker files. Use when: dockerfile; docker compose; containerize. - 95skill-148
Expert guidance for Development Containers (devcontainers) in VS Code. Create, configure, and manage devcontainer.json files, use Templates and Features, integrate with Docker/Docker Compose, and troubleshoot common issues. Use when working with devcontainers, containerized… - 100docker-patterns
Dockerfile best practices, multi-stage builds, docker-compose for dev/prod. Use when setting up containerization for a NestJS backend or Next.js frontend, or configuring a local dev environment with docker-compose.