golang-pkg-go-dev

Query Go package documentation, versions, symbols, and vulnerabilities from pkg.go.dev.

1|Updated May 25, 2020
One-click install
npx skills add https://github.com/titaneric/dotfiles --skill golang-pkg-go-dev-titaneric
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-pkg-go-dev
Source: https://github.com/titaneric/dotfiles/tree/main/dot_agents/skills/golang-pkg-go-dev
Command: npx skills add https://github.com/titaneric/dotfiles --skill golang-pkg-go-dev-titaneric

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires godig, and includes references (resource) components.

What problem does it solve? Looking up Go package documentation, API signatures, available versions, importers, and known vulnerabilities normally requires manually browsing pkg.go.dev. This Skill lets an AI agent answer those questions directly through the godig CLI or MCP server, which queries the pkg.go.dev API and the Go vulnerability database. ## Core Features & Use Cases - Package and symbol documentation: Retrieve full package docs or token-efficient single-symbol signatures and runnable examples for any Go module. - Version and dependency intelligence: List all versions, major versions, go.mod dependencies, licenses, and which packages import a given module. - Vulnerability checks: Query the Go vulnerability database (vuln.go.dev) to see whether a dependency has known CVEs. - Use Case: Before adding a new Go library, ask the agent to run godig overview and godig vulns on the module to review its latest version, license, and security posture in one step. ## Quick Start Ask the agent to show the documentation and known vulnerabilities for the Go package github.com/samber/lo using godig.

Frequently Asked Questions about golang-pkg-go-dev

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

FAQPage Schema
How do I look up Go package documentation from the command line?

Use the godig CLI, for example `godig package doc github.com/samber/lo -o md` for full docs or `godig symbol doc github.com/samber/lo Map -o md` for a single symbol's signature. It queries the pkg.go.dev API and needs no authentication.

How do I check if a Go dependency has known vulnerabilities?

Run `godig vulns <module-path>` to query the Go vulnerability database (vuln.go.dev) for that module. It returns CVE aliases, summaries, and affected version ranges, and an empty list when no vulnerabilities are known.

godig vs gopls vs Context7 for Go documentation?

godig answers questions about the published Go ecosystem on pkg.go.dev, even for packages not in your go.mod. gopls reasons about your locally resolved build, and Context7 is a fallback for non-Go or unindexed documentation.

Can godig run as an MCP server for Claude Code?

Yes, `godig mcp` runs over stdio by default or streamable HTTP with `--transport http`. Register it with `claude mcp add pkg-go-dev -- godig mcp`, or use the hosted instance at https://godig.samber.dev/mcp.

What are the limitations of querying pkg.go.dev with godig?

godig is read-only and only covers packages indexed by pkg.go.dev, so it cannot inspect local symbols, call sites, or replaced forks in your build. It is also not meant for upgrading dependencies or choosing between libraries.