elixir-idioms
Installation
SKILL.md
Elixir Idioms and Patterns
Elixir rewards immutability, pattern matching, and the OTP supervision model. Idiomatic Elixir = functional, fault-tolerant, process-oriented.
Scope: Elixir coding idioms. Test naming: .agents/rules/testing-strategy.md.
Pattern Matching
- Pattern match everything — function heads, case, with:
def handle_result({:ok, task}), do: {:reply, task} def handle_result({:error, :not_found}), do: {:error, 404} def handle_result({:error, reason}), do: {:error, 500, reason}