Go Race Triage

Hunt data races, concurrent map writes and deadlocks in Go. Run go test -race -count=N -shuffle=on in CI on every change, read a race report's access stacks first, then the goroutine creation sites below them, and decide ownership before locking: confine state to one goroutine or guard a documented set of fields with one mutex. For hangs, take SIGQUIT dumps (GOTRACEBACK=system at start-up adds runtime goroutines) and the block and mutex profiles, then write the lock order down. Use whenever "fatal error: concurrent map writes", "go test -race reports a race", "it hangs and all goroutines are asleep", "flaky test only with -count=100", or "should I add a mutex here". Not for goroutines that never exit (go-goroutine-leak), check-then-act races in the database (transaction-race-hunt), or order-dependent test pollution (test-order-bisect).

greenblacked Updated
The twenty-nine plugins: coding, family, gamedev, operations, delivery, security, manager, personal, career, design, llm, data, techdocs, assurance, client-apps

File contents

greenblacked/AI commit b61b4eb58b

Frequently asked questions

npx get-skill add greenblacked/go-race-triage