--- name: docker version: 1.1.0 description: Container-based development for isolated, reproducible environments. Use when running npm commands, installing packages, executing code, or managing project dependencies. Trigger phrases include "npm install", "run the build", "start the server", "install package", or any code execution request. --- # Docker Development Skill Execute all package installations and code execution inside Docker containers. This keeps the host machine clean and ensures consistent environments across projects. --- ## Behavioral Classification **Type**: Autonomous Execution **Directive**: EXECUTE, DON'T ASK This skill enforces Docker-first development automatically. When you request npm/node operations, commands are executed inside Docker without asking for permission. **Enforcement Behavior**: - Blocks host-machine npm/node commands - Suggests or transforms commands to use `docker exec` - Automatically checks container status before operations --- ## Quick Start For new projects, see **[setup.md](setup.md)** for the complete first-time setup guide. **Minimal setup**: ```bash # 1. Start container docker compose --profile dev up -d # 2. Verify running docker ps --filter "name=my-project" # 3. Run commands in container docker exec my-project-dev-1 npm install docker exec my-project-dev-1 npm test docker exec my-project-dev-1 npm run build ``` --- ## ENFORCEMENT RULES ### BLOCKED: Never Run on Host **These commands are BLOCKED on the host machine:** ``` npm install, npm ci, npm run, npm test, npm exec npx yarn add, yarn install, yarn run pnpm add, pnpm install, pnpm run node