goroutine-leak-check

Detect and fix goroutine leaks in Go applications using goleak.

Updated Jun 18, 2026
One-click install
npx skills add https://github.com/oioio-space/unpixel --skill goroutine-leak-check
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: goroutine-leak-check
Source: https://github.com/oioio-space/unpixel/tree/main/.claude/skills/goroutine-leak-check
Command: npx skills add https://github.com/oioio-space/unpixel --skill goroutine-leak-check

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill is designed to detect and resolve goroutine leaks in Go code, helping maintain memory efficiency and program correctness.

Core Features & Use Cases

  • Detects Goroutine Leaks: Identifies goroutines that may be stuck, potentially leading to memory leaks.
  • Integration with goleak: Uses the uber-go/goleak tool to analyze code and find leaks.
  • Automated Leak Fixing: Provides guidance on how to fix leaks based on known patterns.

Quick Start

Run the mise run leak command to check for goroutine leaks in your codebase.

Frequently Asked Questions about goroutine-leak-check

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

FAQPage Schema
How do I detect and fix goroutine leaks in Go applications?

You can detect and fix goroutine leaks in Go applications by running automated code analysis with goleak, which identifies stuck goroutines and provides actionable fixes to restore memory efficiency.

What causes a goroutine leak in concurrent Go codebases?

A goroutine leak occurs when concurrent goroutines become stuck and are never terminated, leading to memory leaks; this Skill analyzes your Go code to identify these blocked routines and recommend fixes.

Do I need a specific Go version to run goroutine leak analysis?

Yes, you need Go 1.26 or later to use this built-in goroutine leak analysis, which targets Go codebases utilizing concurrent patterns and relies on the uber-go/goleak dependency for detection.

How do I check my Go codebase for memory leaks with goleak?

To check for memory leaks with goleak, run the provided leak script command, which analyzes your concurrent Go code to find stuck goroutines and outputs guidance on how to fix the identified leak patterns.

Are there limitations when using goleak for goroutine leak detection?

The main limitation is that this goroutine leak detection requires Go 1.26 or later and is primarily designed for Go codebases that utilize concurrent patterns, meaning non-concurrent code will not benefit from this analysis.