go-concurrency-pipelines
Installation
SKILL.md
Go Concurrency Pipelines
Every goroutine needs an owner, a stop condition, and a completion path. Bound admission before optimizing throughput.
Core Workflow
- Define input, output, ordering, partial-result, and failure contracts.
- Prefer a synchronous or iterator API unless callers need channel mechanics.
- Assign ownership of goroutines, channel closure, timers, and cancellation.
- Bound concurrency, queues, retries, and memory together.
- Make every blocking send, receive, and wait cancellation-aware.
- Join all owned goroutines on success, failure, cancellation, and early exit.
- Test lifecycle behavior with barriers and deadlines rather than sleeps.
- Review shared maps, slices, locks, wait groups, and copied synchronization values.
- Run race checks and inspect leak-prone paths.