Tooluck logoTooluck
SKILL.md

golang-pkg-go-dev

Agent skill fromsamber/cc-skills-golang

Golang package and module lookup via `godig`, a pkg.go.dev API client (CLI + MCP server). Use for any Go/Golang library's documentation, API signatures, symbols, usage examples, which versions exist, licenses, whether a dependency has CVEs, or who imports a package — prefer this over Context7 for any Go package or module. Read-only, no auth. Not for upgrading dependencies (→ See `samber/cc-skills-golang@golang-dependency-management` skill), choosing a library (→ See `samber/cc-skills-golang@golang-popular-libraries` skill), or local symbols and an already-used dependency's resolved source, call sites, and generic instantiations (→ See `samber/cc-skills-golang@golang-gopls` skill).

How to install golang-pkg-go-dev

install golang-pkg-go-dev
# install the cc-skills-golang pack with the skills CLI
npx skills add samber/cc-skills-golang

# or add only this skill to Claude Code: copy the folder

skills/golang-pkg-go-dev/

# into

~/.claude/skills/golang-pkg-go-dev/ (all projects)

.claude/skills/golang-pkg-go-dev/ (one project)

skills/golang-pkg-go-dev/SKILL.md

MITFull file
1# golang-pkg-go-dev
2
3**Dependencies:** `godig` — `go install github.com/samber/godig/cmd/godig@latest` (or use a registered godig MCP server / the hosted instance instead).
4
5`godig` queries the [pkg.go.dev](https://pkg.go.dev) API. Use it to answer questions about Go packages and modules: docs, symbols, versions, importers and vulnerabilities. It works as a CLI and as an MCP server, and all operations are **read-only** and need no authentication.
6
7## When to use this skill
8
9Trigger on questions like:
10
11- "What versions of github.com/samber/lo are available?"
12- "Does golang.org/x/text have known vulnerabilities?"
13- "Show me the docs / symbols for package X."
14- "Which packages import X?"
15- "Search Go packages for Y."
16
17## Choosing between `godig`, gopls, Context7, and govulncheck
18
19In short: `godig` answers questions about the **published ecosystem** (works even for packages not yet in your `go.mod`); `gopls` reasons about **your locally resolved build** (`go.sum`, including `replace`d forks); Context7 is a fallback for non-Go or unindexed docs; `govulncheck` is the whole-tree vulnerability audit (→ `samber/cc-skills-golang@golang-security`). See the `samber/cc-skills-golang@golang-gopls` skill for wiring `gopls` (MCP server, native `LSP` tool, and CLI) with Claude Code, and the `samber/cc-skills-golang@golang-how-to` skill's "`godig` vs gopls vs Context7 vs govulncheck" section for the full task-to-tool matrix.
20
21## Setup
22
23### Install
24
25```bash
26…

Excerpt shown under the repository's MIT license.

More skills in cc-skills-golang

Keep exploring

Similar skill repositories

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates