# Go concurrency review

> Go concurrency review is an open-source agent skill for developer tools. Reviews Go code for goroutine leaks, data races, channel misuse and context handling. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/eduardo-sl/go-agent-skills/tree/main/skills/(safety)/go-concurrency-review
- **Repository:** https://github.com/eduardo-sl/go-agent-skills
- **GitHub stars:** 90
- **License:** MIT
- **Skill name:** go-concurrency-review
- **Collection:** https://github.com/eduardo-sl/go-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-02

## About

This skill gives an AI coding agent a checklist and set of construction rules for concurrent Go code. It covers goroutine lifecycle, channel ownership and closing, mutexes and atomics, context propagation and avoiding mutable globals, and it is meant for writing new concurrent code as well as reviewing changes.

The agent works in one of three modes: implementation, a default diff review, or a leak and race hunt when a symptom such as a growing goroutine count or a race report is already observed. For full audits it runs separate passes over goroutine start points, shared state, channel topology and context use, and reports findings with file and line references. It ends by running the test suite under the Go race detector.

The skill relies on the Go toolchain, with race detection requiring cgo. Its allowed tools include reading, editing and searching files, plus go and gofmt commands. Detailed reference files cover channel sizing, mutex placement, panic recovery at goroutine boundaries and bounded fan-out.

## When your agent uses it

> Review and implement safe concurrency patterns in Go: goroutines, channels, sync primitives, context propagation, and goroutine lifecycle management. Use when writing concurrent code, reviewing async patterns, checking thread safety, debugging race conditions, or designing producer/consumer pipelines. Trigger examples: "check thread safety", "review goroutines", "race condition", "channel patterns", "sync.Mutex", "context cancellation", "goroutine leak". Not for: general style (go-coding-standards), HTTP handler patterns (go-api-design).

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(safety)/go-concurrency-review)
- [Asks for: Read, Edit, Write, Glob, Grep, Bash(go:*), Bash(gofmt:*)](https://github.com/eduardo-sl/go-agent-skills/blob/HEAD/skills/(safety)/go-concurrency-review/SKILL.md)
- [License: MIT](https://github.com/eduardo-sl/go-agent-skills/tree/HEAD/skills/(safety)/go-concurrency-review)

## Features

- **Goroutine lifecycle checks:** Requires every goroutine to have a termination path through context, a closed channel or a WaitGroup.
- **Channel ownership rules:** Explains who closes a channel, buffer sizing and signalling with empty struct channels.
- **Mutex and atomic guidance:** Covers mutex placement, critical section scope, atomic counters and copy hazards.
- **Context propagation review:** Checks that blocking operations select on context cancellation and that contexts are not stored in structs.
- **Race detection workflow:** Directs the agent to run tests with the race detector and to localize leaks and deadlocks.
- **Panic recovery at goroutine edges:** Describes recovering panics in background goroutines that run third-party or input-dependent code.

## Good for

- Review my Go pull request for goroutine leaks
- Check this worker pool for data races
- Fix a deadlock between two channels
- Add context cancellation to a long-running Go worker
- Design a producer and consumer pipeline in Go

## Install

### Any agent

Download the skill folder from https://github.com/eduardo-sl/go-agent-skills and copy it into your agent's skills folder.

## FAQ

### Does Go concurrency review need anything installed?

It requires the Go toolchain, and race detection requires cgo with CGO_ENABLED=1.

### Which Go-specific tools does Go concurrency review use?

Its allowed tools include go and gofmt commands, and it finishes audits by running go test with the race flag.

### Does Go concurrency review cover HTTP handlers?

No. HTTP handler patterns are handled by a separate go-api-design skill, and general style by go-coding-standards.

### Does Go concurrency review run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Go concurrency review?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Go concurrency review?

The closest alternatives to Go concurrency review are Vibe concurrent test safety, Go code review, Axiom audit concurrency, Go troubleshooting and Go defensive coding.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Vibe concurrent test safety](https://ai-powered.com/skills/vibe-concurrent-test-safety): Vibe concurrent test safety is an open-source agent skill for developer tools.
- [Go code review](https://ai-powered.com/skills/go-code-review): Go code review is an open-source agent skill for developer tools.
- [Axiom audit concurrency](https://ai-powered.com/skills/axiom-audit-concurrency): Axiom audit concurrency is an open-source agent skill for developer tools.
- [Go troubleshooting](https://ai-powered.com/skills/go-troubleshooting): Go troubleshooting is an open-source agent skill for developer tools.
- [Go defensive coding](https://ai-powered.com/skills/go-defensive-coding): Go defensive coding is an open-source agent skill for developer tools.
- [Go test quality](https://ai-powered.com/skills/go-test-quality): Go test quality is an open-source agent skill for developer tools.
- [Go architecture review](https://ai-powered.com/skills/go-architecture-review): Go architecture review is an open-source agent skill for developer tools.
- [Go security audit](https://ai-powered.com/skills/go-security-audit): Go security audit is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/go-concurrency-review
