go
Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.
How do I install this agent skill?
npx skills add https://github.com/grafana/loki --skill goIs this agent skill safe to install?
- Gen Agent Trust Hubpass
This skill provides standard guidelines for Go development using official toolchain commands for dependency management, documentation, and execution. It contains a standard surface for indirect prompt injection common to code exploration tasks.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
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
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/grafana/loki/go">View go on skillZs</a>