Borrowing it
Nothing to install: this file belongs to slayer/gcon. 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/slayer/gcon/master/.agents/skills/go-code-review/SKILL.mdgit clone --depth 1 https://github.com/slayer/gconWrote 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/slayer/gcon/go-code-review)<a href="https://agentmods.dev/skills/slayer/gcon/go-code-review"><img src="https://agentmods.dev/badge/skills/slayer/gcon/go-code-review/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/slayer/gcon/go-code-review"><img src="https://agentmods.dev/badge/skills/slayer/gcon/go-code-review.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.00041 | $0.00810 |
| Opus 5.5 | $0.00016 | $0.00324 |
| Sonnet 5.5 | $0.00008 | $0.00162 |
| Haiku 4.5 | $0.00004 | $0.00081 |
Grade A, and why
go-code-review 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.
How it starts
The opening of the file, as written. The whole thing — 84 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Go Code Review
Quick Reference
| Issue Type | Reference |
|---|---|
| Missing error checks, wrapped errors | references/error-handling.md |
| Race conditions, channel misuse | references/concurrency.md |
| Interface pollution, naming | references/interfaces.md |
| Resource leaks, defer misuse | references/common-mistakes.md |
Review Checklist
- All errors are checked (no
_ = err) - Errors wrapped with context (
fmt.Errorf("...: %w", err)) - Resources closed with
deferimmediately after creation - No goroutine leaks (channels closed, contexts canceled)
- Interfaces defined by consumers, not producers
- Interface names end in
-er(Reader, Writer, Handler) - Exported names have doc comments
- No naked returns in functions > 5 lines
- Context passed as first parameter
- Mutexes protect shared state, not methods
When to Load References
- Reviewing error return patterns → error-handling.md
- Reviewing goroutines/channels → concurrency.md
- Reviewing type definitions → interfaces.md
- General Go review → common-mistakes.md
Review Questions
- Are all error returns checked and wrapped?
- Are goroutines properly managed with context cancellation?
- Are resources (files, connections) closed with defer?
- Are interfaces minimal and defined where used?
Valid Patterns (Do NOT Flag)
These patterns are acceptable and should NOT be flagged as issues:
_ = errwith reason comment - Intentionally ignored errors with explanation_ = conn.Close() // Best effort cleanup, already handling primary error- Empty interface
interface{}- For truly generic code (pre-generics codebases) - Naked returns in short functions - Acceptable in functions < 5 lines with named returns
- Channel without close - When consumer stops via context cancellation, not channel close
- Mutex protecting struct fields - Even if accessed only via methods, this is correct encapsulation
//nolintdirectives with reason - Acceptable when accompanied by explanation//nolint:errcheck // Error logged but not returned per API contract- Defer in loop - When function scope cleanup is intentional (e.g., processing files in batches)
- Functional options pattern -
type Option func(*T)withWith*constructors is idiomatic for configurable typesfunc NewServer(addr string, opts ...Option) *Server { ... } sync.Poolfor hot paths - Acceptable for reducing allocation pressure in performance-critical codevar bufPool = sync.Pool{New: func() any { return new(bytes.Buffer) }}
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 First seen · 84 lines · 41 tokens per session scan A aee4790fcbe1
go-code-review is a skill published in the GitHub repository slayer/gcon (9 stars, last pushed 2mo ago), licensed MIT. It adds 41 tokens to every session and 810 once invoked, about $0.0002 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-10-02.
go-code-review compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| go-code-reviewslayer/gcon | Skill | 9 | 2mo ago | MIT | A | 41 | Claude Code, Codex |
| pr-to-go-lintergithub/gh-aw | Skill | 5.7k | today | MIT | A | 22 | Claude Code, Codex |
| golang-refactoringsamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 220 | Claude Code |
| design-reviewdimetron/pi-go | Skill | 232 | 7d ago | MIT | A | 30 | Claude Code, Codex |
| agents-mddimetron/pi-go | Skill | 232 | 7d ago | MIT | A | 138 | Claude Code, Codex |
| rust-code-reviewexistential-birds/beagle | Skill | 91 | 4d ago | Apache-2.0 | A | 59 | Claude Code, Codex |
| review-rustexistential-birds/beagle | Skill | 91 | 4d ago | Apache-2.0 | A | 47 | Claude Code, Codex |