# Go Packages (pkg.go.dev)

> Verify public Go package APIs, docs, examples, symbols, versions, licenses, importers and known vulns via the pkg.go.dev v1 API before coding.

Go Packages (pkg.go.dev) is a free AI agent skill on Agensi by Arash Khazaei, in APIs & Backend. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Arash Khazaei](https://www.agensi.io/creators/arash-khazaei)
- Category: [APIs & Backend](https://www.agensi.io/skills/apis-backend)
- Version: 1.0
- Last updated: 2026-11-22
- Security: scan passed (2026-11-22); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/go-packages-pkg-go-dev
- Tags: api, ai-agents, security, coding, golang, go, go-docs, golang-docs

## About this skill

Use the bundled Bash client to research public Go packages before implementing against their APIs. The skill works in any agent harness that can run Bash commands; it has no harness-specific dependencies. Requirements: Bash 3.2+, curl 7.66+, jq 1.6+, ordinary shell utilities, and network access to `https://pkg.go.dev`.

Resolve `scripts/go-pkg.sh` **relative to the directory containing this SKILL.md**, not the project's working directory. Set `PKG` to its actual absolute path. The skill may be installed anywhere (for example `~/.claude/skills/go-pkg`, `~/.agents/skills/go-pkg`, or a project-local skills directory); never assume a fixed location.

1. Read the project's `go.mod`, `go.work`, replacements, existing imports, and target Go version/GOOS/GOARCH. Do not silently replace a pinned version with `latest`. A local `replace` may not match public documentation.
2. Use `search` only when the import path is unknown. Otherwise query the known package directly. Use `module` or `versions` when evaluating a dependency or upgrade.
3. Retrieve `package --doc md --examples` at the intended version. Use `symbols` to locate names, then read package docs for declarations and semantics: **symbol results are not complete signatures**.
4. Check relevant module metadata, licenses, known vulnerabilities, and build context. Request large optional fields only when needed.
5. Implement using verified imports/signatures; run the project's build/tests. Report the exact module version, relevant documentation URL, findings, and remaining uncertainty. API discovery alone does not prove code compiles.

Every command below maps to `GET /v1/<command>/{path}`, except `search`, which uses `GET /v1/search`. Pass **module paths** to `module`, `versions`, and `packages`; pass **package import paths** to `package`, `symbols`, and `imported-by`. `vulns` accepts either.

## Requires

- Bash 3.2+
- curl 7.66+
- jq 1.6+
- HTTPS access to pkg.go.dev

Linux, macOS, or Windows via WSL/Git Bash. No API key, Go toolchain, Python or Node needed.

## Known limitations

Public modules only; not for private/replaced modules. Symbol results are not full signatures. Vulnerability lookups are database matches, not reachability analysis (use govulncheck). Does not compile code.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Go Packages (pkg.go.dev) skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does Go Packages (pkg.go.dev) do?

Verify public Go package APIs, docs, examples, symbols, versions, licenses, importers and known vulns via the pkg.go.dev v1 API before coding.

### Which AI agents support Go Packages (pkg.go.dev)?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use Go Packages (pkg.go.dev)?

Connect your AI agent to Agensi through MCP, then ask it to use Go Packages (pkg.go.dev) on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
