std-go

std-go is a skill for Claude Code, Codex from davidYichengWei/agentic-engineering-framework. It costs 32 tokens per session (532 once invoked), scanned A, original, MIT.

A Chinese-language set of Go coding rules based on Google's Go Style Guide. Go is a programming language, and the rules cover formatting, naming, errors, comments, control flow, dependencies, and project structure.

In plain words
What is it for?
Writing or reviewing Go files, formatting with gofmt, handling errors, organizing imports and modules, documenting exported code, and keeping functions and files within stated limits.
Why use it?
It gives Go developers and reviewers a shared standard, reducing inconsistent code and common maintenance problems.

Skill for Claude CodeCodex

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

Good fit Writing or reviewing Go files, formatting with gofmt, handling errors, organizing imports and modules, documenting exported code, and keeping functions and files within stated limits.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/davidyichengwei/agentic-engineering-framework/std-go
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add davidYichengWei/agentic-engineering-framework --skill std-go
Clone the repo
git clone --depth 1 https://github.com/davidYichengWei/agentic-engineering-framework

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 std-go

README.md
[![agentmods](https://agentmods.dev/badge/skills/davidyichengwei/agentic-engineering-framework/std-go/github.svg)](https://agentmods.dev/skills/davidyichengwei/agentic-engineering-framework/std-go)
Your own site
<a href="https://agentmods.dev/skills/davidyichengwei/agentic-engineering-framework/std-go"><img src="https://agentmods.dev/badge/skills/davidyichengwei/agentic-engineering-framework/std-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 std-go

Your own site · 80×15
<a href="https://agentmods.dev/skills/davidyichengwei/agentic-engineering-framework/std-go"><img src="https://agentmods.dev/badge/skills/davidyichengwei/agentic-engineering-framework/std-go.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 532 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00032 $0.00532
Opus 5.5 $0.00013 $0.00213
Sonnet 5.5 $0.00006 $0.00106
Haiku 4.5 $0.00003 $0.00053

Measured 1mo ago against content hash 9fe1a4e175c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

std-go scanned grade A with 0 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 1mo ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/std-go/SKILL.md · 44 lines

What it actually says

Go 编码规范

基于 Google Golang 代码规范,结合实际工程经验进行了调整和补充。

规范等级定义

等级 定义
必须(Mandatory) 用户必须采用,代码扫描工具应将其视为错误
推荐(Preferable) 用户理应采用,但如有特殊情况可以不采用
可选(Optional) 用户可参考,自行决定是否采用

核心规则速查

类别 必须遵守
格式化 使用 gofmt 格式化代码
import 使用 goimports,禁止相对路径导入,标准包在最上
错误处理 必须处理 error,error 必须是最后一个返回值
panic 禁止用于一般错误处理,仅用于不变量断言
命名 驼峰式,包名小写无下划线,文件名小写下划线分隔
注释 导出名字必须有文档注释,格式 // Name 描述
switch 必须有 default 分支
goto 业务代码禁止使用
嵌套 深度不超过 4 层
代码行数 文件 ≤ 800 行,函数 ≤ 80 行
依赖管理 使用 go modules

完整规范

详见 reference/full-standards.md,包含:

  • 代码风格(格式化、换行、括号空格、import)
  • 错误处理(error、panic、recover)
  • 注释规范(包、结构体、方法、变量、常量、类型)
  • 命名规范(包、文件、结构体、接口、变量、常量、函数)
  • 控制结构(if、for、range、switch、return、goto)
  • 函数规范(参数、defer、接收器、代码行数、嵌套、变量声明、魔法数字)
  • 依赖管理和应用服务规范
Files

What ships with it

1 file 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. 1mo ago First seen · 44 lines · 32 tokens per session scan A 9fe1a4e175c5

Subscribe to this mod's changes

std-go is a skill published in the GitHub repository davidYichengWei/agentic-engineering-framework (159 stars, last pushed 7mo ago), licensed MIT. It adds 32 tokens to every session and 532 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

golang-testing

Go testing best practices including table-driven tests, test helpers, benchmarking, race detection, coverage analysis, and integration testing patterns. Use when writing or improving Go tests.

affaan-m/ECC · 37 tokens

golang-patterns

Go-specific design patterns and best practices including functional options, small interfaces, dependency injection, concurrency patterns, error handling, and package organization. Use when working with Go code to apply idiomatic Go patterns.

affaan-m/ECC · 45 tokens

golang-testing

Production-ready Golang tests — table-driven tests, testify suites and mocks, parallel tests, fuzzing, fixtures, goroutine leak detection with goleak, snapshot testing, code coverage, integration tests, idiomatic test naming. Use when writing or reviewing Go tests, choosing a testing approach, setting up Go test CI…

samber/cc-skills-golang · 115 tokens

golang-samber-oops

Structured error handling in Golang with samber/oops — error builders, stack traces, error codes, error context, error wrapping, error attributes, user-facing vs developer messages, panic recovery, and logger integration. Apply when using or adopting samber/oops, or when the codebase already imports…

samber/cc-skills-golang · 74 tokens

golang-uber-fx

Golang application framework using uber-go/fx — fx.New, fx.Provide, fx.Invoke, fx.Module, fx.Lifecycle hooks, fx.Annotate (name/group/As), fx.Decorate, fx.Supply, fx.Replace, fx.WithLogger, and signal-aware Run(). Apply when using or adopting uber-go/fx, when the codebase imports go.uber.org/fx, or when wiring…

samber/cc-skills-golang · 122 tokens

ax-go-agent-optimize

Use when writing Go code with github.com/ax-llm/ax/packages/go for agent optimization, verified agent-playbook evolution, evaluators, judges, optimizer artifacts, BootstrapFewShot, and GEPA.

ax-llm/ax · 51 tokens