elixir-otp
Installation
SKILL.md
Elixir OTP Skill
Essential OTP Patterns (KISS First)
Use these patterns for 80% of use cases. Start simple, optimize later.
GenServer: Stateful Processes
When to use GenServer:
- Need to maintain state across function calls
- State needs to be shared across processes
- Need to serialize access to a resource
- Long-running processes with periodic tasks
Basic GenServer Pattern:
defmodule MyApp.Counter do
use GenServer