Dockerfile
Skill KhaiTrang1995/agentic-awesome-kits/kits/devops/docker-kit/.claude/skills/dockerfile
Generate an optimized Dockerfile — multi-stage build, security hardening, small image size.From its SKILL.md
npx -y skills add KhaiTrang1995/agentic-awesome-kits --skill dockerfileAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 8 stars8 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.2 KB, 275 tokens by cl100k_base, as published. Nobody here has run it
/dockerfile — Generate a Dockerfile
Input examples
/dockerfile .NET 10 Minimal API --prod
/dockerfile Angular 20 nginx --prod
/dockerfile Python FastAPI
/dockerfile Go service --prod
/dockerfile --dev fullstack .NET + Angular (docker-compose dev)
Process
- Detect the stack → pick the right base image
- Multi-stage build: build stage → runtime stage
- Security hardening
- L1 approval → Write
Mandatory rules
- Multi-stage build — separate build and runtime
- Non-root user — NEVER run the container as root
- Specific tag —
mcr.microsoft.com/dotnet/aspnet:10.0-alpine, NEVERlatest - COPY before RUN — leverage layer caching (copy csproj/package.json first, restore, then copy source)
- .dockerignore — exclude bin/, obj/, node_modules/, .git/
- HEALTHCHECK — mandatory for production
- NEVER hardcode secrets/connection strings — use env vars
- Alpine-based whenever possible (small image size)
Output
Dockerfile
.dockerignore
References
- @.claude/rules/docker-conventions.md
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.