No slash command · from trove-infra
Provides Dockerfile and Docker Compose best practices including multi-stage builds, layer caching, and security patterns. Auto-activates on Docker files.
Ships in trove-infra. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.
# Use specific version tags, not :latest
FROM python:3.13-slim AS base
# Set working directory early
WORKDIR /app
# Copy dependency files first (cache layer)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code last (changes most often)
COPY . .
# Run as non-root user
RUN adduser --disabled-password --gecos '' appuser
USER appuser
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
Use multi-stage builds to reduce image size:
FROM node:22-alpine AS builder
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY . .
RUN pnpm build
FROM nginx:alpine
COPY --from=builder /app/dist /usr/share/nginx/html
COPY unless you need URL download or tar extractionnode_modules, .git, .env, test filesWhat SKILL.md sets; muted values are Claude Code's defaults
dockerfile; docker compose; containerize
Three short reads, in order
3 skills in this plugin
npx claudepluginhub bravew/trove --plugin trove-infraOther plugins' skills for the same job