go-concurrency

go-concurrency is a skill for Claude Code, Codex from Dankosik/go-service-template-rest. It costs 36 tokens per session (478 once invoked), scanned A, original, MIT.

A guide for reasoning about concurrent Go programs, where multiple goroutines run at overlapping times. It tracks how shared data is synchronized, how work stops, and how goroutines are joined.

In plain words
What is it for?
Use it when changing goroutines, worker pools, fan-outs, cancellation, shared state, channels, locks, timers, or synchronization.
Why use it?
It helps find data races, leaked goroutines, unbounded work, blocked shutdowns, and timers that keep running after their owner is finished.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when changing goroutines, worker pools, fan-outs, cancellation, shared state, channels, locks, timers, or synchronization.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/dankosik/go-service-template-rest/go-concurrency
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 Dankosik/go-service-template-rest --skill go-concurrency
Clone the repo
git clone --depth 1 https://github.com/Dankosik/go-service-template-rest

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-concurrency/github.svg)](https://agentmods.dev/skills/dankosik/go-service-template-rest/go-concurrency)
Your own site
<a href="https://agentmods.dev/skills/dankosik/go-service-template-rest/go-concurrency"><img src="https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-concurrency/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 go-concurrency

Your own site · 80×15
<a href="https://agentmods.dev/skills/dankosik/go-service-template-rest/go-concurrency"><img src="https://agentmods.dev/badge/skills/dankosik/go-service-template-rest/go-concurrency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 36 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 478 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.00036 $0.00478
Opus 5 $0.00018 $0.00239
Sonnet 5 $0.00007 $0.00096
Haiku 4.5 $0.00004 $0.00048

Measured 3d ago against content hash eee2c26bdb18, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

go-concurrency 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 3d 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.

.agents/skills/go-concurrency/SKILL.md · 38 lines

What it actually says

Go Concurrency

Judge every change by its happens-before story: a claim that two events cannot race is either an edge you can name — channel operation, lock, WaitGroup, Once, atomic — or it is false.

shared state -> goroutine lifetime -> happens-before edges -> cancellation -> unblock and join -> bounds -> proof

Every goroutine has an owner, a signal it observes to stop, a guaranteed unblock for each blocking site, and a join point; a goroutine missing any of these outlives its purpose and leaks work, memory, or writes into freed assumptions. Worker pools and fan-outs carry explicit bounds, and timers and tickers have named stop owners.

Load goroutine leak profiles for goroutine-count growth, shutdown stalls, production liveness incidents, or changes to channel, lock, wait-group, and process-exit ownership.

For a delegated Decision or Review, or when the active artifact requires its result interface, load the shared specialist contract. Trace every changed spawn site to its join or explicit process-lifetime disposition. For interacting goroutines, exhaustive blocking-site coverage, or a decision/review handoff, record GoroutineStory{owner, stop, blocking_sites, unblock, join, bound, happens_before, proof} per path. A single local path can keep its judgment and evidence in the code or existing task artifact. Account for shared state, callers, cancellation, close ownership, timers, and synchronization identity. Complete when every story names an edge or a race and every blocking site has an unblock disposition. The race detector can reject a story; it cannot prove one. Use existing race, leak, synctest, and lint gates for mechanical evidence.

Load the review selector for fire-and-forget or blocked goroutines, publication or lock scope, unbounded fan-out or queues, and timer-driven coordination.

Files

What ships with it

6 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.

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. 3d ago Changed · +5 lines eee2c26bdb18
  2. 6d ago Changed · +4 lines 176cfd13786d
  3. 11d ago First seen · 29 lines · 36 tokens per session scan A 0cd8528dfd3f

Subscribe to this mod's changes

go-concurrency is a skill published in the GitHub repository Dankosik/go-service-template-rest (7 stars, last pushed 3d ago), licensed MIT. It adds 36 tokens to every session and 478 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-31.