docker-build

Build Docker images with proper tagging, cache busting, and build tracking. Prevents stale image issues.

Best use case

docker-build is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Build Docker images with proper tagging, cache busting, and build tracking. Prevents stale image issues.

Teams using docker-build should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/docker-build/SKILL.md --create-dirs "https://raw.githubusercontent.com/SufficientDaikon/archon/main/skills/docker-build/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/docker-build/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How docker-build Compares

Feature / Agentdocker-buildStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Build Docker images with proper tagging, cache busting, and build tracking. Prevents stale image issues.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Docker Build with Tracking

Build a Docker image with proper tagging and tracking: $ARGUMENTS

## Process
1. **Determine the image tag** - Use git SHA or timestamp, NEVER use `:latest` alone
   ```bash
   GIT_SHA=$(git rev-parse --short HEAD)
   TIMESTAMP=$(date +%Y%m%d-%H%M%S)
   TAG="${GIT_SHA}-${TIMESTAMP}"
   ```

2. **Build with cache busting when needed**
   - For production builds: `docker build --no-cache --pull -t <registry>/<image>:${TAG} .`
   - For dev builds: `docker build -t <registry>/<image>:${TAG} .`
   - Always also tag as `:<branch>-latest` for convenience

3. **Verify the build**
   ```bash
   docker images | grep <image>
   docker inspect <registry>/<image>:${TAG} | jq '.[0].Created'
   ```

4. **Push to registry**
   ```bash
   docker push <registry>/<image>:${TAG}
   docker push <registry>/<image>:<branch>-latest
   ```

5. **Verify in registry**
   ```bash
   # 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}
   ```

## Anti-Patterns (DO NOT)
- Never build with just `:latest` tag
- Never skip pushing after building
- Never deploy without verifying the image exists in the registry
- Never use `imagePullPolicy: IfNotPresent` with mutable tags

Related Skills

mcp-builder

7
from SufficientDaikon/archon

Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).

Fluent Builder

7
from SufficientDaikon/archon

> Design chainable, type-safe builder APIs that transform complex object construction into readable method chains.

Docker Production Build

7
from SufficientDaikon/archon

> Build minimal, secure, production-ready Docker images using multi-stage builds, standalone output, and process management.

docker-mcp-ops

7
from SufficientDaikon/archon

Docker container ops via MCP

YAML Prompt Library

7
from SufficientDaikon/archon

> Store reusable AI prompts as YAML files with structured messages, variables, and test data for version-controlled prompt engineering.

writing-skills

7
from SufficientDaikon/archon

Use when creating new skills, editing existing skills, or verifying skills work before deployment

Writing Plans — TDD-Sized Task Breakdown

7
from SufficientDaikon/archon

> **Type:** Rigid process (follow structure exactly)

wireframing

7
from SufficientDaikon/archon

Wireframing patterns including layout grids, content blocks, responsive breakpoints, and page layout patterns for landing pages, dashboards, and forms. Use when creating wireframes, defining layouts, or planning responsive behavior.

windows-registry-editor

7
from SufficientDaikon/archon

Expert Windows Registry editor and optimizer via PowerShell. Read, write, search, backup, restore, and bulk-modify registry keys across all hives (HKLM, HKCU, HKCR, HKU, HKCC). Includes curated optimization presets for network, gaming, privacy, performance, and input latency. Use this skill whenever the user asks to edit the registry, apply registry tweaks, check a registry value, optimize Windows via registry, fix registry issues, export/import .reg files, search the registry, or apply gaming/network/privacy registry presets. Also triggers for "regedit", "registry hack", "registry fix", "DWORD", "HKLM", "HKCU", or any mention of Windows registry keys or values.

windows-network-optimizer

7
from SufficientDaikon/archon

Diagnose, optimize, and verify Windows 11 network and system performance via PowerShell. Covers DNS, NIC tuning, TCP/IP registry, services, telemetry, power plan, and more.

windows-error-debugger

7
from SufficientDaikon/archon

Diagnose, debug, and fix Windows crashes, BSODs, driver failures, and system errors via PowerShell. Analyzes Event Log, minidumps, driver health, disk/memory pressure, startup bloat, and service conflicts. Builds a growing knowledge base of resolved issues per machine. Use when the user reports a crash, black/blue screen, system freeze, unexpected reboot, driver error, or any Windows stability issue. Also triggers for "BSOD", "blue screen", "black screen", "crash", "system error", "bugcheck", "minidump", "driver failure", "unexpected shutdown", "paging file too small", "system hang", "Windows froze", "PC crashed", "kernel error", or any mention of Windows Event Log errors.

White-Label Config

7
from SufficientDaikon/archon

> Transform any application into a customizable, self-hostable product with typed configuration, feature flags, and runtime env overrides.