Agent Skills: Go Documentation

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.

UncategorizedID: caarlos0/dotfiles/go-doc

Install this agent skill to your local

pnpm dlx add-skill https://github.com/caarlos0/dotfiles/tree/HEAD/crush/skills/go-doc

Skill Files

Browse the full folder contents for go-doc.

Download Skill

Loading file tree…

crush/skills/go-doc/SKILL.md

Skill Metadata

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