Concurrency Patterns

Actor model, CSP (Communicating Sequential Processes), lock-free patterns, async/await.

48 stars 10 forksAI, LLMs & Agents Plugin marketplace

Install

Claude Code plugin
/plugin marketplace add sethdford/claude-skills

The repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add sethdford/claude-skills --skill concurrency-patterns
Manual install
git clone --depth 1 https://github.com/sethdford/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/engineer/implementation-patterns/skills/concurrency-patterns ~/.claude/skills/concurrency-patterns

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# Concurrency Patterns

Patterns for safe concurrent programming.

## Context

You are choosing a concurrency model. Each has different characteristics.

## Domain Context

- **Shared Memory**: Threads share memory; synchronize with locks
- **Message Passing**: Actors/processes; no shared memory; communicate via messages
- **Async/Await**: Cooperative multitasking; single-threaded event loop
- **Lock-Free**: Use atomic operations instead of locks

## Instructions

1. **Shared Memory**: Use for tightly-coupled code; sync with locks or atomic ops
2. **Actor Model**: Isolated actors, message-based; scale to many cores easily
3. **CSP**: Goroutines + channels; lightweight, composable
4. **Async/Await**: Single-threaded; good for I/O-bound workloads
5. **Lock-Free**: Complex; use only where locks are provably bottleneck
6. **Choose Wisely**: Wrong model makes everything harder

## Anti-Patterns

- Shared memory + locks everywhere; locks are error-prone
- Message passing when you need shared mutable state; forces unnecessary copies
- Async/await for CPU-bound work; won't help
- Lock-free without deep understanding; very easy to get wrong
- Mixing concurrency models in same codebase; confuses reasoning

## Further Reading

- Carl Hewitt, _Actor Model_ (original paper)
- Go documentation on Goroutines and Channels
- Rust documentation on Async/Await
Read the full skill on GitHub

Details

Skill name
concurrency-patterns
Path
engineer/implementation-patterns/skills/concurrency-patterns/SKILL.md
License
MIT
Repo updated
11 March 2026

FAQ

What does the Concurrency Patterns skill do?

Actor model, CSP (Communicating Sequential Processes), lock-free patterns, async/await.

How do I install the Concurrency Patterns skill?

Claude Code plugin: /plugin marketplace add sethdford/claude-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Concurrency Patterns popular?

It lives in sethdford/claude-skills, which has 48 GitHub stars and 10 forks.

Related skills

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.