xuansenpa1/skillrevise/erlang-concurrency
Claude Code and agent skill by xuansenpa1/skillrevise
- community
Checking that the SKILL.md file is still in the repository.
Use when erlang's concurrency model including lightweight processes, message passing, process links and monitors, error handling patterns, selective receive, and building massively concurrent systems on the BEAM VM.
Install
npx vskill@latest install xuansenpa1/skillrevise/erlang-concurrencySKILL.md
The same SKILL.md was published earlier as benchflow-ai/skillsbench/erlang-concurrency.
Erlang Concurrency
Introduction
Erlang's concurrency model based on lightweight processes and message passing enables building massively scalable systems. Processes are isolated with no shared memory, communicating asynchronously through messages. This model eliminates concurrency bugs common in shared-memory systems.
The BEAM VM efficiently schedules millions of processes, each with its own heap and mailbox. Process creation is fast and cheap, enabling "process per entity" designs. Links and monitors provide failure detection, while selective receive enables flexible message handling patterns.
This skill covers process creation and spawning, message passing patterns, process links and monitors, selective receive, error propagation, concurrent design patterns, and building scalable concurrent systems.
Process Creation and Spawning
Create lightweight processes for concurrent task execution.
Lightweight processes enable massive concurrency with minimal overhead.
Message Passing Patterns
Processes communicate through asynchronous message passing without shared memory.
Message passing enables safe concurrent communication without locks.
Links and Monitors
Links bidirectionally connect processes while monitors provide one-way observation.
Links and monitors enable building fault-tolerant systems with automatic failure detection.
Best Practices
- Create processes liberally as they are lightweight and cheap to spawn
- Use message passing exclusively for inter-process communication
without shared state
- Implement proper timeouts on receives to prevent indefinite blocking
- Use monitors for one-way observation when bidirectional linking unnecessary
- Keep process state minimal to reduce memory usage per process
- Use registered names sparingly as global names limit scalability
- Implement proper error handling with links and monitors for fault tolerance
- Use selective receive to handle specific messages while leaving others queued
- Avoid message accumulation by handling all message patterns in receive clauses
- Profile concurrent systems to identify bottlenecks and optimize hot paths
Common Pitfalls
- Creating too few processes underutilizes Erlang's concurrency model
- Not using timeouts in receive causes indefinite blocking on failure
- Accumulating messages in mailboxes causes memory leaks and performance degradation
- Using shared ETS tables as mutex replacement defeats isolation benefits
- Not handling all message types causes mailbox overflow with unmatched messages
- Forgetting to trap exits in supervisors prevents proper error handling
- Creating circular links causes cascading failures without proper supervision
- Using processes for fine-grained parallelism adds overhead without benefits
- Not monitoring spawned processes loses track of failures
- Overusing registered names creates single points of failure and contention
When to Use This Skill
Apply processes for concurrent tasks requiring isolation and independent state.
Use message passing for all inter-process communication in distributed systems.
Leverage links and monitors to build fault-tolerant supervision hierarchies.
Create process pools for concurrent request handling and parallel computation.
Use selective receive for complex message handling protocols.
Resources
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingdata/skillsbench/tasks/fix-erlang-ssh-cve/environment/skills/erlang-concurrency/SKILL.md
Popularity
- Repository stars
- 56
- Repository forks
- 3
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/xuansenpa1/skillrevise/erlang-concurrency)