SkillsReviewed · samber

golang-concurrency by samber

golang-concurrency is a skill for AI coding assistants used by Go developers, but some pipeline examples can remain blocked after cancellation. It supplies guidance and code examples for goroutine lifetimes, channel ownership, synchronization and bounded concurrency.

Researched 16 Nov 2026

In short.

golang-concurrency is a skill for Go developers using AI coding assistants, but its examples require review because some blocking input reads do not respond directly to cancellation. The supplied version identifies itself as 1.2.1 and includes writing, review and audit guidance, three reference guides and 13 evaluation scenarios. The scenarios contain expected assertions without recorded model responses or scores; effectiveness, runtime correctness and assistant compatibility are not assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage comprises all five supplied files under skills/golang-concurrency: SKILL.md, evals/evals.json and the three references covering channels/select, pipelines and synchronization primitives. The repository-level LICENSE is included as the related notice above that folder. All belong to source revision d68d80aec298e1b74b37c2a472c002b5217248b3. Other repository skills, linked documentation, external libraries and later revisions are outside the supplied scope. No code, installation or evaluation was executed; runtime behavior, host compatibility, performance and operating costs remain unassessed.

The overview

identity

golang-concurrency belongs to samber/cc-skills-golang and identifies samber as its author. Its metadata reports version 1.2.1 and describes compatibility with Claude Code, Codex or similar assistant environments working on Go projects.

The source folder is [https://github.com/samber/cc-skills-golang/tree/main/skills/golang-concurrency]. The supplied SKILL.md is pinned to commit d68d80aec298e1b74b37c2a472c002b5217248b3 at [https://raw.githubusercontent.com/samber/cc-skills-golang/d68d80aec298e1b74b37c2a472c002b5217248b3/skills/golang-concurrency/SKILL.md].

assessment

The useful feature is its concrete review structure: identify how each goroutine stops, who owns each channel, where shared state is protected and whether concurrency is necessary. Decision tables connect these questions to channels, mutexes, atomics, WaitGroup and errgroup.

Use it as a checklist and drafting aid whose output receives engineering review. The references contain identifiable cancellation and duplicate-computation pitfalls, while the evaluation file supplies intended behaviors without evidence that a particular model consistently follows them.

users

The intended users are developers asking an assistant to write concurrent Go code, review a pull request or audit concurrency across a codebase. Beginners get explicit checklists and contrasting examples; the examples imply basic familiarity with Go functions, channels, context.Context and the standard synchronization packages.

Its stated scope excludes unrelated defensive programming and debugging a specific hung, crashing or racing program. It directs those tasks toward sibling safety and troubleshooting skills, whose contents are outside this resource.

capabilities

The material covers goroutines, Go's independently scheduled functions, and how their owners can stop and wait for them. Channel guidance addresses send-only and receive-only signatures, producer-controlled closure, buffer sizing, cancellation-aware communication and reusable timers.

The synchronization guide covers Mutex, RWMutex, typed atomics, Map, Pool, Once, WaitGroup, singleflight and errgroup. Pipeline material adds fan-out, fan-in, bounded tasks and sequential iterator alternatives. It recommends race checks and goleak for validation, but supplies no results establishing that generated code passes them.

Using it

requirements

The metadata lists the go executable as a requirement. Using the material as an assistant skill also requires an environment that can load its instructions and references. Minimum assistant versions and compatibility results are unspecified.

Compatibility varies by example. The references label typed atomics for Go 1.19+, iterators for Go 1.23+ and WaitGroup.Go for Go 1.25+; they also distinguish timer handling before and after Go 1.23. Examples using errgroup, singleflight or goleak require those external packages, but exact dependency versions are unspecified.

mechanism

The resource works through instructions loaded by an assistant. SKILL.md establishes priorities, decision rules and references. Writing and pull-request review are described as sequential tasks; a large-codebase audit can be divided among up to five suggested agents covering goroutine exits, shared state, channels, cancellation and synchronization.

Its front matter declares file-reading and editing tools, Go/lint/Git shell commands, agent delegation and user questions as allowed tools. Actual availability and enforcement depend on the host environment and are not established by these declarations.

setup

The supplied files do not specify an installation command or an assistant-specific destination directory. Preserve SKILL.md together with references/channels-and-select.md, references/pipelines.md, references/sync-primitives.md and evals/evals.json so that relative references remain available. Retain the repository LICENSE when copying the material.

Load the folder using the chosen assistant's documented skill mechanism, then check the project's Go version before applying individual examples. Assistant-specific activation and loading behavior are not assessed.

example

One supplied evaluation scenario asks for fetching 50 URLs with at most 10 concurrent operations and stopping remaining work after a failure. Its expected response uses errgroup.WithContext, SetLimit(10) and fetch operations that observe the derived context. This illustrates the intended combination of error propagation, cancellation signaling and bounded activity.

The scenario contains a prompt and expected assertions, not a recorded generated answer. Cancellation still depends on the fetch implementation honoring its context; the group alone does not establish that every operation stops promptly.

Assessment & evidence

limitations

The square and fanIn examples receive input through range loops outside a cancellation-aware select. If an input channel remains open without producing values, those goroutines cannot reach their cancellation branch and can remain blocked after cancellation. This follows from the shown control flow and conflicts with the guide's broader cancellation rule.

The sync.Map GetOrSet example calls compute() as an argument to LoadOrStore. Concurrent callers that miss the initial Load can therefore repeat the computation even if only one value is stored. The separate singleflight example addresses deduplicating concurrent work.

Performance recommendations about map synchronization, atomics and worker-pool choices are not accompanied by workload measurements. The evaluation scenarios provide no scored outputs, baseline comparisons or evidence of improved reliability.

reasoning

The strongest basis for using this skill is the explicit reasoning it asks developers to apply: determine whether concurrency is needed, identify ownership, define shutdown and choose synchronization according to the task. These questions make a review concrete. The incomplete cancellation examples and eager computation example show why agreement with a checklist does not establish correctness; inspect blocking operations and shared-state access in the resulting code.

alternatives

For direct study, the skill points to Go Concurrency Patterns: Pipelines [https://go.dev/blog/pipelines] and Effective Go: Concurrency [https://go.dev/doc/effective_go#concurrency]. Their current contents and comparative quality are not assessed.

For sequential in-memory transformations, the supplied guide suggests simple slice operations or Go 1.23+ iterators. For work needing per-worker state, custom scheduling or graceful draining, it allows a custom worker pool. These are task-specific alternatives within its guidance.

evidence

The source snapshot contains SKILL.md, three reference guides, evals/evals.json and the repository LICENSE. The reference guides provide inspectable code examples supporting conclusions about structure and specific control-flow limitations.

The evaluation file defines 13 scenarios covering timers, channel ownership, WaitGroup ordering, directional channels, buffering, shared values, errgroup, cancellation, maps, pools, panic recovery, singleflight and iterators. These are author-provided expectations. No execution results, recorded model responses or aggregate scores are included.

Access & freshness

costs

The MIT licence grants use without a licence fee. Assistant subscriptions, model usage, local or CI compute, and any multi-agent audit costs are unspecified, so total operating cost is unknown. The supplied material contains no measurements of token use, execution time or developer time savings.

rights

SKILL.md declares MIT licensing. The repository LICENSE names Samuel Berthe, copyright 2026, and permits use, copying, modification, distribution, sublicensing and sale. Copies or substantial portions must retain the copyright and permission notice.

The licence provides the material without warranty. Its permissions support redistribution of the captured skill files with the required notice; the supplied licence does not establish terms for separately obtained tools or dependencies.

freshness

The supplied snapshot was captured on 16 November 2026 at commit d68d80aec298e1b74b37c2a472c002b5217248b3. Its metadata reports version 1.2.1. A release date for that version and subsequent source changes are unknown.

SKILL.md claims that a goroutine leak profile is generally available in Go 1.27. The supplied material contains no corroborating Go release documentation, so release status and availability of that diagnostic remain unverified. Confirm support before relying on the listed goroutineleak profiling endpoint.

actions

Before adopting the examples, match their APIs and loop semantics to the project's Go version. Correct blocking pipeline reads so cancellation can interrupt waiting, and use the singleflight pattern when concurrent callers must share one expensive computation.

Choose writing, diff review or broader audit according to the task and the assistant's supported capabilities. For resulting code, the source recommends go test -race ./... and goleak checks. These remain proposed validation steps; no execution outcome is established.

Evidence for this report

LICENSEnotice · checked 2026-11-16
skills/golang-concurrency/SKILL.mdselected · checked 2026-11-16
skills/golang-concurrency/evals/evals.jsonselected · checked 2026-11-16