← All skills
writing-dockerfiles
57 / 100 · Review before installing
Check before installing.
By ancoleman/ai-design-components (GitHub) · design · 530 stars · scanned at commit 76551b7
Writing optimized, secure, multi-stage Dockerfiles with language-specific patterns (Python, Node.js, Go, Rust), BuildKit features, and distroless images. Use when containerizing applications, optimizing existing Dockerfiles, or reducing image sizes.
Works with any agent that supports SKILL.md skills.
What this skill can do
Runs commands on your computer
This is disclosed by the author in the skill's SKILL.md or README.
Found in 6 places.
Show 3 more
Downloads and installs other software
The author does not mention this.
Found in 38 places.
Show 17 more
- skills/writing-dockerfiles/SKILL.md, line 237
pip install poetry==1.7.1 - skills/writing-dockerfiles/SKILL.md, line 244
/opt/venv/bin/pip install -r requirements.txt - skills/writing-dockerfiles/outputs.yaml, line 62
must_contain: ["FROM python:", "pip install", "requirements.txt"] - skills/writing-dockerfiles/references/buildkit-features.md, line 75
RUN pip install -r requirements.txt - skills/writing-dockerfiles/references/buildkit-features.md, line 82
pip install -r requirements.txt - skills/writing-dockerfiles/references/buildkit-features.md, line 92
pip install -r requirements.txt - skills/writing-dockerfiles/references/buildkit-features.md, line 163
apt-get update && apt-get install -y build-essential - skills/writing-dockerfiles/references/buildkit-features.md, line 229
pip install -r requirements.txt - skills/writing-dockerfiles/references/buildkit-features.md, line 253
pip install -r requirements.txt - skills/writing-dockerfiles/references/buildkit-features.md, line 323
RUN pip install awscli - skills/writing-dockerfiles/references/python-dockerfiles.md, line 55
pip install --no-cache-dir -r requirements.txt - skills/writing-dockerfiles/references/python-dockerfiles.md, line 97
pip install poetry==1.7.1 - skills/writing-dockerfiles/references/python-dockerfiles.md, line 144
/opt/venv/bin/pip install --no-cache-dir -r requirements.txt - skills/writing-dockerfiles/references/python-dockerfiles.md, line 245
RUN pip install -r requirements.txt - skills/writing-dockerfiles/references/python-dockerfiles.md, line 271
RUN pip install numpy pandas - skills/writing-dockerfiles/references/python-dockerfiles.md, line 278
RUN pip install numpy pandas - skills/writing-dockerfiles/references/python-dockerfiles.md, line 283
RUN pip install numpy pandas
and 18 more places
Sends data to these websites: aquasecurity.github.io
The author does not mention this.
Found in 3 places.
Reads your saved credentials, such as SSH keys or .env files
This is disclosed by the author in the skill's SKILL.md or README.
Found in 15 places.
Show 12 more
- skills/writing-dockerfiles/references/buildkit-features.md, line 369
mkdir -p ~/.ssh && \ - skills/writing-dockerfiles/references/buildkit-features.md, line 370
ssh-keyscan github.com >> ~/.ssh/known_hosts && \ - skills/writing-dockerfiles/references/buildkit-features.md, line 381
ssh-add ~/.ssh/id_rsa - skills/writing-dockerfiles/references/buildkit-features.md, line 400
--ssh github=~/.ssh/github_key \ - skills/writing-dockerfiles/references/buildkit-features.md, line 401
--ssh gitlab=~/.ssh/gitlab_key \ - skills/writing-dockerfiles/references/buildkit-features.md, line 409
RUN --mount=type=ssh,id=default,target=/root/.ssh/id_rsa,required=true,mode=0600 \ - skills/writing-dockerfiles/references/buildkit-features.md, line 610
echo "//registry.npmjs.org/:_authToken=$(cat /run/secrets/npm_token)" > ~/.npmrc && \ - skills/writing-dockerfiles/references/buildkit-features.md, line 612
rm ~/.npmrc - skills/writing-dockerfiles/references/nodejs-dockerfiles.md, line 648
echo "//registry.npmjs.org/:_authToken=$(cat /run/secrets/npm_token)" > ~/.npmrc && \ - skills/writing-dockerfiles/references/nodejs-dockerfiles.md, line 650
rm ~/.npmrc - skills/writing-dockerfiles/references/security-hardening.md, line 347
mkdir -p ~/.ssh && \ - skills/writing-dockerfiles/references/security-hardening.md, line 348
ssh-keyscan github.com >> ~/.ssh/known_hosts && \
Changes files outside its own folder
The author does not mention this.
Found in 16 places.
Show 13 more
- skills/writing-dockerfiles/references/buildkit-features.md, line 610
echo "//registry.npmjs.org/:_authToken=$(cat /run/secrets/npm_token)" > ~/.npmrc && \ - skills/writing-dockerfiles/references/buildkit-features.md, line 612
rm ~/.npmrc - skills/writing-dockerfiles/references/nodejs-dockerfiles.md, line 648
echo "//registry.npmjs.org/:_authToken=$(cat /run/secrets/npm_token)" > ~/.npmrc && \ - skills/writing-dockerfiles/references/nodejs-dockerfiles.md, line 650
rm ~/.npmrc - skills/writing-dockerfiles/references/rust-dockerfiles.md, line 625
mkdir -p ~/.cargo && \ - skills/writing-dockerfiles/references/rust-dockerfiles.md, line 626
echo "[registries.private]" > ~/.cargo/config.toml && \ - skills/writing-dockerfiles/references/rust-dockerfiles.md, line 627
echo "index = \"https://my-registry.com/git/index\"" >> ~/.cargo/config.toml && \ - skills/writing-dockerfiles/references/rust-dockerfiles.md, line 628
echo "[registry]" >> ~/.cargo/config.toml && \ - skills/writing-dockerfiles/references/rust-dockerfiles.md, line 629
echo "token = \"$(cat /run/secrets/cargo_token)\"" >> ~/.cargo/config.toml - skills/writing-dockerfiles/references/security-hardening.md, line 347
mkdir -p ~/.ssh && \ - skills/writing-dockerfiles/references/security-hardening.md, line 348
ssh-keyscan github.com >> ~/.ssh/known_hosts && \ - skills/writing-dockerfiles/references/security-hardening.md, line 465
echo "deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list - skills/writing-dockerfiles/scripts/validate_dockerfile.py, line 117
"yarn install": "/usr/local/share/.cache/yarn",
Safer alternatives
Low-risk skills in the same category (design) that look related. Check that one does what you need.
Install
Paste this into your terminal. It downloads exactly the version we scanned, not whatever is newest.
if [ -e ~/.agents/skills/'writing-dockerfiles' ] || [ -L ~/.agents/skills/'writing-dockerfiles' ]; then echo 'A skill folder named writing-dockerfiles already exists — not replacing it' >&2; false; else d=$(mktemp -d) && git clone --quiet --filter=blob:none --no-checkout 'https://github.com/ancoleman/ai-design-components' "$d" && git -C "$d" checkout --quiet '76551b7b19ebc667764ec75da14990d0aef8b6e5' -- 'skills/writing-dockerfiles' && mkdir -p ~/.agents/skills && cp -R "$d"/'skills/writing-dockerfiles' ~/.agents/skills/'writing-dockerfiles' && rm -rf "$d"; fi
Codex reads ~/.agents/skills directly. For Claude Code, Cursor, Copilot, Gemini CLI, Antigravity or OpenCode, also link it. For Claude Code: ln -s ~/.agents/skills/'writing-dockerfiles' ~/.claude/skills/'writing-dockerfiles' (other agents: ~/.cursor/skills, ~/.copilot/skills, ~/.gemini/skills, ~/.gemini/config/skills, ~/.config/opencode/skills). Or install through the finder skill, which does both.
Badge for your README
The badge for ancoleman/ai-design-components shows the score of its lowest-scoring skill.

[](https://zalavijaysinh.github.io/skilltrust/repos/ancoleman/ai-design-components/)
Score history
| Date | Version | Score |
|---|
| 2026-11-08 | 76551b7 | 100 |
| 2026-11-07 | 76551b7 | 57 |