Skip to content
Back to skills

Concurrency

ASecurity

Go concurrency patterns. Routes to specific patterns.

  • 3 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
developmentgo

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add JamesPrial/claudefiles --skill concurrency --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Concurrency?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Concurrency
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jamesprial-concurrency/badge)](https://www.skillsdirectory.com/skills/jamesprial-concurrency)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: go-concurrency
description: Go concurrency patterns. Routes to specific patterns.
---

# Concurrency

## Route by Pattern
- Context cancellation → see [context/](context/)
- Goroutine leaks → see [goroutines/](goroutines/)
- Channel patterns → see [channels/](channels/)
- Sync primitives → see [sync/](sync/)

## Quick Check
- [ ] Every goroutine has exit path
- [ ] Context passed and checked
- [ ] Channels closed by sender only
- [ ] WaitGroup Add before go

## Common Pitfalls
1. Launching goroutines without shutdown mechanism
2. Not propagating context through call chains
3. Closing channels from receiver side
4. Using WaitGroup counter incorrectly

## Decision Tree
```
Need coordination? → Use context for cancellation
Need data flow? → Use channels
Need to wait? → Use sync.WaitGroup
Need mutual exclusion? → Use sync.Mutex
```

## References
- [Effective Go: Concurrency](https://go.dev/doc/effective_go#concurrency)
- [Go Concurrency Patterns](https://go.dev/blog/pipelines)

Files in this skill

  • SKILL.md1015 B
  • channels/SKILL.md2.6 KB
  • context/SKILL.md1.7 KB
  • goroutines/SKILL.md2.4 KB
  • sync/SKILL.md2.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.