Skip to content
Skills Library
Programming · Building & coding

elixir-otp-concurrency

/elixir-otp-concurrency

Use this skill when building resilient, fault-tolerant concurrent services using Elixir GenServer, Supervisors, and message passing.

Licence
MIT
Last repository change
28.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
0
Deprecation

No signals detected. Repository changed on 28.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use this skill when building resilient, fault-tolerant concurrent services using Elixir GenServer, Supervisors, and message passing.

Original author description

Use this skill when building resilient, fault-tolerant concurrent services using Elixir GenServer, Supervisors, and message passing.

How it works

  1. When to use
  2. Prerequisites
  3. Step-by-step workflow
  4. Commands / code examples
  5. Common mistakes & pitfalls
  6. Verification checklist
  7. Related skills
Original SKILL.md headings · 64 lines, 292 words
SKILL.md preview
---
name: elixir-otp-concurrency
description: Use this skill when building resilient, fault-tolerant concurrent services using Elixir GenServer, Supervisors, and message passing.
---
# Elixir OTP Concurrency & GenServer

## When to use
Use this skill when you need to building resilient, fault-tolerant concurrent services using Elixir GenServer, Supervisors, and message passing.

## Prerequisites
- Working knowledge of relevant programming language or database fundamentals.
- Access to testing environment or local runtime instance.

## Step-by-step workflow
1. **Analyze operational requirements**: Review performance boundaries, data integrity constraints, and query patterns.
2. **Design schema / interface**: Define explicit data contracts, types, or indexes supporting planned operations.
3. **Implement core routines**: Construct declarative, type-safe, or parameterized queries and functions.
4. **Validate performance**: Verify execution metrics using profilers, EXPLAIN plans, or benchmark test suites.
5. **Implement defensive controls**: Enforce timeout boundaries, connection pooling limits, and transaction safety.

## Commands / code examples
```elixir
defmodule RateLimiter do
  use GenServer

  # Client API
  def start_link(initial_limit) do
    GenServer.start_link(__MODULE__, initial_limit, name: __MODULE__)
  end

  def allow_request?() do
    GenServer.call(__MODULE__, :check_request)
  end

  # Server Callbacks
  @impl true
  def init(limit) do
    {:ok, %{limit: limit, current: 0}}
  end

  @impl true
  def handle_call(:check_request, _from, %{limit: limit, current: cur} = state) do
    if cur < limit do
      {:reply, true, %{state | current: cur + 1}}
    else
      {:reply, false, state}
    end
  end
end
```

## Common mistakes & pitfalls
- Overlooking indexing strategies on foreign keys and frequently queried filter columns.
- Running unparameterized dynamic queries, creating severe SQL injection vulnerabilities.
- Holding open long-running database transactions during slow external network calls.

## Verification checklist
- [ ] Schema contracts and type signatures are strictly enforced.
- [ ] Queries are fully parameterized against injection vulnerabilities.
- [ ] Profiling or execution plans show optimal resource consumption.
- [ ] Error handling safely releases locks and rolls back aborted transactions.

## Related skills
- postgresql-query-optimization-explain
- sql-anti-patterns-remediation
- acid-transactions-isolation-levels
- secure-code-review-static-analysis-sast

Versions

The database has no other skills named elixir-otp-concurrency.

Database snapshot: 13.11.2026 · package version ae0ff48b6bbb (SHA-256 digest of the entire package)

Downloads in the last 30 days: 0 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 95elixir-otp-patterns
    Use when Elixir OTP patterns including GenServer, Supervisor, Agent, and Task. Use when building concurrent, fault-tolerant Elixir applications.
  • 100elixir-expert
    Use this agent when you need to build fault-tolerant, concurrent systems leveraging OTP patterns, GenServer architectures, and Phoenix framework for real-time applications.
  • 100elixir
    Expert Elixir programming assistance covering pattern matching, GenServer, OTP supervisors, and Phoenix channels. Use when building highly concurrent, distributed, fault-tolerant web and backend systems.
  • 100elixir-idioms
    Elixir and OTP idioms: pattern matching, `with` pipelines, GenServer and supervision tree architecture, fault-tolerant concurrency, and ExUnit testing. Use when developing, refactoring, or reviewing Elixir and Phoenix applications or OTP systems.
  • 100otp
    Guide for OTP and Elixir concurrency. Use when implementing GenServers, designing supervision trees, or building fault-tolerant concurrent systems.
  • 85Gleam Actor Model
    Use when oTP actor patterns in Gleam including processes, message passing, GenServer implementations, supervisors, fault tolerance, state management, and building concurrent, fault-tolerant applications on the Erlang VM.

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.