Skip to content
Back to skills

Forge Go Concurrency

ASecurity

Write safe Go concurrency with contexts, errgroup, bounded worker pools, channels that close and the race detector

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
ai-agentsgo

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add ansh44233/forge --skill forge-go-concurrency --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Forge Go Concurrency?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Forge Go Concurrency
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ansh44233-forge-go-concurrency/badge)](https://www.skillsdirectory.com/skills/ansh44233-forge-go-concurrency)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: forge-go-concurrency
description: Write safe Go concurrency with contexts, errgroup, bounded worker pools, channels that close and the race detector
---

<!-- Generated from catalog/skills/go-concurrency/SKILL.md by scripts/build-plugin.ts. Edit the catalog, not this file. -->

# Go concurrency

Use in Go code that starts goroutines.

## Lifecycle
- Every goroutine has a clear owner and exit path; pass `context.Context` and stop on `ctx.Done()`.
- Use `errgroup.WithContext` for fan-out with error propagation; bound parallelism with `SetLimit`.

## Channels and state
- The sender closes channels; never close from the receiver.
- Protect shared state with `sync.Mutex` or confine it to one goroutine; no unsynchronized map writes.

## Pitfalls
- Loop variable capture is fixed in Go 1.22+, but check the module's go version.
- Don't leak goroutines blocked on channels nobody reads; use buffered channels or select with ctx.

## Verify
`go test -race ./...` passes, and a test cancels the context mid-work and asserts all goroutines exit (e.g. with `goleak`).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.