samber avatar

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-code

Installs 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

Recommended

More Security
1convex avatarconvex-authzconvex/agent-skillsAudit and harden a Convex app's authorization: identity-from-arg impersonation, missing per-document ownership checks, public queries leaking data by a client-s41.3Kskills.sh installs
2convex avatarconvex-reviewerconvex/agent-skillsConvex code reviewer — security, auth, validators, performance, and pattern checks for code in a convex/ directory. Use to review or audit Convex functions befo41.3Kskills.sh installs
3convex avatarconvex-optimizeconvex/agent-skillsAudit and optimize an existing Convex app: security, scale, upgrades, observability.41.2Kskills.sh installs
4samber avatargolang-continuous-integrationsamber/cc-skills-golangCI/CD pipeline configuration using GitHub Actions for Golang projects — testing, linting, SAST, security scanning, code coverage, Dependabot, Renovate, GoReleas40.9Kskills.sh installs
5neondatabase avatarneon-functionsneondatabase/agent-skillsLong-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASE_URL injected automatically and compute that runs next to your data40.1Kskills.sh installs
6samber avatargolang-swaggersamber/cc-skills-golangGolang OpenAPI/Swagger documentation with swaggo/swag — annotation comments (@Summary, @Param, @Success, @Router, @Security), swag init code generation, framewo38.6Kskills.sh installs