go

star 28.4k

Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation.

grafana By grafana schedule Updated 1/30/2026

name: go description: > Best practices for working with Go codebases. Use when writing, debugging, or exploring Go code, including reading dependency sources and documentation. allowed-tools: "Read,Bash(go:*)" version: "1.0.0" author: "User" license: "MIT"

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
Install via CLI
npx skills add https://github.com/grafana/loki --skill go
Repository Details
star Stars 28,388
call_split Forks 4,029
navigation Branch main
article Path SKILL.md
More from Creator