<< All versions
Skill v1.0.0
currentAutomated scan100/100aj-geddes/useful-ai-prompts/artifact-management
──Details
PublishedOctober 1, 2026 at 12:21 AM
Content Hashsha256:9a6741e4ef40df6e...
Git SHA3f5182cfd739
──Files
Files (1 file, 2.7 KB)
SKILL.md2.7 KBactive
SKILL.md · 104 lines · 2.7 KB
version: "1.0.0" name: artifact-management description: > Manage build artifacts, Docker images, and package registries. Configure artifact repositories, versioning, and distribution strategies.
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
- 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
# Dockerfile with multi-stage build for optimizationFROM node:18-alpine AS dependenciesWORKDIR /appCOPY package*.json ./RUN npm ci --only=productionFROM node:18-alpine AS builderWORKDIR /appCOPY package*.json ./RUN npm ciCOPY . .RUN npm run buildFROM node:18-alpine AS runtimeWORKDIR /appCOPY --from=dependencies /app/node_modules ./node_modulesCOPY --from=builder /app/dist ./distCOPY package*.json ./EXPOSE 3000HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \CMD node healthcheck.jsCMD ["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
- Use semantic versioning for artifacts
- Implement image scanning before deployment
- Set retention policies for old artifacts
- Use multi-stage builds for Docker images
- Sign and verify artifacts
- Implement artifact immutability
- Document artifact metadata
- Use specific base image versions
- Implement vulnerability scanning
- Cache layers aggressively
- Tag images with commit SHA
- Compress artifacts for storage
❌ DON'T
- Use
latesttag as sole identifier - Store secrets in artifacts
- Push artifacts without scanning
- Use untrusted base images
- Skip artifact verification
- Overwrite published artifacts
- Mix binary and source artifacts
- Ignore image layer optimization
- Store build logs with sensitive data