go
Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
Installation
Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.
View source ↗GuidesSkill instructions
Go Programming Language
Guidelines for working effectively with Go projects.
Reading Dependency Source Files
To see source files from a dependency, or to answer questions about a dependency:
go mod download -json MODULE
Use the returned Dir path to read the source files.
Reading Documentation
Use go doc to read documentation for packages, types, functions, etc:
go doc foo.Bar # Documentation for a specific symbol
go doc -all foo # All documentation for a package
Running Programs
Use go run instead of go build to avoid leaving behind build artifacts:
go run . # Run the current package
go run ./cmd/foo # Run a specific command
Examples
Read the usage examples in the source repository.
View source ↗Source history
- Indexed on
- 2026-03-11
- Index updated
- 2026-03-11
- Branch
- main
Index and sync dates describe this directory. View the source repository for code history.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!