chao-go-sync
go sync skills from 《深入理解Go并发编程》
This is a Go concurrency skill package designed for AI coding agents that support a plugin system, such as Claude Code. It provides specialized guidance on concurrent programming in Go, drawing from a book on the subject. The README is written entirely in Chinese.
The skill covers a wide range of concurrency topics: diagnosing deadlocks, data races, and goroutine leaks; optimizing lock granularity and suggesting lock-free alternatives; reviewing usage of Go's standard sync primitives; and recommending appropriate patterns for specific scenarios. It also covers version migration across Go 1.20 through 1.27 and distributed concurrency patterns built on top of etcd.
Knowledge areas include the standard library's concurrency tools such as Mutex, RWMutex, WaitGroup, Cond, Once, Pool, sync.Map, atomic operations, channels, and context. Official extension packages covering semaphore, SingleFlight, ErrGroup, and rate limiting are included, as is a collection of third-party concurrency libraries. The skill also covers 13 or more named concurrency patterns, classic problems such as the dining philosophers problem with four different solutions, and distributed synchronization primitives built on etcd including leader election, distributed locks, queues, barriers, and software transactional memory.
To install it, you run a single npx command pointing at the repository, or paste the installation URL into an agent that supports the Skills protocol. Once installed, the skill activates automatically when Go concurrency topics come up in conversation and can also be invoked manually with a slash command.
Reference material is organized into separate files covering traps, patterns, version changes, deadlock diagnosis, memory model notes, extended primitives, third-party libraries, concurrency patterns, distributed primitives, and classic problems.