go-sync-primitives

Implement Go sync primitives like WaitGroup and Mutex correctly.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides reliable usage of sync.WaitGroup, sync.Mutex, and related patterns.

Core Features & Use Cases

  • WaitGroup: Correct Add before go and proper capture.
  • Mutex: Always unlock with defer; protect critical sections.
  • Race Prevention: Guidance on using sync.Once for single-initialization.

Quick Start

Implement a small parallel workload guarded by a WaitGroup and protected with a Mutex.