Skip to content
manage-mod logo

Manage-Mod

manage-mod

Go モジュールを管理する。「依存関係を更新」「go mod」「モジュール更新」「依存関係確認」「go.mod 更新」「パッケージ更新」「依存関係を整理」「Go バージョン変更」などで起動。更新可能なモジュールの一覧、危険度評価、段階的更新、バージョン管理をサポート。

SKILL.md

Full skill instructions

Manage-Mod

Go モジュールを管理します。依存関係の更新、危険度評価、Go バージョン管理をサポート。

引数

  • --check: 更新可能なモジュールを確認のみ(更新しない)
  • --version: Go バージョンを確認・変更
  • --set <version>: Go バージョンを指定したバージョンに変更
  • --help: ヘルプを表示

依存関係更新

1. 現在の依存関係を確認

cat go.mod
go list -m -u all

2. 更新可能なモジュールを分析

各モジュールについて以下を評価:

危険度基準説明
🟢 安全パッチバージョン (v1.2.3 → v1.2.4)バグ修正のみ、後方互換性保証
🟡 注意マイナーバージョン (v1.2.0 → v1.3.0)新機能追加、非推奨警告あり
🔴 危険メジャーバージョン (v1.x.y → v2.0.0)破壊的変更、API の変更

3. 更新実行

# バックアップ作成
cp go.mod go.mod.backup
cp go.sum go.sum.backup

# 特定モジュールの更新
go get -u github.com/​xxx/​yyy@latest

# すべての依存関係を更新
go get -u ./​...

# go.mod の整理
go mod tidy

# 更新後の確認
go build ./​...
go test ./​...

4. 結果レポート

✅ 依存関係更新完了

更新されたモジュール:
- github.com/​xxx/​yyy: v1.2.0 → v1.3.0 (🟡 マイナー)
- github.com/​aaa/​bbb: v2.1.0 → v2.1.1 (🟢 パッチ)

更新をスキップ:
- github.com/​ccc/​ddd: v1.0.0 → v2.0.0 (🔴 メジャー - 手動確認推奨)

推奨アクション:
1. `go test ./​...` でテストを実行
2. メジャーバージョンアップは個別に検討

Go バージョン管理

1. 現在のバージョンを確認

# go.mod の Go バージョンを確認
grep "^go " go.mod

# システムの Go バージョンを確認
go version

2. バージョン変更(--set オプション使用時)

# go.mod の Go バージョンを変更
go mod edit -go=1.22

# 依存関係の整理
go mod tidy

3. 互換性チェック

# ビルド確認
go build ./​...

# テスト確認
go test ./​...

Go バージョンの主な変更点

バージョン主な変更
1.24tool ディレクティブ、go run キャッシング改善
1.23イテレータ関数(range over func)
1.22ループ変数スコープ変更、PGO デフォルト有効化
1.21標準ライブラリの min/​max/​clear 関数
1.20カバレッジプロファイル、PGO サポート

重要な注意事項

  • ✅ メジャーバージョンアップは慎重に
  • ✅ 更新後は必ずビルドとテストを実行
  • ✅ 依存関係更新は独立したコミットに
  • ✅ CHANGELOG を確認
  • ❌ 後方互換性に注意(Go バージョンを上げると古いバージョンでビルドできない可能性)

More Other skills

Delegate independent tasks to specialized agents working concurrently with isolated context.

295.4K 206.3K
View

Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand colors or style guidelines, visual formatting, or company design standards apply.

179.7K 100.1K
View

Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with colors/fonts that you can apply to any artifact that has been creating, or can generate a new theme on-the-fly.

179.7K 89.5K
View

A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill whenever asked to write some sort of internal communications (status reports, leadership updates, 3P updates, company newsletters, FAQs, incident reports, project updates, etc.).

179.7K 76.1K
View

Fundamental design principles for writing maintainable, testable Python code.

40.2K 21.9K
View

Modern responsive layouts using container queries, fluid typography, CSS Grid, and mobile-first strategies.

40.2K 20K
View

Generate Playwright tests from scenarios using interactive browser exploration and validation.

39.7K 18.2K
View

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

40.2K 14.7K
View

GDPR-compliant data handling with consent management, data subject rights, and privacy controls.

40.2K 14.3K
View

Python error handling patterns including input validation, exception hierarchies, and partial failure handling. Use when implementing validation logic, designing exception strategies, handling batch processing failures, or building robust APIs.

40.2K 13.5K
View

Detailed multi-file refactor planning with safety checks and rollback guidance.

39.7K 13K
View