
Golang Dependency Management
This is a comprehensive dependency management guide that walks you through go.mod workflows, semantic versioning, and MVS quirks. It enforces a critical rule: AI agents must ask before adding dependencies, checking if the standard library already solves the problem. You get practical commands for upgrading (prefer go get -u=patch for safety), vendoring strategies, the tools.go pattern for pinning CLI versions, and references for vulnerability scanning with govulncheck. The skill pushes back against dependency bloat by treating every package as a long term maintenance commitment. Useful when adding libraries, resolving version conflicts, setting up Dependabot, or auditing what's inflating your binary size.
- skills.sh installs
- 41.4K
- GitHub stars
- 3.8K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add samber/cc-skills-golang --skill golang-dependency-management --agent claude-codeInstalls into .claude/skills of the current project.
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?
Sponsors
Details
- Repository
- github.com/samber/cc-skills-golang
- Categories
- Security, Release Management, Automation & Workflows, Go
- First seen
- Apr 16, 2026
More from samber/cc-skills-golang
All 47- Golang Structs Interfaces41.3K
- Golang Cli41.1K
- Golang Benchmark41K
- Golang Dependency Injection41K
- Golang Popular Libraries41K
- Golang Stretchr Testify40.9K
- Golang Continuous Integration40.9K
- Golang Grpc40.7K
- Golang Samber Lo40K
- Golang Stay Updated40K
- Golang Samber Do39.8K
- Golang Samber Slog39.8K
- Golang Samber Oops39.7K
- Golang Samber Mo39.7K
- Golang Samber Hot39.7K
- Golang Samber Ro39.6K
- Golang Spf13 Cobra38.6K
- Golang Swagger38.6K
- Golang Graphql38.5K
- Golang Google Wire38.3K
- Golang Spf13 Viper38.3K
- Golang Uber Fx38.1K
- Golang Uber Dig38K
- Golang How To37.9K