Go Doc
Researchgo-docGo 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.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- 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
- Check go.mod for package version (use that version, or
@latestif not found) - Fetch package if needed:
go get package/path@version - Run
go doc package/pathorgo doc package/path.Symbol
Key Flags
-src- Show source code-all- Show all symbols in package-u- Include unexported symbols