go

go is a skill for Claude Code, Codex from znlgis/opengis-skills. It costs 53 tokens per session (2,079 once invoked), scanned D, original, MIT.

A programming language designed for building fast programs and network services, with built-in support for running work concurrently. It includes tools for modules, formatting, testing, and profiling.

In plain words
What is it for?
It helps write web servers, APIs, database-backed programs, command-line tools, concurrent systems, tests, and benchmarks.
Why use it?
It provides a consistent way to build and maintain backend software without assembling a large collection of separate tools.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is go run ./cmd/api.

Good fit It helps write web servers, APIs, database-backed programs, command-line tools, concurrent systems, tests, and benchmarks.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/znlgis/opengis-skills
agentmods
npx agentmods add skills/znlgis/opengis-skills/go

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for go

README.md
[![agentmods](https://agentmods.dev/badge/skills/znlgis/opengis-skills/go/github.svg)](https://agentmods.dev/skills/znlgis/opengis-skills/go)
Your own site
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/go"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/go/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for go

Your own site · 80×15
<a href="https://agentmods.dev/skills/znlgis/opengis-skills/go"><img src="https://agentmods.dev/badge/skills/znlgis/opengis-skills/go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,079 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 3 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.02079
Opus 5 $0.00026 $0.01040
Sonnet 5 $0.00011 $0.00416
Haiku 4.5 $0.00005 $0.00208

Measured yesterday against content hash 0f058dbaf746, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade D, and why

go scanned grade D with 3 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.27.1.linux-amd64.tar.gz

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.27.1.linux-amd64.tar.gz

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

wget https://go.dev/dl/go1.27.1.linux-amd64.tar.gz
others/go/SKILL.md · 196 lines

How it starts

The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.

官网: https://go.dev/

项目地址: https://github.com/golang/go

官方文档: https://go.dev/doc/

Go by Example: https://gobyexample.com/

Effective Go: https://go.dev/doc/effective_go

许可证: BSD-3-Clause | 最新稳定版: 参见 go.dev/dl

概述

Go 是由 Robert Griesemer、Rob Pike 和 Ken Thompson 于 2007 年在 Google 发起的编程语言,2009 年首次公开发布,2012 年发布 Go 1.0。核心设计目标:简洁、高效、安全、并发优先、工程化。

特性 说明
静态类型 + 编译型 无运行时解释开销,编译为单文件原生机器码
垃圾回收 并发三色标记清除 GC,亚毫秒级 STW
内置并发 goroutine(轻量线程,2KB 初始栈)+ channel(CSP 模型)
快速编译 增量编译 + 包缓存,大型项目秒级构建
丰富标准库 net/http、database/sql、encoding/json、context 等开箱即用
统一代码风格 gofmt 内置格式化,无风格争议
模块系统 Go Modules(go.mod),语义版本控制
泛型 Go 1.18+ 支持类型参数
工具链 testing、benchmark、pprof、race detector 内置

版本里程碑

版本 年份 关键特性
1.0 2012 首个稳定版
1.7 2016 context 正式入标准库
1.11 2018 Go Modules 引入
1.13 2019 error wrapping(%w)
1.18 2022 泛型、模糊测试、workspace(go.work)
1.21 2023 slices/maps 标准库、log/slog、atomic 类型、cmp.Ordered
1.22 2024 循环变量每次迭代新作用域、增强 ServeMux 路由
1.23 2024 range over func(迭代器函数)、unique 包
1.24 2025 泛型类型别名、Swiss Table map 优化、weak 指针
1.26 2026 GC 默认启用新算法、工具链增强

环境准备

安装

# macOS
brew install go

# Linux(官方二进制)
wget https://go.dev/dl/go1.27.1.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.27.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

# Windows
winget install Golang.go

环境变量

go env GOROOT          # Go 安装目录
go env GOPATH          # Go 工作区(默认 ~/go)
go env GOPROXY         # 模块代理(国内推荐 https://goproxy.cn)
go env GOSUMDB         # 校验数据库(默认 sum.golang.org)
go env GO111MODULE     # 模块模式(on,Go 1.22+ 默认)

# 国内加速
go env -w GOPROXY=https://goproxy.cn,direct
go env -w GOSUMDB=sum.golang.google.cn

IDE 推荐

  • VS Code + gopls(免费,推荐)
  • GoLand(JetBrains,商业)
  • Neovim + gopls(终端流)

Read the full file on GitHub · 196 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday Changed 0f058dbaf746
  2. 7d ago First seen · 196 lines · 53 tokens per session scan D b18a65c3897b

Subscribe to this mod's changes

go is a skill published in the GitHub repository znlgis/opengis-skills (60 stars, last pushed yesterday), licensed MIT. It adds 53 tokens to every session and 2,079 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it D with 3 findings (asks for root, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

go

Use when writing, reviewing, testing, or shipping Go code and HTTP services: idioms, %w error wrapping, goroutine/context/errgroup concurrency, net/http 1.22 routing, log/slog, project layout, table-driven tests, Go hardening. NOT language-agnostic threat modeling (that is secure-coding), NOT Dockerfile/CI shipping…

ericrisco/rsc-harness · 86 tokens

go-expert

Expert-level Go development with Go 1.22+ features, concurrency, standard library, and production-grade best practices. Use when the user mentions concurrency, microservices, or backend, or when the task involves idiomatic Go, goroutines and channels, context-based cancellation, or writing an HTTP server.

personamanagmentlayer/pcl · 65 tokens

code-review-go

Deep Go-specific code review covering goroutine lifecycle, data races, error wrapping, domain modeling, and interface design. Applied in addition to the generic code-review skill when Go code is detected. Invoked when reviewing Go PRs, Go code changes, or performing Go-specific quality checks.

soulcodex/agentic · 61 tokens

Go Patterns

Use this skill when building Go services/CLIs and you want practical patterns for package layout, error handling, concurrency, and testing that keep code readable and reliable.

AmariahAK/atlarix-skills · 2 tokens

golang

Use when building Go backend services, implementing goroutines/channels, handling errors idiomatically, writing tests with testify, or following Go best practices for APIs/CLI tools.

MadAppGang/claude-code · 38 tokens

golang-samber-do

Dependency injection in Golang using samber/do — service containers, lifecycle management, scopes, health checks, graceful shutdown, and module organization. Apply when using or adopting samber/do, when the codebase imports github.com/samber/do or github.com/samber/do/v2, or when refactoring manual constructor…

alexastrum/skl · 74 tokens