go-concurrency

go-concurrency is a skill for Claude Code from fusengine/agents. It costs 40 tokens per session (1,339 once invoked), scanned A, original, MIT.

A guide for writing and reviewing concurrent Go programs, where multiple tasks run at the same time. It explains goroutines, channels, cancellation with context, error groups, and how to detect data races and leaked goroutines.

In plain words
What is it for?
Use it when working with goroutines, channels, errgroup, context cancellation, race detection, or goroutine-leak investigation.
Why use it?
Concurrent code can hang, leak work, or produce inconsistent results when tasks are not stopped and coordinated correctly. This helps developers structure that code safely and test it for races.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Part of the fuse-go plugin — 5 skills, 1 agent shipped together

Good fit Use it when working with goroutines, channels, errgroup, context cancellation, race detection, or goroutine-leak investigation.

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

Made for: Claude Code.

Or install fuse-go, the plugin that ships this one along with the rest of its 5 skills, 1 agent.

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/fusengine/agents/go-concurrency/github.svg)](https://agentmods.dev/skills/fusengine/agents/go-concurrency)
Your own site
<a href="https://agentmods.dev/skills/fusengine/agents/go-concurrency"><img src="https://agentmods.dev/badge/skills/fusengine/agents/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/fusengine/agents/go-concurrency"><img src="https://agentmods.dev/badge/skills/fusengine/agents/go-concurrency.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,339 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00040 $0.01339
Opus 5.5 $0.00016 $0.00536
Sonnet 5.5 $0.00008 $0.00268
Haiku 4.5 $0.00004 $0.00134

Measured 2mo ago against content hash 112d65dedc34, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

go-concurrency scanned grade A with 1 finding 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

g.Go(func() error { return fetch(ctx, u) })
plugins/go-expert/skills/go-concurrency/SKILL.md · 137 lines

How it starts

The opening of the file, as written. The whole thing — 137 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Go Concurrency

Goroutines, channels, context, and errgroup for Go 1.27 — plus the number-one documented pitfall: leaking goroutines on an unbuffered channel + early return.

Agent Workflow (MANDATORY)

Before ANY implementation, spawn 3 agents in parallel, one Agent call each with a name:

  1. fuse-ai-pilot:explore-codebase - Map existing goroutine/channel/context usage
  2. fuse-ai-pilot:research-expert - Verify errgroup/context docs via Context7/Exa
  3. mcp__context7__query-docs - Confirm golang.org/x/sync/errgroup signatures

After implementation, run fuse-ai-pilot:sniper for validation, and run tests with go test -race ./....


Overview

Feature Description
Goroutines & channels Lightweight concurrency + typed communication
errgroup Parallelism + error aggregation + context cancellation
context First param, propagated strictly, carries cancellation/deadline
WaitGroup vs channels Counting-only vs result/error passing
Race detector -race in tests/CI to catch data races
Leak profile (GA 1.27) pprof.Lookup("goroutineleak") / /debug/pprof/goroutineleak — no GOEXPERIMENT needed

Critical Rules

  1. context.Context is the first parameter - named ctx, never stored in a struct
  2. Every started goroutine must be able to exit - or it leaks (see rule 4)
  3. Prefer errgroup for fan-out with errors - it handles wait + first error + cancel
  4. Unbuffered channel + early return = leak - senders block forever; buffer or drain
  5. Test with -race - a passing test without -race proves nothing about races

Read the full file on GitHub · 137 lines

Files

What ships with it

7 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. 2mo ago Changed · +1 lines 112d65dedc34
  2. 3mo ago Changed 01974753e24c
  3. 3mo ago First seen · 136 lines · 40 tokens per session scan A f87f5b0232ad

Subscribe to this mod's changes

go-concurrency is a skill published in the GitHub repository fusengine/agents (34 stars, last pushed 1mo ago), licensed MIT. It adds 40 tokens to every session and 1,339 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

go-concurrency compared with skills from other repositories

go-concurrency next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
go-concurrencyfusengine/agentsSkill341mo agoMITA40Claude Code
building-telegram-botsisvlasov/rageatc-ossSkill104mo agoMITA68Claude Code
integrate-arcjet-guard-agent-framework-goarcjet/arcjet-pluginSkill14d agoApache-2.0A119Claude Code
polarsK-Dense-AI/scientific-agent-skillsSkill60k6d agoMITA47Claude Code
phx-deps-auditoliver-kriska/claude-elixir-phoenixSkill580todayMITA58Claude Code, Codex
craft-php-guidelinesmichtio/craftcms-claude-skillsSkill932d agoApache-2.0A144Claude Code
craftcmsmichtio/craftcms-claude-skillsSkill932d agoApache-2.0A56Claude Code