UP

update-go-version

Update the Go programming language version across your entire project including config files and CI pipelines.

Install

mkdir -p .claude/skills/update-go-version && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/4051" && unzip -o skill.zip -d .claude/skills/update-go-version && rm skill.zip

Installs to .claude/skills/update-go-version

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Update Go version across the Tempo codebase (go.mod, tools/go.mod, Dockerfile, CI workflows, tools image tag)
109 charsno explicit “when” trigger
Beginner

Key capabilities

  • Standardizes Go version in go.mod
  • Updates tools/go.mod directives
  • Syncs Dockerfile base images
  • Retrieves latest CI tools tags
  • Automates build.mk configuration

How it works

Locates version variables within specific project files and replaces them using script-driven updates verified by build commands.

Inputs & outputs

You give it
New Go version number
You get back
Updated project configuration files

When to use update-go-version

  • Update Go version in go.mod
  • Sync Go version in Dockerfile
  • Update CI pipeline Go configuration
  • Refresh tools image tags

About this skill

Update Go Version

Updates the Go version across all relevant files in the Tempo codebase.

Usage

Invoke with /update-go-version

Steps to Perform

1. Get the version

Extract Go version from tools/Dockerfile.

This file is updated by a Renovate workflow automatically.

2. Check if go.mod files need updating

Check these files:

  • go.mod (main module)
  • tools/go.mod (tools module) If the versions already match, advise user that tools/Dockerfile needs to be updated and merged first to build new image, then stop.

3. Update go.mod files

Update the go X.Y.Z directive in both:

  • go.mod (main module)
  • tools/go.mod (tools module)

4. Update TOOLS_IMAGE_TAG in build/tools.mk

Fetch the latest tools image tag from Docker Hub:

curl -s "https://hub.docker.com/v2/repositories/grafana/tempo-ci-tools/tags?page_size=5&ordering=last_updated" | jq -r '.results[0].name'

Update TOOLS_IMAGE_TAG ?= main-XXXXXXX with the latest tag.

5. Verify changes compile

make vendor
make build

Files to Update

FileWhat to change
go.modgo X.Y.Z directive
tools/go.modgo X.Y.Z directive
build/tools.mkTOOLS_IMAGE_TAG value

When not to use it

  • Updating non-Go dependencies
  • Modifying application logic

Prerequisites

Docker Hub accessmakegit

Limitations

  • Limited to hardcoded paths in the codebase
  • Requires manual verification of build success
  • Specific to Tempo project structure

How it compares

Centralizes multi-file updates into a single operation, preventing configuration drift across the CI pipeline.

Compared to similar skills

update-go-version side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
update-go-version (this skill)16moReviewBeginner
upgrade-deps02moNo flagsAdvanced
qcc-release08moReviewIntermediate
gitlab-ci-patterns103moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry