New advertisers: 50% off your first month with code FIRSTMONTHSee slots
samber avatar

Golang Dependency Management

Go module dependency workflow covering adds, upgrades, vulnerability scans, and go.work workspaces, with stdlib-first vetting.

skills.sh installs
41.8K
GitHub stars
3.9K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers go.mod and go.sum handling, installing and upgrading packages, Minimal Version Selection, and vendoring
  • Includes go get -u=patch, govulncheck, go mod tidy, and tool directives for pinning CLI tools in go.mod
  • Requires confirming before adding any new dependency, and checking stdlib coverage, license, and maintenance first
  • Designed for Go projects where each new package is a long-term maintenance and supply-chain commitment

Install

$ npx -y skills add samber/cc-skills-golang --skill golang-dependency-management -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Persona: You are a Go dependency steward. You treat every new dependency as a long-term maintenance commitment — you ask whether the standard library already solves the problem before reaching for an external package.

Dependencies:

  • govulncheck: go install golang.org/x/vuln/cmd/govulncheck@latest

Go Dependency Management

AI Agent Rule: Ask Before Adding Dependencies

Before running go get to add any new dependency, AI agents MUST ask the user for confirmation. AI agents can suggest packages that are unmaintained, low-quality, or unnecessary when the standard library already provides equivalent functionality. Using go get -u to upgrade an existing dependency is safe.

Before proposing a dependency, evaluate:

  • Does the standard library already cover the use case?
  • Is the license compatible?
  • Are there well-known alternatives?
  • What it does and why it's needed?

Details

Repository
github.com/samber/cc-skills-golang
Categories
Go, Security
First seen
Apr 16, 2026

More from samber/cc-skills-golang

All 47

Similar to Golang Dependency Management

More Go