用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/kubernetes-sigs/agent-sandbox --skill bump-go-version命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | bump-go-version |
| description | Bumps the Go version to the latest release across go.mod, tools.mod, and Dockerfiles. |
This skill guides AI agents to update the Go version used throughout the agent-sandbox repository to the latest stable Go release. It ensures consistency across Go module definitions (go.mod, tools.mod, toolchain) and container image base layers (Dockerfile).
Determine the Latest Go Version:
go1.26.3). Execute this from the repository root:
./.agents/skills/bump-go-version/scripts/get-latest-go
go mod edit -go, use the numeric format 1.x (e.g., 1.26). This is the language version and should not specify a patch version.go mod edit -toolchain, use the go1.x.y format (e.g., go1.26.3).Dockerfiles, identify the corresponding official golang image tag (e.g., golang:1.26.3).Locate Target Files and Context:
FROM, go, and toolchain lines. Execute this from the repository root:
./.agents/skills/bump-go-version/scripts/find-files
go.mod, tools.mod, and Dockerfile* files in the repository along with their current version directives. (Note: site/go.mod is automatically excluded by the script).Update Go Module Directives:
toolchain directive in each go.mod and tools.mod file using go mod edit. Do not update the go language version directive by default, as bumping the minimum language version forces that requirement onto all downstream consumers of our modules.go mod edit -toolchain=go1.26.3 go.mod
go mod edit -toolchain=go1.26.3 tools.mod
go directive using go mod edit -go=1.x (specifying only the major/minor version, e.g., 1.26, without a patch version).
go mod edit -go=1.26 go.mod
site/go.mod. site/go.mod is a Hugo theme configuration file, not a Go code module, and modifying it or running Go tools against it will break the documentation build.Update Dockerfiles:
Dockerfile (or Dockerfile.*) identified by the script, inspect the file for any FROM golang:<version> or FROM --platform=$BUILDPLATFORM golang:<version> lines.golang:1.26.2 to golang:1.26.3).debian, distroless) unless specifically required.Verify and Test:
go mod tidy in directories containing go.mod files to verify module resolution and clean up dependencies.go mod tidy inside site/. Running Go's native go mod tidy in the Hugo site directory will fail or strip theme dependencies.make all (which includes lint(ing), building, and unit testing) from the repository root to ensure the project builds and tests pass successfully with the new Go version.scripts/get-latest-go: Fetches the latest stable Go release version string.scripts/find-files: Scans the repository and outputs all go.mod, tools.mod, and Dockerfile files along with their current version context lines (excluding site/go.mod).AGENTS.md and CONTRIBUTING.md)