golang-concurrency-patterns

Community

Write race-free, cancellation-aware Go

Authorbobmatnyc
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps developers write robust and efficient concurrent Go applications by providing patterns to avoid common pitfalls like deadlocks, data races, and goroutine leaks.

Core Features & Use Cases

  • Context Propagation: Ensures cancellation signals are passed correctly through goroutines.
  • Error Handling: Utilizes errgroup for coordinated concurrent task execution and error propagation.
  • Resource Management: Demonstrates bounded concurrency using semaphores and worker pools to prevent resource exhaustion.
  • Use Case: When building a microservice that processes multiple requests concurrently, use these patterns to ensure that if one request fails, others are gracefully cancelled, and that the service doesn't spin up an unbounded number of goroutines.

Quick Start

Use the golang-concurrency-patterns skill to implement a bounded fan-out pattern for processing a list of items concurrently.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: golang-concurrency-patterns
Download link: https://github.com/bobmatnyc/claude-mpm-skills/archive/main.zip#golang-concurrency-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.