sb-dev/openquant / .agents/skills/docker-build-strategies
docker-build-strategies
FlaggedUse this skill when writing, reviewing, or optimizing Dockerfiles, even if the user just says their image is too large, their build is slow, or they need to harden a container for production. Covers multi-stage builds, layer caching, .dockerignore, non-root users, and image size optimization.
Security report
FlaggedStatic analysis of one exact version. It reduces risk and shows evidence; it does not certify that a skill is safe.
- Commit
209caf28d017aff022e33fb2d9a1a3f508572b51- Content hash
f6376cf97e353c4ec469f3037486603e6ade3b4642f65fee14f389f9f0bbc613- Scanned
- 2026-11-17
- Scanner version
- skillxone-scan-1.0.0
- Policy version
- 0.1-draft
- Decision
- 7 open critical or high findings.
- Verification expires
- Not applicable
Findings (7 high, 1 medium, 5 low, 1 info)
The skill refers to a token store or the system keychain, a location that holds private data or credentials.
--mount=type=secret,id=npmrc,target=/root/.npmrc,required=false \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to a token store or the system keychain, a location that holds private data or credentials.
--mount=type=secret,id=npmrc,target=/root/.npmrc,required=false \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to a token store or the system keychain, a location that holds private data or credentials.
docker buildx build --secret id=npmrc,src=$HOME/.npmrc .Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to a token store or the system keychain, a location that holds private data or credentials.
RUN --mount=type=secret,id=npmrc,target=/root/.npmrc,required=false \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials.
mkdir -p -m 0700 /root/.ssh && \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials.
ssh-keyscan github.com >> /root/.ssh/known_hosts && \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to a token store or the system keychain, a location that holds private data or credentials.
--secret id=npmrc,src=$HOME/.npmrc \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to a token store or the system keychain, a location that holds private data or credentials. Severity lowered from high because it appears in a code comment.
# Invoke with: docker buildx build --secret id=npmrc,src=$HOME/.npmrc .Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it.
- The `RUN` that fetches over SSH populates `/root/.ssh/known_hosts` in the same step (for example with `ssh-keyscan`) instead of disabling host-key checking.Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it.
mkdir -p -m 0700 /root/.ssh && \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it.
ssh-keyscan -t ed25519 github.com >> /root/.ssh/known_hosts && \Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to cloud provider credentials, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it.
2. **Do NOT** `COPY` credential files into the build context: `.npmrc`, `.pypirc`, `.netrc`, `pip.conf`, Maven `settings.xml`, `.env`, cloud credentials (`~/.aws/credentials`, `~/.config/gcloud/`, service-account JSON files, `~/.azure/`), …Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill refers to SSH keys, a location that holds private data or credentials. Severity lowered from high because the surrounding text warns against it.
2. **Do NOT** `COPY` credential files into the build context: `.npmrc`, `.pypirc`, `.netrc`, `pip.conf`, Maven `settings.xml`, `.env`, cloud credentials (`~/.aws/credentials`, `~/.config/gcloud/`, service-account JSON files, `~/.azure/`), …Suggested fix: Do not read credential stores or private files. If the task needs a credential, ask the user to provide it through the environment.
The skill ships an executable script. Review it before allowing an agent to run it.
#!/usr/bin/env bashSuggested fix: None required. Informational.
Checks run
- prompt-injection
- dangerous-commands
- credentials
- network
- file-access
- integrity
Checks skipped
- dependencies: No dependency manifest in the skill directory.
- gitleaks: gitleaks is not installed on this host.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 319k | Updated | Claude CodeCodex | Verified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |