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.
npx skills add eaglesakura/agent-skills --skill golang-coding-rulesgit clone --depth 1 https://github.com/eaglesakura/agent-skillsWrote 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.
[](https://agentmods.dev/skills/eaglesakura/agent-skills/golang-coding-rules)<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/golang-coding-rules"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/golang-coding-rules/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.
<a href="https://agentmods.dev/skills/eaglesakura/agent-skills/golang-coding-rules"><img src="https://agentmods.dev/badge/skills/eaglesakura/agent-skills/golang-coding-rules.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00181 | $0.01128 |
| Opus 5.5 | $0.00072 | $0.00451 |
| Sonnet 5.5 | $0.00036 | $0.00226 |
| Haiku 4.5 | $0.00018 | $0.00113 |
Grade A, and why
golang-coding-rules 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.
What it actually says
Golang / コーディング規約
*.go を書く・直すときは、この SKILL の規約と、文脈に合う参照ドキュメントに従う。
品質コマンド(fmt / lint / test)の回し方は golang-analyze、レイヤー設計は golang.architecture.* が主で、本 SKILL は言語・型・コメントの土台である。
いつ使うか
- Go の新規実装・修正・レビュー指摘の反映
- import 別名、error 判定、データオブジェクト(独自型)、ドキュメントコメント
いつ使わないか
go fmt/golangci-lint/go testの実行手順だけ →golang-analyze- ConnectRPC / Repository / Usecase 等のアーキテクチャ設計 → 該当
golang.architecture.* - Dart / Flutter の言語規約(他言語向けの規約 SKILL がある場合はそちら)
作業手順
- 変更対象の種類を特定する(一般・データオブジェクト・コメントのみ、など)
- 下表から必要な
references/だけロードする(全部を一度に読まない) - 規約に沿って実装する
- 区切りがついたら
golang-analyzeで fmt / lint / test を回す
文脈に応じたドキュメントのロード
| 参照 | 使うとき |
|---|---|
| general.md | import 別名、入れ子 error(errors.As)など一般規約 |
| data_object.md | DTO / 構造体 / 独自型(type)・生成関数・String() |
| code_comment.md | public への日本語ドキュメントコメント・Example・NOTE: |
必要な参照だけ読む。全部を一度にロードしない。
原則(要約)
- import 別名は既定名で通じるときは付けない。
/v1等は一段上げて小文字連結。衝突時は下位レイヤを無別名、上位にパス連結別名。Linter(goimports / golangci-lint)と食い違うときは Linter 最優先(詳細はreferences/general.md) - 入れ子 error の型確認は
errors.As(文字列比較や不安定な型アサーションだけに頼らない) - ドメイン上の意味ある値はプレーン
string/int直扱いを避け、独自型 + 必要ならNewXxx+String() - public な型・関数・フィールド等には 日本語ドキュメントコメント(主語の省略、意図・副作用、必要なら Example /
NOTE:)
ナレッジベース
DO: まず対象種別を決め、対応する reference だけ読む
- general / data_object / code_comment を同時に全部読まないと進まない、という進め方を避ける
DO: 型とコメントで意図をコードに残し、曖昧なプレーン型を減らす
- 取り違えとレビューコストを下げるため
DO NOT: 品質コマンド手順やアーキテクチャ詳細を本 SKILL だけで済ませようとする
- 実行は
golang-analyze、設計はgolang.architecture.*へ
DO NOT: 入れ子 error を文字列マッチだけで判定する
- ラップ構造の変化に弱く、壊れやすい
What ships with it
4 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.
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.
- 1mo ago Changed 367f5d6f16db
- 2mo ago First seen · 71 lines · 181 tokens per session scan A 565c45f4a225
golang-coding-rules is a skill published in the GitHub repository eaglesakura/agent-skills (2 stars, last pushed 1mo ago), licensed MIT. It adds 181 tokens to every session and 1,128 once invoked, about $0.0007 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-31.
golang-coding-rules compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| golang-coding-ruleseaglesakura/agent-skills | Skill | 2 | 1mo ago | MIT | A | 181 | Claude Code, Codex |
| golang-testingaffaan-m/ECC | Skill | 299k | yesterday | MIT | A | 37 | Claude Code, Kiro |
| golang-patternsaffaan-m/ECC | Skill | 299k | yesterday | MIT | A | 45 | Claude Code, Kiro |
| golang-testingsamber/cc-skills-golang | Skill | 3.8k | 6d ago | MIT | A | 115 | Claude Code |
| golang-samber-oopssamber/cc-skills-golang | Skill | 3.8k | 6d ago | MIT | A | 74 | Claude Code |
| golang-uber-fxsamber/cc-skills-golang | Skill | 3.8k | 6d ago | MIT | A | 122 | Claude Code |
| ax-go-agent-optimizeax-llm/ax | Skill | 3.0k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |