Implement comprehensive artifact management strategies for storing, versioning, and distributing built binaries, Docker images, and packages across environments.
When to Use
Docker image registry management
Package publication and versioning
Build artifact storage and retrieval
Container image optimization
Artifact retention policies
Multi-registry distribution
Dependency caching
Quick Start
Minimal working example:
# Dockerfile with multi-stage build for optimization
FROM node:18-alpine AS dependencies
WORKDIR /app
COPY package*.json ./
RUN npm ci --only=production
FROM node:18-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
FROM node:18-alpine AS runtime
WORKDIR /app
COPY --from=dependencies /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY package*.json ./
EXPOSE 3000
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
CMD node healthcheck.js
CMD ["node", "dist/server.js"]
// ... (see reference guides for full implementation)
Reference Guides
Detailed implementations in the references/ directory:
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: aj-geddes-useful-ai-prompts-artifact-management3description: Artifact Management4---56# Artifact Management78## Table of Contents910- [Overview](#overview)11- [When to Use](#when-to-use)12- [Quick Start](#quick-start)13- [Reference Guides](#reference-guides)14- [Best Practices](#best-practices)1516## Overview1718Implement comprehensive artifact management strategies for storing, versioning, and distributing built binaries, Docker images, and packages across environments.1920## When to Use2122- Docker image registry management23- Package publication and versioning24- Build artifact storage and retrieval25- Container image optimization26- Artifact retention policies27- Multi-registry distribution28- Dependency caching2930## Quick Start3132Minimal working example:3334```dockerfile35# Dockerfile with multi-stage build for optimization36FROM node:18-alpine AS dependencies37WORKDIR /app38COPY package*.json ./39RUN npm ci --only=production4041FROM node:18-alpine AS builder42WORKDIR /app43COPY package*.json ./44RUN npm ci45COPY . .46RUN npm run build4748FROM node:18-alpine AS runtime49WORKDIR /app50COPY --from=dependencies /app/node_modules ./node_modules51COPY --from=builder /app/dist ./dist52COPY package*.json ./5354EXPOSE 300055HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \56 CMD node healthcheck.js5758CMD ["node", "dist/server.js"]5960// ... (see reference guides for full implementation)61```6263## Reference Guides6465Detailed implementations in the `references/` directory:6667| Guide | Contents |68|---|---|69| [Docker Registry Configuration](references/docker-registry-configuration.md) | Docker Registry Configuration |70| [GitHub Container Registry (GHCR) Push](references/github-container-registry-ghcr-push.md) | GitHub Container Registry (GHCR) Push |71| [npm Package Publishing](references/npm-package-publishing.md) | npm Package Publishing, Artifact Retention Policy, Artifact Versioning, GitLab Package Registry |7273## Best Practices7475### ✅ DO7677- Use semantic versioning for artifacts78- Implement image scanning before deployment79- Set retention policies for old artifacts80- Use multi-stage builds for Docker images81- Sign and verify artifacts82- Implement artifact immutability83- Document artifact metadata84- Use specific base image versions85- Implement vulnerability scanning86- Cache layers aggressively87- Tag images with commit SHA88- Compress artifacts for storage8990### ❌ DON'T9192- Use `latest` tag as sole identifier93- Store secrets in artifacts94- Push artifacts without scanning95- Use untrusted base images96- Skip artifact verification97- Overwrite published artifacts98- Mix binary and source artifacts99- Ignore image layer optimization100- Store build logs with sensitive data101102---103> Converted and distributed by [TomeVault](https://tomevault.io/claim/aj-geddes) — claim your Tome and manage your conversions.104<!-- tomevault:4.0:skill_md:2026-04-11 -->
Run npx skillmds@latest add tomevault-io/aj-geddes-useful-ai-prompts-artifact-management in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Artifact Management It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
tomevault-io (@tomevault-io) published this skill. Their other Agent Skills are listed on their SkillMD profile.