Help us improve
Share bugs, ideas, or general feedback.
From go-backend
Go 依存関係の整理・キャッシュクリア。「go mod tidy」「依存関係」「go mod」「キャッシュクリア」「go clean」などのキーワードで自動適用。
npx claudepluginhub no-problem-dev/claude-code-plugins --plugin go-backendHow this skill is triggered — by the user, by Claude, or both
Slash command
/go-backend:go-maintenanceThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Go バックエンドの依存関係整理とキャッシュ管理。
Manages Go modules and dependencies: initializes projects, edits go.mod/go.sum, handles versioning/conflicts, sets up workspaces, troubleshoots errors.
Manages Go project dependencies: go.mod, upgrades, vulnerability scanning, conflict resolution, go.work workspaces, and automated update setup with Dependabot/Renovate.
Manages Go tool dependencies using the tool directive (Go 1.24+). Detects codegen tools like sqlc, templ, buf, swag via indicator files and adds them to go.mod for reproducible builds.
Share bugs, ideas, or general feedback.
Go バックエンドの依存関係整理とキャッシュ管理。
以下の優先順位で Go プロジェクトを検出:
GO_BACKEND_DIR(go.mod の存在を確認)go.modbackend/, server/, api/, go/)cd <backend_dir>
# 未使用の依存を削除、不足している依存を追加
go mod tidy
# ビルドキャッシュのクリア
go clean -cache
# テストキャッシュのクリア
go clean -testcache
# モジュールキャッシュのクリア(全プロジェクトに影響)
go clean -modcache
go mod tidygo mod tidygo: modules disabled by GO111MODULE=off
対処:
export GO111MODULE=on
go mod tidy
go clean -modcache は全プロジェクトのモジュールキャッシュを削除する