Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design, implement, test, and review bounded in-process Go concurrency using goroutines, channels, iterators, mutexes, shared collections, WaitGroup, errgroup, backpressure, ordering, cancellation, and deterministic lifecycle checks. Use when building worker pools, streaming pipelines, concurrent batches, background stages, or diagnosing races, goroutine leaks, blocked operations, synchronization ownership, and shutdown failures.
.claude/skills/hashgraph-online-go-concurrency-pipelines/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | 6% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 10% | 0% |
| case-04 | ✓→✓ | = Same ✓ | 16% | 0% |
| case-05 | ✓→✓ | = Same ✓ | 45% | 0% |
| case-06 | ✓→✓ | = Same ✓ | 4% | 0% |
Every goroutine needs an owner, a stop condition, and a completion path. Bound admission before optimizing throughput.
| Task | Load | |---|---| | Design a pipeline | guidelines.md, workflows/design-cancellable-pipeline.md | | Review goroutine ownership | workflows/review-goroutine-lifecycle.md | | Test concurrency deterministically | workflows/test-concurrency-contract.md | | Choose channels, iterators, buffers, or ordering | references/concurrency-pipelines/knowledge.md, references/concurrency-pipelines/rules.md | | Review mutexes, WaitGroup, errgroup, or shared collections | references/concurrency-pipelines/rules.md, references/concurrency-pipelines/examples.md | | Review patterns | references/concurrency-pipelines/examples.md |
select guarantees fairness.Guidance is transformed and paraphrased from Inanc Gumus, Go by Example: Programmer's Guide to Idiomatic and Testable Programs (Manning, 2025), Chapters 6-7 and Appendix E. Examples are original.
Synchronization, context, and shared-collection guidance also incorporates transformed material from Teiva Harsanyi, 100 Go Mistakes and How to Avoid Them (Manning, 2022), Chapters 8-9.
Book: https://www.manning.com/books/go-by-example
Verify language and API behavior against https://go.dev/ref/spec, https://pkg.go.dev/context, https://pkg.go.dev/iter, and https://go.dev/doc/articles/race_detector.
Other measured skills in the registry, with their headline benchmark lift.