Agent Skill for Docker image development - Dockerfile best practices, CI testing patterns, and Docker Compose orchestration.
- Dockerfile Best Practices - Multi-stage builds, layer optimization, security
- CI Testing Patterns - Test Docker images reliably in CI pipelines
- Docker Compose - Service orchestration, health checks, networking
- Docker Bake - Multi-platform builds with BuildKit
- Security - Vulnerability scanning, non-root users, secret management
- Windows / WSL2 - Run docker through WSL when Docker Desktop uses the WSL2 backend (separate
docker-via-wslskill)
This package bundles two skills:
docker-development— Dockerfile, compose, bake, CI testing, and security patterns.docker-via-wsl— for AI agents running on a Windows host outside WSL: re-issue everydocker/docker composecommand inside WSL (viawsl.exe) so Docker Desktop's WSL2 backend does not corrupt bind-mount paths.
The docker-development skill activates automatically when working with:
| File Pattern | Description |
|---|---|
Dockerfile, Dockerfile.*, *.dockerfile |
Container image definitions |
docker-compose.yml, compose.yml |
Multi-container orchestration |
docker-bake.hcl |
BuildKit bake configurations |
.dockerignore |
Build context optimization |
The docker-via-wsl skill activates when an agent on a Windows shell (Git Bash/MSYS/PowerShell, outside WSL) is about to run any docker command.
Add the Netresearch marketplace once, then browse and install skills:
# Claude Code
/plugin marketplace add netresearch/claude-code-marketplacenpx (skills.sh)
Install with any Agent Skills-compatible agent:
npx skills add https://github.com/netresearch/docker-development-skill --skill docker-development
npx skills add https://github.com/netresearch/docker-development-skill --skill docker-via-wslDownload the latest release and extract to your agent's skills directory.
git clone https://github.com/netresearch/docker-development-skill.gitcomposer require netresearch/docker-development-skillRequires netresearch/composer-agent-skill-plugin.
The skill activates automatically when working on:
- Dockerfile development
- Docker Compose configurations
- Docker Bake multi-platform builds
- CI/CD pipelines for container images
- Container troubleshooting
- "Create a multi-stage Dockerfile for a Node.js app"
- "Set up GitHub Actions to build and push Docker images"
- "Why is my nginx config test failing in CI?"
- "Add health checks to my docker-compose.yml"
- "Create a docker-bake.hcl for multi-platform builds"
# Bypass entrypoint for direct testing
docker run --rm --entrypoint php myimage -v# Mock upstream DNS
docker run --rm --add-host backend:127.0.0.1 nginx-image nginx -t# Create .env before validation
cp .env.example .env
sed -i 's/PLACEHOLDER/test_value/g' .env
docker compose config > /dev/nullExtended documentation in the skill references/ directories:
docker-development/references/ci-testing.md- Comprehensive CI testing patternsdocker-via-wsl/references/diagnosis-and-fix.md- Diagnose and fix a wrong bind mount caused by driving Docker from a Windows shell
- Fork the repository
- Create a feature branch
- Submit a pull request
This project uses split licensing:
- Code (scripts, workflows, configs): MIT
- Content (skill definitions, documentation, references): CC-BY-SA-4.0
See the individual license files for full terms.