artifact-management
Manage build artifacts, Docker images, and package registries. Configure artifact repositories, versioning, and distribution strategies.
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o artifact-management.zip https://jpskill.com/download/21338.zip && unzip -o artifact-management.zip && rm artifact-management.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/21338.zip -OutFile "$d\artifact-management.zip"; Expand-Archive "$d\artifact-management.zip" -DestinationPath $d -Force; ri "$d\artifact-management.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
artifact-management.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
artifact-managementフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 5
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
[Skill 名] artifact-management
アーティファクト管理
目次
概要
構築されたバイナリ、Dockerイメージ、およびパッケージを環境間で保存、バージョン管理、配布するための包括的なアーティファクト管理戦略を実装します。
使用する場面
- Dockerイメージレジストリ管理
- パッケージの公開とバージョン管理
- ビルドアーティファクトの保存と取得
- コンテナイメージの最適化
- アーティファクト保持ポリシー
- マルチレジストリ配布
- 依存関係のキャッシュ
クイックスタート
最小限の動作例:
# 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)
リファレンスガイド
references/ ディレクトリにある詳細な実装:
| ガイド | 内容 |
|---|---|
| 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 |
ベストプラクティス
✅ 実施すべきこと
- アーティファクトにはセマンティックバージョニングを使用する
- デプロイ前にイメージスキャンを実装する
- 古いアーティファクトの保持ポリシーを設定する
- Dockerイメージにはマルチステージビルドを使用する
- アーティファクトに署名し、検証する
- アーティファクトの不変性を実装する
- アーティファクトのメタデータを文書化する
- 特定のベースイメージバージョンを使用する
- 脆弱性スキャンを実装する
- レイヤーを積極的にキャッシュする
- コミットSHAでイメージにタグ付けする
- 保存のためにアーティファクトを圧縮する
❌ 実施すべきでないこと
latestタグを唯一の識別子として使用する- アーティファクトにシークレットを保存する
- スキャンせずにアーティファクトをプッシュする
- 信頼できないベースイメージを使用する
- アーティファクトの検証をスキップする
- 公開されたアーティファクトを上書きする
- バイナリとソースのアーティファクトを混在させる
- イメージレイヤーの最適化を無視する
- 機密データを含むビルドログを保存する
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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 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
- 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
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (2,783 bytes)
- 📎 references/docker-registry-configuration.md (822 bytes)
- 📎 references/github-container-registry-ghcr-push.md (1,500 bytes)
- 📎 references/npm-package-publishing.md (1,797 bytes)
- 📎 scripts/validate-pipeline.sh (502 bytes)