Artifact management

From aj-geddes/useful-ai-prompts · View interactive version

Artifact management is an AI agent skill from the GitHub repository aj-geddes/useful-ai-prompts. Manage build artifacts, Docker images, and package registries. Configure artifact repositories, versioning, and distribution strategies.

How to use this skill

Skill file

Artifact Management

Table of Contents

Overview

Implement comprehensive artifact management strategies for storing, versioning, and distributing built binaries, Docker images, and packages across environments.

When to Use

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:

| Guide | Contents |

|---|---|

| Docker Registry Configuration | Docker Registry Configuration |

| GitHub Container Registry (GHCR) Push | GitHub Container Registry (GHCR) Push |

| npm Package Publishing | npm Package Publishing, Artifact Retention Policy, Artifact Versioning, GitLab Package Registry |

Best Practices

✅ DO

❌ DON'T

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.