dev-environments
Installation
SKILL.md
dev-environments
Goal
Automate the setup, orchestration, and maintenance of identical development environments across the team (using DevContainers, DevSpace, or Docker Compose).
Steps
- Analyze Requirements: Parse the
PLAN.mdto identify all necessary languages, databases, and dependencies. - Configuration: Generate
DEVCONTAINER_TEMPLATE.jsonordocker-compose.ymldefining the required services. - Scripting: Write setup scripts for seeding local databases and pulling necessary environment variables.
- Verification: Run
docker-compose buildor equivalent to verify the environment spins up without errors.
Security & Guardrails
1. Skill Security
- Local Sandbox Escape: Do not map the entire host filesystem to the container (e.g.,
-v /:/host). Bind-mount only the project directory. - Privileged Mode Veto: Never run development containers with
--privilegedflags unless explicitly requested and warning the user of root compromises.
2. System Integration Security
- Port Collision & Exposure: Ensure local development environments do not accidentally bind ports to
0.0.0.0on the host, exposing unauthenticated dev databases to the local LAN. - Production Secret Pollution: The development setup scripts MUST use dummy/sample
.envvariables and verify they do not download production secrets.