Borrowing it
Nothing to install: this file belongs to rokasklive/opengrok-go-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/rokasklive/opengrok-go-mcp/main/.agents/skills/golang-code-style/SKILL.mdgit clone --depth 1 https://github.com/rokasklive/opengrok-go-mcpWrote 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/rokasklive/opengrok-go-mcp/golang-code-style)<a href="https://agentmods.dev/skills/rokasklive/opengrok-go-mcp/golang-code-style"><img src="https://agentmods.dev/badge/skills/rokasklive/opengrok-go-mcp/golang-code-style/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/rokasklive/opengrok-go-mcp/golang-code-style"><img src="https://agentmods.dev/badge/skills/rokasklive/opengrok-go-mcp/golang-code-style.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.00034 | $0.02070 |
| Opus 5.5 | $0.00014 | $0.00828 |
| Sonnet 5.5 | $0.00007 | $0.00414 |
| Haiku 4.5 | $0.00003 | $0.00207 |
Grade A, and why
golang-code-style 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 2mo 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.
This is a copy
88% identical to golang-code-style — 20 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 236 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Community default. A company skill that explicitly supersedes
samber/cc-skills-golang@golang-code-styleskill takes precedence.
Go Code Style
Style rules that require human judgment — linters handle formatting, this skill handles clarity. For naming see samber/cc-skills-golang@golang-naming skill; for design patterns see samber/cc-skills-golang@golang-design-patterns skill; for struct/interface design see samber/cc-skills-golang@golang-structs-interfaces skill.
"Clear is better than clever." — Go Proverbs
When ignoring a rule, add a comment to the code.
Line Length & Breaking
No rigid line limit, but lines beyond ~120 characters MUST be broken. Break at semantic boundaries, not arbitrary column counts. Function calls with 4+ arguments MUST use one argument per line — even when the prompt asks for single-line code:
// Good — each argument on its own line, closing paren separate
mux.HandleFunc("/api/users", func(w http.ResponseWriter, r *http.Request) {
handleUsers(
w,
r,
serviceName,
cfg,
logger,
authMiddleware,
)
})
When a function signature is too long, the real fix is often fewer parameters (use an options struct) rather than better line wrapping. For multi-line signatures, put each parameter on its own line.
Variable Declarations
SHOULD use := for non-zero values, var for zero-value initialization. The form signals intent: var means "this starts at zero."
var count int // zero value, set later
name := "default" // non-zero, := is appropriate
var buf bytes.Buffer // zero value is ready to use
Slice & Map Initialization
Slices and maps MUST be initialized explicitly, never nil. Nil maps panic on write; nil slices serialize to null in JSON (vs [] for empty slices), surprising API consumers.
users := []User{} // always initialized
m := map[string]int{} // always initialized
users := make([]User, 0, len(ids)) // preallocate when capacity is known
m := make(map[string]int, len(items)) // preallocate when size is known
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.
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.
- 2mo ago First seen · 236 lines · 34 tokens per session scan A 36a5990d277f
golang-code-style is a skill published in the GitHub repository rokasklive/opengrok-go-mcp (10 stars, last pushed 26d ago), licensed Apache-2.0. It adds 34 tokens to every session and 2,070 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 88% identical to golang-code-style, differing in 20 lines, and is treated as a copy.
golang-code-style compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| golang-code-stylerokasklive/opengrok-go-mcp | Skill | 10 | 26d ago | Apache-2.0 | A | 34 | Claude Code |
| golang-testingaffaan-m/ECC | Skill | 298k | 5d ago | MIT | A | 37 | Claude Code, Kiro |
| golang-patternsaffaan-m/ECC | Skill | 298k | 5d ago | MIT | A | 45 | Claude Code, Kiro |
| golang-testingsamber/cc-skills-golang | Skill | 3.8k | 5d ago | MIT | A | 115 | Claude Code |
| golang-uber-fxsamber/cc-skills-golang | Skill | 3.8k | 5d ago | MIT | A | 122 | Claude Code |
| golang-samber-oopssamber/cc-skills-golang | Skill | 3.8k | 5d ago | MIT | A | 74 | Claude Code |
| ax-go-agent-optimizeax-llm/ax | Skill | 3.0k | 3d ago | Apache-2.0 | A | 51 | Claude Code, Codex |