go-goroutine-leaks

Detect goroutine leaks and implement clean exit patterns.

3|Updated Nov 28, 2025
One-click install
npx skills add https://github.com/JamesPrial/claudefiles --skill go-goroutine-leaks
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-goroutine-leaks
Source: https://github.com/JamesPrial/claudefiles/tree/main/skills/golang/concurrency/goroutines
Command: npx skills add https://github.com/JamesPrial/claudefiles --skill go-goroutine-leaks

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill demonstrates patterns to ensure goroutines have a clean exit path to avoid leaks.

Core Features & Use Cases

  • Done Channel: Use a done channel to signal termination.
  • Context: Use context cancellation in goroutines.
  • Safe Blocking: Avoid blocking sends without readers.

Quick Start

Create a worker that stops on a done signal or ctx.Done().