go-debugging

Automate Go debugging setup for delve, race detection, and panic diagnosis.

1|Updated Mar 22, 2026
One-click install
npx skills add https://github.com/caraya/agent-skills --skill go-debugging
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-debugging
Source: https://github.com/caraya/agent-skills/tree/main/skills/go-debugging
Command: npx skills add https://github.com/caraya/agent-skills --skill go-debugging

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go debugging often requires manual configuration of delve, race detectors, and profiling tools, making it hard to reproduce and diagnose concurrency issues quickly.

Core Features & Use Cases

  • Delve setup and integration to debug Go packages with breakpoints, variable inspection, and step-through execution.
  • Race detector guidance to build and run with -race for data-race identification.
  • Profiling and inspection workflows using pprof for goroutines, CPU, and memory traces.
  • Panic diagnosis and stack context capture for failure analysis.

Quick Start

Run delve to attach to the current module or launch with delve enabled, then set breakpoints and inspect goroutines to reproduce a race or panic.

Frequently Asked Questions about go-debugging

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

FAQPage Schema
How do I debug a goroutine leak in Go?

Debug a goroutine leak in Go by using pprof to capture goroutine traces and inspect active stacks. This Skill automates the profiling workflow setup to identify blocked or leaked goroutines.

How do I set up delve for step-through debugging in Go applications?

Set up delve for Go debugging by attaching it to your current module or launching it with breakpoints enabled. This Skill automates variable inspection and step-through execution workflows.

How do I use the Go race detector to find data races?

Use the Go race detector by building and running your application with the -race flag. This Skill provides targeted guidance on interpreting race detection output to resolve data races.

Can I use pprof for CPU and memory profiling in Go?

Yes, pprof supports CPU and memory profiling in Go. This Skill automates pprof inspection workflow setup to capture and analyze traces for goroutines, CPU usage, and memory allocation.

What is the best way to diagnose a panic in Go?

The best way to diagnose a Go panic is to capture the stack context during failure. This Skill automates panic diagnosis and stack context capture for accurate failure analysis and reproduction.

Does this Go debugging approach work for race conditions and context cancellation issues?

Yes, this approach handles race conditions and context cancellation issues in Go. It targets these specific debugging scenarios using race detection, delve, and pprof for repeatable workflows.