← Back to list

image-manager
by shiiman
⭐ 1🍴 0📅 Jan 14, 2026
SKILL.md
name: image-manager description: Docker イメージを管理する。「イメージ一覧」「docker images」「イメージ確認」「ビルドして」「docker build」「イメージ作成」「イメージ取得」「docker pull」「イメージダウンロード」「イメージの履歴」「docker history」などで起動。 allowed-tools: [Bash, Read, Glob]
Image Manager
Docker イメージの管理を行います。
対応操作
| 操作 | トリガー例 | コマンド |
|---|---|---|
| 一覧表示 | 「イメージ一覧」「images」 | docker images |
| ビルド | 「ビルドして」「build」 | docker build |
| 取得 | 「イメージ取得」「pull」 | docker pull |
| 履歴 | 「イメージ履歴」「history」 | docker history |
実行手順
1. 意図の判定
ユーザーの発話から操作を判定:
- 一覧系: 「一覧」「images」「確認」→
docker images - ビルド系: 「ビルド」「build」「作成」→
docker build - 取得系: 「取得」「pull」「ダウンロード」→
docker pull - 履歴系: 「履歴」「history」「レイヤー」→
docker history
2. イメージ一覧表示
docker images --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}\t{{.CreatedSince}}"
dangling イメージも含める場合:
docker images -a --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
3. イメージ操作
ビルド:
まず Dockerfile の存在確認:
ls Dockerfile docker-compose.yml compose.yml 2>/dev/null
docker-compose.yml がある場合:
docker compose build [service]
Dockerfile のみの場合:
docker build -t <tag> .
# または
docker build -t <tag> -f <dockerfile> .
オプション:
--no-cache: キャッシュなしでビルド--target <stage>: マルチステージビルドのターゲット指定
イメージ取得:
docker pull <image>:<tag>
履歴表示:
docker history <image> --format "table {{.CreatedBy}}\t{{.Size}}"
4. 出力フォーマット
## イメージ一覧
| リポジトリ | タグ | ID | サイズ | 作成日時 |
|-----------|------|-----|--------|----------|
| ... | ... | ... | ... | ... |
合計: {N} イメージ
総サイズ: {total_size}
## ビルド完了
イメージ: {repository}:{tag}
サイズ: {size}
レイヤー数: {layers}
ビルド時間: {duration}
## イメージ取得完了
イメージ: {image}:{tag}
ダイジェスト: {digest}
サイズ: {size}
注意事項
- ✅ ビルド時はタグを指定することを推奨
- ✅
latestタグの使用は避けることを推奨 - ✅ マルチステージビルドを推奨(サイズ削減)
- ❌
docker rmi -fは使用しない(cleanup コマンドに委譲)
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon