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 PlamenTSV/plamen --skill go-concurrency-safetygit clone --depth 1 https://github.com/PlamenTSV/plamenWrote 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/plamentsv/plamen/go-concurrency-safety)<a href="https://agentmods.dev/skills/plamentsv/plamen/go-concurrency-safety"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/go-concurrency-safety/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/plamentsv/plamen/go-concurrency-safety"><img src="https://agentmods.dev/badge/skills/plamentsv/plamen/go-concurrency-safety.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00040 | $0.01800 |
| Opus 5 | $0.00020 | $0.00900 |
| Sonnet 5 | $0.00008 | $0.00360 |
| Haiku 4.5 | $0.00004 | $0.00180 |
Grade A, and why
go-concurrency-safety 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 11d 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 — 145 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Injectable Skill: Go Concurrency Safety
L1 trigger:
L1_PATTERN=trueAND target language = Go Inject Into: Every L1 depth agent working on Go code, in addition to the main skill Finding prefix:[GO-N]Status: v0.1 draft, Round 4 exemplars pending
When This Skill Activates
Supplement to the main L1 skills when the target is written in Go. It codifies the Go-specific traps that turn otherwise-correct logic into production bugs. These are drawn from the Cosmos-SDK, Geth, Erigon, and CometBFT bug histories.
1. Map Iteration Non-Determinism
Go maps iterate in unspecified order. Production bug class: any consensus computation that ranges over a map[K]V and uses the order in its output will produce different results on different nodes.
Detection:
- Ast-grep
for $_, $_ := range $MAPwhere$MAPis declared asmap[...]... - For each hit in a consensus-critical path, check if the iteration result affects any stored state, signed message, or hash input
Fix pattern:
keys := make([]string, 0, len(m))
for k := range m {
keys = append(keys, k)
}
sort.Strings(keys)
for _, k := range keys {
v := m[k]
// use (k, v)
}
Alternative: use btree or sort.SliceStable on a converted slice.
Tag: [GO-MAP-ITER:{loc}:{consumer}]
2. Goroutine Leaks
Goroutines that are started but never terminated. Over hours/days, a leak accumulates and eventually OOMs the node.
Common patterns:
- Goroutine blocked on
<-chwhere the sender path can return without sending - Goroutine blocked on
http.Get/ network call without context timeout - Goroutine in a
forloop without a cancellation check - Goroutine spawned inside a handler that outlives the handler's parent context
Detection:
- Ast-grep
go $FUNC(...)/go func() { ... }() - For each, trace the function body: is there a termination condition? Is it guaranteed to fire?
- Check every
selectinside: does it have acase <-ctx.Done()?
Tag: [GO-GOROUTINE-LEAK:{spawn-loc}:{blocked-on}]
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.
- 11d ago First seen · 145 lines · 40 tokens per session scan A 86a325d6516e
go-concurrency-safety is a skill published in the GitHub repository PlamenTSV/plamen (295 stars, last pushed 3d ago), licensed MIT. It adds 40 tokens to every session and 1,800 once invoked, about $0.0002 per session on Opus 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.
Other skills, from other repositories
golang-refactoring
Golang refactoring — safe, at-scale restructuring of existing Go code: a coverage-adaptive safety net, behavior-preserving transforms (gopls Rename/Extract, gofmt -r, gopatch), the Fowler catalog mapped to Go, breaking import cycles, and small stacked PRs. Apply when a function or type has grown too large, a code…
sapcc-review
Gold-standard SAP CC Go code review: 10 parallel domain specialists.
design-review
Deep design review of Go codebase — naming, structure, consistency, interfaces, error handling. Scores each dimension and provides actionable fixes.
agents-md
Generate AGENTS.md files for Go, Rust, TypeScript, and Java projects. Use this skill whenever the user asks to create, scaffold, bootstrap, update, or review an AGENTS.md (or agent-instructions, CLAUDE.md, repo guide for agents) file in a codebase. Also trigger when the user says "add AGENTS.md", "make this repo…
sapcc-audit
Full-repo SAP CC Go compliance audit against review standards.
stale-comments-audit
Audit and fix JavaScript, TypeScript, and Go comments that are verified as stale, orphaned, misleading, or redundant.