.claude/skills/docker-build/SKILL.md
Build Docker images with proper tagging, cache busting, and build tracking. Prevents stale image issues.
npx skillsauth add markus41/claude docker-buildInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Build a Docker image with proper tagging and tracking: $ARGUMENTS
Determine the image tag - Use git SHA or timestamp, NEVER use :latest alone
GIT_SHA=$(git rev-parse --short HEAD)
TIMESTAMP=$(date +%Y%m%d-%H%M%S)
TAG="${GIT_SHA}-${TIMESTAMP}"
Build with cache busting when needed
docker build --no-cache --pull -t <registry>/<image>:${TAG} .docker build -t <registry>/<image>:${TAG} .:<branch>-latest for convenienceVerify the build
docker images | grep <image>
docker inspect <registry>/<image>:${TAG} | jq '.[0].Created'
Push to registry
docker push <registry>/<image>:${TAG}
docker push <registry>/<image>:<branch>-latest
Verify in registry
# For ACR:
az acr repository show-tags --name <registry> --repository <image> --orderby time_desc --top 5
# For Docker Hub:
docker manifest inspect <registry>/<image>:${TAG}
:latest tagimagePullPolicy: IfNotPresent with mutable tagstools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.