Skip to main content

go

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

Jump to install

Source facts

Repository
grafana/loki
Last source activity
January 30, 2026 at 22:21
Detected SKILL.md language
English
Stars
28,919
Forks
4,115

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
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: ```bash 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: ```bash 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: ```bash go run . # Run the current package go run ./cmd/foo # Run a specific command ```
View on GitHub