OpenParable
Skip to content
← Back to skills

Go Doc

Research
go-doc

Go Doc is an Agent Skill for research published in the caarlos0/dotfiles repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

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.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/caarlos0/dotfiles/blob/HEAD/skills/go-doc/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/go-doc, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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