Artifact Management

Artifact Management

Gives a coding agent a skill for managing build artifacts, Docker images and package registries, covering versioning, retention and multi-registry distribution.

Skill files6 files

references/

scripts/

templates/

SKILL.md103 lines
1
---
2
name: artifact-management
3
description: >
4
Manage build artifacts, Docker images, and package registries. Configure
5
artifact repositories, versioning, and distribution strategies.
6
---
7
8
# Artifact Management
9
10
## Table of Contents
11
12
- [Overview](#overview)
13
- [When to Use](#when-to-use)
14
- [Quick Start](#quick-start)
15
- [Reference Guides](#reference-guides)
16
- [Best Practices](#best-practices)
17
18
## Overview
19
20
Implement comprehensive artifact management strategies for storing, versioning, and distributing built binaries, Docker images, and packages across environments.
21
22
## When to Use
23
24
- Docker image registry management
25
- Package publication and versioning
26
- Build artifact storage and retrieval
27
- Container image optimization
28
- Artifact retention policies
29
- Multi-registry distribution
30
- Dependency caching
31
32
## Quick Start
33
34
Minimal working example:
35
36
```dockerfile
37
# Dockerfile with multi-stage build for optimization
38
FROM node:18-alpine AS dependencies
39
WORKDIR /app
40
COPY package*.json ./
41
RUN npm ci --only=production
42
43
FROM node:18-alpine AS builder
44
WORKDIR /app
45
COPY package*.json ./
46
RUN npm ci
47
COPY . .
48
RUN npm run build
49
50
FROM node:18-alpine AS runtime
51
WORKDIR /app
52
COPY --from=dependencies /app/node_modules ./node_modules
53
COPY --from=builder /app/dist ./dist
54
COPY package*.json ./
55
56
EXPOSE 3000
57
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
58
CMD node healthcheck.js
59
60
CMD ["node", "dist/server.js"]
61
62
// ... (see reference guides for full implementation)
63
```
64
65
## Reference Guides
66
67
Detailed implementations in the `references/` directory:
68
69
| Guide | Contents |
70
|---|---|
71
| [Docker Registry Configuration](references/docker-registry-configuration.md) | Docker Registry Configuration |
72
| [GitHub Container Registry (GHCR) Push](references/github-container-registry-ghcr-push.md) | GitHub Container Registry (GHCR) Push |
73
| [npm Package Publishing](references/npm-package-publishing.md) | npm Package Publishing, Artifact Retention Policy, Artifact Versioning, GitLab Package Registry |
74
75
## Best Practices
76
77
### ✅ DO
78
79
- Use semantic versioning for artifacts
80
- Implement image scanning before deployment
81
- Set retention policies for old artifacts
82
- Use multi-stage builds for Docker images
83
- Sign and verify artifacts
84
- Implement artifact immutability
85
- Document artifact metadata
86
- Use specific base image versions
87
- Implement vulnerability scanning
88
- Cache layers aggressively
89
- Tag images with commit SHA
90
- Compress artifacts for storage
91
92
### ❌ DON'T
93
94
- Use `latest` tag as sole identifier
95
- Store secrets in artifacts
96
- Push artifacts without scanning
97
- Use untrusted base images
98
- Skip artifact verification
99
- Overwrite published artifacts
100
- Mix binary and source artifacts
101
- Ignore image layer optimization
102
- Store build logs with sensitive data
103

© AJ Geddes · MIT · source · posted by @OpenSourceBuffGuy on promptparty.com

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 14,621 prompts

More by @OpenSourceBuffGuy

See all
Sea turtle carrying floating film studio island prompt image

Sea turtle carrying floating film studio island

Draws a giant sea turtle carrying a floating island film studio through a starry sky, where fairies polish rough film strips into golden film.

image-prompt, nano-banana, 3d-render, cartoon, fantasy-world, creatures, animals, whimsical, dreamy, cinematic, dramatic-lighting, vibrant-colors, bokeh, miniature, widescreen, night-scene, illustration, concept-art, surreal, storytelling, clay-3d

Desert buggy escapes drones past industrial outpost prompt image

Desert buggy escapes drones past industrial outpost

Builds a 15-second desert chase video where a racer in an armored buggy escapes drones past an industrial outpost, using five reference images with set jobs.

video-prompt, hailuo, action, multi-shot, timed-beats, camera-movement, reference-image, character-consistency, negative-prompt, cinematic, sci-fi, cars, landscape, aerial-view, tracking-shot, photorealistic, sound-effects, structured-output, long-form, widescreen

1 view
Cozy Pixel Art Farm Island Village prompt image

Cozy Pixel Art Farm Island Village

Draws a cozy 16-bit pixel-art farming village across six small islands joined by bridges, with exact counts for buildings, animals and crops.

image-prompt, gpt-image, pixel-art, isometric, game-assets, concept-art, maps, worldbuilding, cozy, vibrant-colors, ocean, landscape, wide-shot, widescreen, game-development, video-games, structured-output, whimsical, summer, high-angle, aerial-view, animals, negative-prompt, cityscape

1 view

Reviews

Loading reviews…

Discussion

Loading comments…