golang-dependency-management

Automate Go dependency vulnerability scanning and conflict resolution with govulncheck and directives.

Updated Jun 27, 2026
One-click install
npx skills add https://github.com/LuigiAPCPereira/evolutiondocs --skill golang-dependency-management-luigiapcpereira
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-dependency-management
Source: https://github.com/LuigiAPCPereira/evolutiondocs/tree/main/.agents/skills/golang-dependency-management
Command: npx skills add https://github.com/LuigiAPCPereira/evolutiondocs --skill golang-dependency-management-luigiapcpereira

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires go, git, govulncheck, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies and automates critical Go dependency management tasks, including vulnerability scanning, version control, and conflict resolution, to enhance code quality and security.

Core Features & Use Cases

  • Vulnerability Scanning: Detects known vulnerabilities in dependencies using govulncheck.
  • Version Control: Manages go.mod and go.sum files for secure dependency resolution.
  • Conflict Resolution: Handles dependency conflicts using replace and exclude directives.
  • Use Case: For a project with complex dependencies, this Skill helps automate the process of updating dependencies and maintaining a secure and reliable codebase.

Quick Start

Use the golang-dependency-management skill to update all dependencies to the latest patch version with go get -u=patch ./....

Frequently Asked Questions about golang-dependency-management

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate vulnerability scanning for Go dependencies?

Resolve Go dependency conflicts using `replace` and `exclude` directives within your `go.mod` file. This approach redirects the build to use a specific fork or version, bypassing incompatible modules and ensuring successful compilation.

How do I update Go project dependencies to the latest patch version?

Update Go project dependencies to the latest patch version by executing `go get -u=patch ./...`. This command automatically modifies your `go.mod` and `go.sum` files, pulling in the newest secure patch releases for your current dependencies.

Do I need git and govulncheck installed to manage Go module security?

Yes, you need git and govulncheck installed to manage Go module security effectively. Git handles version control for repository access, while govulncheck performs the actual vulnerability scanning required to detect and report known security issues in your dependencies.

What is the best way to maintain secure go.mod and go.sum files?

The best way to maintain secure `go.mod` and `go.sum` files is through automated dependency resolution and vulnerability scanning. Regularly updating dependencies and verifying checksums ensures secure dependency tracking and prevents the integration of compromised modules.

Why does my Go project fail to resolve dependencies after an update?

Yes, you can use `govulncheck` to detect vulnerabilities in complex Go dependency trees. It analyzes your code to identify reachable vulnerabilities, ensuring that security scanning is effective even when managing projects with deeply nested or extensive module dependencies.