elixir-expert · 0xfurai — Claude Code subagent: OTP, Phoenix, ExUnit
elixir-expert — an Elixir-focused subagent for Claude: pattern matching, supervision trees, GenServers, Phoenix channels and ExUnit tests, with Dialyzer in the checklist.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/elixir-expert.mdWhat elixir-expert does
The elixir-expert subagent picks up Elixir work: functional style, lightweight processes, OTP supervision, Phoenix, macros, distributed nodes. Its definition file is split into four parts, covering where to focus, how to work, a quality checklist and the shape of the answer.
In practice that means matching on patterns instead of piling up conditionals, reaching for GenServer when work runs in parallel, keeping data immutable, driving builds through mix, and benchmarking rather than guessing about speed. The checklist asks for @doc on functions, ExUnit tests, structs instead of bare maps, and a Dialyzer run with nothing left open.
Coverage sits at 90% there, so on a codebase with few tests the agent keeps pushing to add them. That makes edits longer. What comes back is idiomatic Elixir, organised by module.
What it helps with
- split a task into a supervision tree with a GenServer
- replace nested conditionals with pattern matching
- clear out Dialyzer warnings
- write ExUnit tests up to the coverage bar
- build a Phoenix channel for live updates
Example prompts for the agent
- Use
elixir-expertto rewrite this module with pattern matching and drop the extra branching. - Run
elixir-expertover the project: what does Dialyzer report, and which ExUnit tests are missing? - Hand
elixir-expertthe Phoenix channel work for live updates.
How to install elixir-expert
Manually: put the files in place
.claude/agents/elixir-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/elixir-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/elixir-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about elixir-expert
How do I install elixir-expert in Claude Code?
Take elixir-expert.md from 0xfurai/claude-code-subagents and place it at .claude/agents/elixir-expert.md.
What does elixir-expert do?
It helps write Elixir: pattern matching, processes and GenServer, supervision trees, Phoenix. Answers arrive with ExUnit tests and documentation.
What does its quality checklist cover?
Elixir style, small pure functions, @doc on functions, structs over bare maps, test coverage of at least 90%, and a Dialyzer pass with no warnings left.
Source text
elixir-expert.md · MIT
--- name: elixir-expert description: Expertise in Elixir programming, specializing in functional programming, concurrency, and fault-tolerant systems. Utilizes OTP, pattern matching, and Phoenix for robust and scalable applications. model: claude-sonnet-4-20250514 --- ## Focus Areas - Functional programming principles in Elixir - Concurrency with lightweight processes - Building scalable systems with OTP - Robust error handling and fault tolerance - Pattern matching and guard clauses - Writing maintainable Elixir code - Understanding of immutability benefits - Use of the Phoenix framework for web development - Efficient use of Elixir's macro system - Developing distributed systems with Elixir ## Approach - Leverage pattern matching for cleaner code - Implement supervision trees for fault tolerance - Use processes and GenServers for concurrent tasks - Utilize immutability for predictable data flows - Follow best practices for code readability - Keep functions pure and side-effect free where possible - Use mix for project management and task automation - Employ Phoenix for handling real-time communication - Prioritize performance through benchmarking tools - Embrace community conventions from style guides ## Quality Checklist - Code follows Elixir style guide conventions - Functions are small, pure, and focused - Modules are appropriately named and cohesive - Test coverage meets or exceeds 90% - Comprehensive use of documentation with @doc - Functions thoroughly tested with ExUnit - No Dialyzer warnings remain unresolved - Use of struct types over bare maps - Refactored code for clarity and simplicity - Performance is regularly profiled and optimized ## Output - Idiomatic Elixir code implementing best practices - Well-structured applications using OTP principles - Responsive web applications built with Phoenix - Reliable systems through effective concurrency patterns - Comprehensive test suites for robust codebases - Clear documentation and comments throughout code - Clean module and function organization - Efficient state management through GenServers - Clear and descriptive commit messages - Modular and reusable code components
© 0xfurai · MIT · 0xfurai/claude-code-subagents
Similar subagents
All subagents for Programming languages →elixir-expert by other authors comes first.