skills/go-latest-version/SKILL.md
Guidelines and procedures for querying, verifying, and upgrading Go module dependencies and toolchains. Activate when adding or upgrading Go packages, auditing go.mod, addressing dependency vulnerabilities, or verifying toolchain versions.
npx skillsauth add danicat/godoctor go-latest-versionInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill establishes a rigorous process for verifying, querying, and updating Go modules, libraries, and toolchains to their absolute latest stable releases. It prevents "version hallucination" by leveraging live Go proxies and standard tool commands instead of relying on stale offline training weights.
[!IMPORTANT] Go libraries evolve constantly. Internal database cutoffs are guaranteed to be outdated. Always fetch the real-time source of truth from the live registry. Trust live data over static assumptions.
The official Go Module Proxy (proxy.golang.org) is the authoritative source for all versioned Go modules. You can query it directly using simple shell commands, Go CLI, or HTTP endpoints.
go list (Recommended for Local Workspaces)If you are inside a Go workspace, the fastest way to check available versions is the go list command:
# List all tagged versions of a module
go list -m -versions github.com/modelcontextprotocol/go-sdk
# Find the latest resolved stable version
go list -m github.com/modelcontextprotocol/go-sdk@latest
If the Go CLI is unavailable or you need to bypass local module caches, use the proxy's public JSON/Text endpoints. Replace the module path with lowercase, and convert dots to slashes as per Go Proxy specifications:
# Format: https://proxy.golang.org/<escaped-module-path>/@v/list
# Example for github.com/modelcontextprotocol/go-sdk:
curl -s https://proxy.golang.org/github.com/modelcontextprotocol/go-sdk/@v/list
# Retrieve the latest version details
curl -s https://proxy.golang.org/github.com/modelcontextprotocol/go-sdk/@v/latest
To ensure compatibility with modern Go language features (such as Go 1.24's generic improvements or alias rules), always verify the latest Go compiler release.
Query the official Go website's JSON API to find active Go compiler releases:
curl -s "https://go.dev/dl/?mode=json" | grep -o '"version": "[^"]*"' | head -n 5
This returns a list of the latest stable active releases (e.g., go1.24.3, go1.23.6).
When upgrading a module within godoctor, always follow this sequentially gated pipeline to preserve workspace health and compile-safety:
Retrieve the exact version using the latest-software-versions skill or live Go Proxy checks. Avoid pre-releases (-rc, -alpha, -beta) unless explicitly requested.
Use GoDoctor's add_dependency tool, or run go get combined with go mod tidy to resolve the package:
go get <module-path>@<version>
go mod tidy
Verify that the package upgrade did not introduce breaking changes or type mismatches by compiling the entire workspace:
# Run GoDoctor's strict quality gate
godoctor smart_build
[!WARNING] Remember Go's Import Path Rule: Go modules at version
v2or higher must include the major version suffix in their import paths (e.g.,/v2,/v3), unless they are ingopkg.in.Correct:
go get github.com/foo/bar/[email protected]
Incorrect:go get github.com/foo/[email protected](will fail or fetch legacy v1)
Keep this live list of standard MCP and Go tools as high-quality reference baselines:
github.com/modelcontextprotocol/go-sdk @ v1.6.0github.com/golangci/golangci-lint @ v1.64.5golang.org/x/tools/gopls @ v0.18.1log/slog (Go 1.21+)github.com/jackc/pgx/v5 @ v5.7.2development
Guidelines and templates for structuring software development goals and ideas into actionable, bounded tasks using Context/Todo/AC, enforced by the DoR gate. Activate when scoping user requests, decomposing RFCs into tasks, or creating a new task file.
development
Guidelines and templates for authoring Request for Comments (RFCs). Activate when proposing significant features/refactorings, exploring design alternatives under high ambiguity, or gathering technical consensus.
development
Pre-release checklist and quality gate to verify codebase health, docs, and security before interacting with Git. Activate when preparing to tag/publish a release, concluding milestones, or running final verification on a pull request.
development
Highly actionable step-by-step checklist for diagnosing and resolving Go compilation errors, type errors, build/test failures, and runtime issues. Activate on any build or execution failure.