Structures goroutines with owned lifecycles, context propagation, and channel patterns to prevent leaks and races. Use when writing concurrent Go or debugging goroutine leaks and data races.
Goroutines are cheap to start and easy to leak. The discipline: every goroutine has an owner who knows how it stops, every blocking operation can be cancelled, and shared data has exactly one guardian.
sync.WaitGroup, errgroup) are decided at the
go statement, not later. A goroutine blocked forever on a
channel nobody writes is the standard Go leak; watch
runtime.NumGoroutine() in tests and profiles (see memory-leaks).ctx context.Context as the first parameter, checked in loops
(select on ctx.Done()), passed into I/O and subprocesses;
cancellation then flows top-down through the whole call tree
(the deadline-budget idea from timeouts-and-retries). Deriving
with context.WithTimeout at each boundary keeps one slow branch
from holding the request open.sync.Mutex guards shared state
accessed in place (counters, maps, caches). Using channels to
simulate shared variables, or mutexes to build queues, produces
the convoluted versions of both. One writer owning the data and
others messaging it is the idiomatic middle.v, ok := <-ch or range. Unbuffered = synchronization point;
small fixed buffers = decoupling with backpressure intact
(see backpressure); "big buffer to fix a deadlock" hides the bug
until production finds it. With multiple senders, coordinate
shutdown through a done-channel or errgroup instead of closing.errgroup.WithContext runs N tasks, cancels siblings on first
error, waits for all, returns the error: replacing the
WaitGroup+error-channel boilerplate most bugs live in. Bound
parallelism with SetLimit rather than unbounded goroutine
storms against downstreams.go test -race in CI always (see concurrency-testing); it
catches real races with near-zero false positives. Treat every
report as a bug even when output "looks fine": racy programs
have undefined behavior by spec. go vet and staticcheck flag
the classic misuse patterns (loop-variable capture pre-1.22,
copied mutexes).GOMAXPROCS, and heavy compute may still
belong in worker pools sized to cores (see python-concurrency for
the same workload triage in another runtime).sync/atomic is for counters and flags with proven contention;
reach for it after a mutex profile says so, not before (see
concurrency-tuning).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Not loaded · from ai-skills-commands
Claude Code won't load this skill
It ships in ai-skills-commands at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub amey-thakur/ai-skills --plugin ai-skills-commands1,000 skills in this plugin
/ab-test-designDesign product experiments with real hypotheses, honest sample-size math, guardrails, and peeking discipline. Use when validating a change by experiment or reviewing a test before believing its result./accessibility-reviewAudit a UI for real accessibility, keyboard-first, with concrete failures and fixes rather than checkbox compliance. Use when reviewing or building any user interface./accessibility-specialist-roleOperate as an accessibility specialist who audits against WCAG, trains teams to stop shipping the same defects, and owns the compliance sign-off. Use when a product needs to be usable with a keyboard, a screen reader, or magnification and someone must certify it before launch.Other plugins' skills for the same job