go-dependency-audit

Audit Go module dependencies for outdated packages and known vulnerabilities.

64|9|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/eduardo-sl/go-agent-skills --skill go-dependency-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-dependency-audit
Source: https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/%28workflow%29/go-dependency-audit
Command: npx skills add https://github.com/eduardo-sl/go-agent-skills --skill go-dependency-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Auditing and maintaining Go module dependencies is time-consuming and error-prone, and missing vulnerabilities or stale modules can introduce security and reliability risks into production systems. This Skill provides a structured checklist and practical commands to detect vulnerabilities, identify unused or redundant modules, and evaluate dependency quality so teams can make safe upgrade decisions.

Core Features & Use Cases

  • Vulnerability scanning: Guidance to run govulncheck and complementary scanners to surface only vulnerabilities that affect your code paths.
  • Go module hygiene: Recommendations to enforce go mod tidy, verify checksums, and avoid committed replace directives.
  • Version and transitive analysis: Steps to list current modules, detect available updates, analyze why transitive deps are present, and visualize dependency graphs.
  • Use cases: Run in CI to block commits with stale or vulnerable deps, perform a security review before releases, or evaluate third-party libraries for inclusion.

Quick Start

Audit the repository's modules for vulnerabilities, unused dependencies, and available updates and produce a concise dependency audit report with recommended upgrades.

Frequently Asked Questions about go-dependency-audit

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

FAQPage Schema
How do I audit Go module dependencies for known vulnerabilities?

To audit Go module dependencies for known vulnerabilities, run govulncheck against your project's go.mod and go.sum to surface only CVEs that affect your code paths, and use complementary scanners to detect transitive vulnerabilities.

What is the best way to find unused or stale packages in a Go project?

Finding unused or stale packages in a Go project involves analyzing your go.mod file to detect unused modules, identify redundant dependencies, and list available updates to evaluate overall module hygiene and version drift.

Can I check for transitive CVEs and replace directives during a Go dependency audit?

Yes, you can check for transitive CVEs and committed replace directives during a Go dependency audit by analyzing transitive dependency graphs and enforcing go mod tidy to verify checksums and ensure proper module hygiene.

How do I integrate Go vulnerability scanning into CI pipelines to block unsafe commits?

Integrating Go vulnerability scanning into CI pipelines involves running govulncheck and dependency hygiene checks on go.mod and go.sum during CI runs to automatically block commits containing stale, unused, or vulnerable dependencies.

Does this Go dependency audit work for evaluating third-party libraries before inclusion?

Yes, this Go dependency audit works for evaluating third-party libraries before inclusion by analyzing module version updates, assessing dependency quality, and detecting transitive vulnerabilities to help teams make safe integration decisions.

What are the limitations of using govulncheck for Go module hygiene checks?

A limitation of using govulncheck for Go module hygiene checks is that it primarily detects vulnerabilities affecting code paths, meaning you still need additional steps like go mod tidy and version drift analysis to catch unused modules and replace directives.