Update all direct Go module dependencies to their latest versions, tidy the module graph, verify tests pass, and commit the result. Use when you want to bump deps, address CVEs, or do routine dependency maintenance.
74
92%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
View guide
Passed
No findings from the security scan
Update all direct Go module dependencies to their latest versions, clean up the module graph, verify the build still works, and commit.
git status. If there are uncommitted changes, stop and ask the user how to proceed.find . -name go.mod -not -path '*/vendor/*'. Work through each module directory in turn.For each module directory:
cd into the directory.go get -u ./... to upgrade all direct dependencies to their latest minor/patch versions.go mod tidy to prune unused indirect deps and update go.sum.vendor/ directory exists, run go mod vendor to sync it.go build ./... — fix any compilation errors before continuing.go test ./... — if tests fail, investigate whether the failure is pre-existing or caused by the update.
go get <module>@<version>, then re-tidy.golangci-lint, make check-style), run it and fix new issues introduced by the updated deps.Generate a human-readable summary of what changed:
git diff -- '*/go.mod'Group changes by type:
go.mod, go.sum, and vendor/ (if present): do not stage unrelated files.chore(deps): update Go dependencies
<paste summary of notable upgrades here>go directive in go.mod — use /dev-workflows:update-go-version to update the module's go directive.replace directive in go.mod, preserve it unless the user explicitly asks to remove it.b16652d
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.