golang-concurrency

Analyze Go code for concurrency issues like goroutine leaks and race conditions.

Updated May 19, 2026
One-click install
npx skills add https://github.com/monforje/.opencode --skill golang-concurrency-monforje
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-concurrency
Source: https://github.com/monforje/.opencode/tree/main/skills/cc-skills-golang/skills/golang-concurrency
Command: npx skills add https://github.com/monforje/.opencode --skill golang-concurrency-monforje

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires golangci-lint, go.uber.org/goleak, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the complexities of Go concurrency, helping developers write efficient, safe, and maintainable concurrent code.

Core Features & Use Cases

  • Concurrency Patterns: Offers guidance on best practices for goroutines, channels, and synchronization primitives.
  • Code Review: Assists in reviewing PRs for common concurrency issues like goroutine leaks and race conditions.
  • Audit Mode: Enables comprehensive auditing of existing codebases for concurrency-related issues.
  • Use Case: When working on a Go project with complex concurrency requirements, this Skill can help ensure that your code is both performant and free of concurrency bugs.

Quick Start

Analyze your Go code for concurrency issues using the golang-concurrency skill.

Frequently Asked Questions about golang-concurrency

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I detect goroutine leaks in my Go code?

You can identify race conditions in Go code by applying static analysis with golangci-lint and reviewing synchronization primitives. This Skill audits concurrent code to catch race conditions during development and PR reviews.

How do I find race conditions in my Go project?

You can identify race conditions in Go code by applying static analysis with golangci-lint and reviewing synchronization primitives. This Skill audits concurrent code to catch race conditions during development and PR reviews.

What is the best way to review Go channels and goroutines for concurrency issues?

You need golangci-lint and go.uber.org/goleak installed in your environment to use this Skill. These dependencies enable the static analysis and leak detection required to audit Go concurrency patterns effectively.

Do I need golangci-lint and goleak to analyze Go concurrency?

You need golangci-lint and go.uber.org/goleak installed in your environment to use this Skill. These dependencies enable the static analysis and leak detection required to audit Go concurrency patterns effectively.

When should I audit my Go codebase for concurrency bugs?

You can detect goroutine leaks in Go code by running an audit mode analysis that checks synchronization primitives and leverages tools like go.uber.org/goleak to identify orphaned goroutines. This ensures your concurrent code remains safe and maintainable.