What problem does it solve?
This Skill helps you avoid non-idiomatic Elixir code by teaching patterns that lead to clearer logic, safer concurrency, and maintainable OTP-based systems.
Core Features & Use Cases
- Pattern matching everywhere: Use function heads and
case/with to express branching and happy-path flows clearly.
- OTP and supervision alignment: Structure stateful behavior with
GenServer and rely on supervisors for fault tolerance.
- Pipe-friendly APIs and conventions: Design functions that compose well with
|> and follow consistent naming and boolean/raising semantics.
- Testing and static analysis guidance: Apply ExUnit practices and common tooling commands for formatting, linting, and checks.
- Use case: Refactor a Phoenix/OTP service by converting nested control flow into
with pipelines and case pattern matches, while restructuring workers under a supervision tree.
Quick Start
Use the Elixir Idioms and Patterns skill to review your module and propose idiomatic improvements for pattern matching, OTP supervision structure, pipe-friendly function APIs, and naming conventions.