caarlos0

go-doc

@caarlos0/go-doc
caarlos0
197
9 forks
Updated 1/18/2026
View on GitHub

Get documentation for any Go library using `go doc`. Use when asked about Go package documentation, API reference, function signatures, or how to use a specific Go library/package.

Installation

$skills install @caarlos0/go-doc
Claude Code
Cursor
Copilot
Codex
Antigravity

Details

Pathcrush/skills/go-doc/SKILL.md
Branchmain
Scoped Name@caarlos0/go-doc

Usage

After installing, this skill will be available to your AI coding assistant.

Verify installation:

skills list

Skill Instructions


name: go-doc description: Get documentation for any Go library using go doc. Use when asked about Go package documentation, API reference, function signatures, or how to use a specific Go library/package.

Go Documentation

Retrieve Go package documentation using go doc.

Workflow

  1. Check go.mod for package version (use that version, or @latest if not found)
  2. Fetch package if needed: go get package/path@version
  3. Run go doc package/path or go doc package/path.Symbol

Key Flags

  • -src - Show source code
  • -all - Show all symbols in package
  • -u - Include unexported symbols