Queries pkg.go.dev metadata for Go packages and modules via pkgsite-cli and the pkg.go.dev v1beta API. Use when discovering packages, inspecting module versions, symbols, imports, reverse dependencies, vulnerabilities, licenses, other projects that depend on a package, or pkg.go.dev documentation lookup.
Ships in lrstanley. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Specialist for querying pkg.go.dev metadata through
pkgsite-cli,
the reference CLI for the pkg.go.dev v1beta API. For
programmatic integrations, use the REST API directly; see references/api.md.
Introduced in the pkg.go.dev API blog post.
-json outputpackage@version (use go doc)cmd/pkgsite web server)go install golang.org/x/pkgsite/cmd/internal/pkgsite-cli@latestsearch for discovery; package or module for inspection-json for machine output-module when the API reports multiple candidates| Topic | Reference | Load When |
|---|---|---|
| Package inspection | references/package.md | Metadata, docs, symbols, imports, imported-by, licenses |
| Module inspection | references/module.md | Versions, packages, vulnerabilities, README |
| Search | references/search.md | Finding packages or symbols on pkg.go.dev |
| REST API | references/api.md | Direct HTTP access, OpenAPI spec, curl, pagination |
| Command | Purpose |
|---|---|
pkgsite-cli search <query> | Search for packages (or symbols with -symbol) |
pkgsite-cli package <path>[@version] | Inspect a package |
pkgsite-cli module <module>[@version] | Inspect a module |
pkgsite-cli help | Print usage for all commands |
pkgsite-cli version | Print CLI version and Go toolchain |
Shared flags on package, module, and search: -json, -limit (default 25),
-server (default https://pkg.go.dev), -timeout (default 30s), -x (print URLs).
Run pkgsite-cli <command> -h for command-specific flags.
Append @version to paths for semver tags (v1.2.3) or master/main branches.
Omit @version for the latest tagged release.
-module when the API returns ambiguous path candidates-json in scripts; check exit code for failurespkgsite-cli or the REST API over scraping pkg.go.dev HTMLpkgsite-cli instead of go doc on local codepkgsite-cli search -limit 5 "structured logging"
pkgsite-cli package -symbols -imported-by github.com/google/go-cmp/cmp
pkgsite-cli module -versions -packages github.com/google/go-cmp
pkgsite-cli search -json -limit 10 uuid | jq '.items[].packagePath'
| Tool | Scope |
|---|---|
go doc | Package/symbol docs, including package@version |
cmd/pkgsite | Local web server for downloaded packages |
pkgsite-cli | Remote metadata: search, versions, vulns, imported-by, licenses |
| REST API | Same data as CLI; best for application integrations |
What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/apply-worktreeLand the current git worktree's commits onto the main worktree's default branch, verify, and clean up. Use for /apply-worktree./babysit-prWatch a pull request through CI and review bots, fix real findings, and keep it rebased until it is ready. Use for /babysit-pr./documentation-writerCreates high-quality technical documentation using the Diataxis framework. Use when writing tutorials, how-to guides, reference material, or explanations for software projects.Other plugins' skills for the same job
/lrstanley:golang-packagesfrom lrstanley
npx claudepluginhub lrstanley/skills --plugin lrstanley