Go Concurrency Patterns
go-concurrency-patterns
Master Go concurrency with goroutines, channels, sync primitives, and context. Use when building concurrent Go applications, implementing worker pools, or debugging race conditions.
SKILL.md
Full skill instructions
Go Concurrency Patterns
Production patterns for Go concurrency including goroutines, channels, synchronization primitives, and context management.
Use this skill when
- Building concurrent Go applications
- Implementing worker pools and pipelines
- Managing goroutine lifecycles
- Using channels for communication
- Debugging race conditions
- Implementing graceful shutdown
Do not use this skill when
- The task is unrelated to go concurrency patterns
- You need a different domain or tool outside this scope
Instructions
- Clarify goals, constraints, and required inputs.
- Apply relevant best practices and validate outcomes.
- Provide actionable steps and verification.
- If detailed examples are required, open
resources/implementation-playbook.md.
Resources
resources/implementation-playbook.mdfor detailed patterns and examples.
<!-- AGI-INTEGRATION-START -->
AGI Framework Integration
Adapted for @techwavedev/agi-agent-kit Original source: antigravity-awesome-skills
Memory-First Protocol
Retrieve prior Architecture Decision Records (ADRs), trade-off analyses, and system design rationale. Critical for maintaining consistency across long-running projects.
# Check for prior architecture/design context before starting
python3 execution/memory_manager.py auto --query "architecture decisions and trade-off analysis for Go Concurrency Patterns"
Storing Results
After completing work, store architecture/design decisions for future sessions:
python3 execution/memory_manager.py store \
--content "Architecture: event-driven microservices with CQRS, Pulsar for messaging, Qdrant for semantic search" \
--type decision --project <project> \
--tags go-concurrency-patterns architecture
Multi-Agent Collaboration
Broadcast architecture decisions to ALL agents so implementation stays aligned with the chosen patterns.
python3 execution/cross_agent_context.py store \
--agent "<your-agent>" \
--action "Completed architecture review — ADR documented, trade-offs analyzed, team aligned" \
--project <project>
Control Tower Coordination
Register architecture tasks in the Control Tower so all agents across machines know the current system design and constraints.
<!-- AGI-INTEGRATION-END -->