go-debugging
Go debugging skill for delve setup, race condition detection, goroutine tracking, and panic diagnosis.
Skill by caraya
Chalk Labs
Need help deploying go-debugging?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/caraya-go-debugging
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/go-debugging
What's inside
- Skill name
go-debugging- Description
- Go debugging skill for delve setup, race condition detection, goroutine tracking, and panic diagnosis. Trigger phrases: Go debug, delve, race condition, goroutine leak, panic recovery, context leak, deadlock, -race flag.
- License
- MIT
- Instructions
- 65 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Go Debugging
## Use When
- Debugging Go code with delve or gdb.
- Investigating goroutine leaks and race conditions.
- Analyzing panics and recovering stack context.
- Diagnosing context abortion and cancellation issues.
## Setup and Tools
1. Delve debugging
- **Installation**: `go install github.com/go-delve/delve/cmd/dlv@latest`.
- **Starting**: `dlv debug` (current package) or `dlv debug ./cmd/app`.
- **Breakpoints**: `break main.main`, `break package.Function:line`.
- **VS Code**: Use the official Go extension; it integrates delve automatically.
2. Race detector
- **Build with `-race`**: `go build -race` or `go test -race`.
- **Run**: `./app` or `go test -race ./...`.
- Detects data races on goroutine access to shared memory.
3. Profiling and inspection
- **pprof**: `import _ "net/http/pprof"`, start a server with `go http.ListenAndServe("localhost:6060", nil)`, then visit `http://localhost:6060/debug/pprof/`.
- **goroutine dump**: `curl http://localhost:6060/debug/pprof/goroutine` for live goroutine list.
- **CPU and memory profiling**: Built into pprof; analyze with `go tool pprof`.
## Checklist
1. Goroutine leaks
- Compare goroutine dumps (`/debug/pprof/goroutine?debug=2`) before and after the operation to find goroutines that never exit.
- Count goroutines at startup vs. after operations: `runtime.NumGoroutine()`.
- Check that all spawned goroutines have clean exit paths.
- Verify channels are closed by the sender; stuck receivers leak goroutines.
2. Data races
- Use `-race` flag to detect unexpected concurrent access.
3. Context and cancellation
- Propagate context through all I/O operations and goroutines.
- Use `context.WithCancel()` or `context.WithTimeout()` appropriately.
- Check that cancellation handlers (deferred cleanup) run even if context is cancelled.
4. Deadlocks and locks
- Ensure mutexes are unlocked in all code paths (use `defer unlock()`).
- Avoid nested locks or ensure consistent lock ordering.
- Use `RWMutex` for read-heavy workloads instead of `Mutex`.
5. Panic and recovery
- Catch panics at goroutine entry points (not in library code).
- Log panic stack with `debug.Stack()` for troubleshooting.
- Distinguish panics (bugs) from errors (expected failures).
6. Memory and heap
- Be cautious with large allocations in loops; move out of loop if possible.
- Release resources (close files, connections) with `defer`.
- Use pointers for large structs passed to functions to avoid unnecessary copies.
## Output Requirements
For each finding provide:
- Issue description
- Evidence (race condition output, goroutine dump, panic stack)
- Root cause category, e.g. goroutine leak, data race, context/cancellation issue, deadlock, panic, memory/heap misuse, or other (state explicitly)
- Steps to reproduce using the most appropriate tool for the issue type (delve for panics/deadlocks, -race for data races, pprof or runtime.NumGoroutine() for leaks and memory)
- Fix strategy
If no evidence is available, state that explicitly under Evidence and list the exact commands the user should run to gather it. If no issues are found, say so and summarize the checks performed.From caraya/agent-skills, MIT.
More from caraya/agent-skills
- 0.592score
design-system
caraya
Organise and maintain a consistent design system through contracts, discovery, reuse and verification.
SkillAFreshness: A★ 1Claude Code +9 - 0.582score
dev
caraya
Development workflows for the playwright-cli repository.
SkillAFreshness: A★ 1Claude Code +9 - 0.497score
delivery-self-paced
caraya
Instructional design patterns for self-paced developer education: motivation maintenance, progress tracking, chunking for independent study, asynchronous…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
delivery-classroom
caraya
Instructional design patterns for synchronous classroom delivery of developer education: lecture + live coding, pacing, group dynamics, real-time feedback…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-methodology
caraya
General debugging skill for investigative workflow, error interpretation, and common debugging patterns across languages.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
delivery-workshop
caraya
Instructional design patterns for hands-on developer workshops: intensive practice, collaborative problem-solving, peer learning, facilitated labs, and…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-pedagogy
caraya
Explicit debugging instruction for developers: five-stage framework, hypothesis testing, tools, and common error patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
accessibility-core
caraya
Accessibility skill for WCAG 2.1 AA compliance, keyboard navigation, ARIA labels, focus management, meaningful empty and error states, responsive design, and…
SkillCFreshness: C★ 1Claude Code +9 - 0.490score
accessibility-react
caraya
React-specific accessibility skill for WCAG 2.1 AA compliance, keyboard navigation, ARIA patterns, focus management, meaningful empty and error states…
SkillCFreshness: C★ 1Claude Code +9 - 0.429score
go-formatting
caraya
Go formatting skill for gofmt, goimports, and IDE configuration.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
devrel-integration
caraya
Integrating instructional design with developer relations: developer journey, segmentation, DDMU, and community learning pathways.
SkillDFreshness: D★ 1Claude Code +9 - 0.429score
evaluation-iteration
caraya
Evaluation approaches and iterative development for learning products: pilot plans, SAM cycles, Kirkpatrick, and friction logging.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Mar 22, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/caraya/agent-skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from caraya
- 0.592score
design-system
caraya
Organise and maintain a consistent design system through contracts, discovery, reuse and verification.
SkillAFreshness: A★ 1Claude Code +9 - 0.582score
dev
caraya
Development workflows for the playwright-cli repository.
SkillAFreshness: A★ 1Claude Code +9 - 0.497score
delivery-self-paced
caraya
Instructional design patterns for self-paced developer education: motivation maintenance, progress tracking, chunking for independent study, asynchronous…
SkillCFreshness: C★ 1Claude Code +9 - 0.497score
delivery-classroom
caraya
Instructional design patterns for synchronous classroom delivery of developer education: lecture + live coding, pacing, group dynamics, real-time feedback…
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-pedagogy
caraya
Explicit debugging instruction for developers: five-stage framework, hypothesis testing, tools, and common error patterns.
SkillCFreshness: C★ 1Claude Code +9 - 0.494score
debugging-methodology
caraya
General debugging skill for investigative workflow, error interpretation, and common debugging patterns across languages.
SkillCFreshness: C★ 1Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get go-debugging running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
go-debugging skill. Agent Mart. https://agentmart.dev/skills/caraya-go-debugging (last updated 2026-10-24)