Skip to main content
subagent CX Codex

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

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/agents/elixir-expert.md
Open on GitHub

What 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-expert to rewrite this module with pattern matching and drop the extra branching.
  • Run elixir-expert over the project: what does Dialyzer report, and which ExUnit tests are missing?
  • Hand elixir-expert the Phoenix channel work for live updates.

How to install elixir-expert

Manually: put the files in place

.claude/agents/elixir-expert.md

For all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention

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.

elixir-expert VoltAgent Community elixir-expert reviews an Elixir project and helps implement changes using OTP, Phoenix, and Ecto. Use it when you need to reason about process architecture, fault handling, or tests. CX Codex 167installs elixir-expert VoltAgent elixir-expert — a subagent for Elixir and OTP work: processes, supervision, fault tolerance, Phoenix. Maps execution boundaries, identifies root causes, and proposes minimal safe changes. CX Codex ★ 6,505repo stars elixir Mindrally Tells your coding agent how to write Elixir and Phoenix: functional patterns, Ecto, LiveView, OTP. Useful when the project actually runs on BEAM. CX Codex +1 881installs elixir-pro Seth Hobson elixir-pro is a Claude Code subagent for Elixir development, from OTP architecture to Phoenix LiveView work. It joins refactoring and BEAM optimization tasks. CX Codex ★ 42,780repo stars elixir-otp-patterns TheBushidoCollective elixir-otp-patterns supplies AI coding assistants with standard Elixir OTP architectures for building concurrent and resilient services. CX Codex +1 106installs elixir-engineer-guidelines-cursorrules-prompt-file PatrickJS elixir-engineer-guidelines-cursorrules-prompt-file — a Cursor rule that frames work as senior Elixir engineering and sets a change-message format. Useful for Phoenix projects using the listed stack. CX Codex +1 ★ 41,178repo stars functional-programming Seth Hobson Plugin for functional programming in Elixir, covering OTP patterns, the Phoenix web framework, and distributed systems. CX Codex ★ 42,780repo stars elixir-code-review existential-birds elixir-code-review reviews Elixir files for OTP conventions, security caveats, and idiomatic style across .ex and .exs code. CX Codex +1 124installs

From the same set137

The whole set →
liquibase-expert The liquibase-expert subagent helps manage Liquibase schema changes, validate changeSets, and prepare rollbacks. Use it when working on database migrations. CX Codex ★ 1,029repo stars flyway-expert flyway-expert — a subagent that handles Flyway database migrations: versioning scripts, checking them before production, keeping a rollback plan ready. Useful once migrations pile up. CX Codex ★ 1,029repo stars html-expert html-expert — a subagent that builds semantic, accessible markup aligned with WCAG rules. It cleans up document structure, meta tags, and form elements. CX Codex ★ 1,029repo stars actix-expert actix-expert — a Claude Code subagent for Actix and Rust web work, covering routes, middleware, errors, tests, and performance checks. CX Codex ★ 1,029repo stars grafana-expert grafana-expert designs Grafana dashboards, configures alert rules, and optimizes queries for metrics backends. CX Codex ★ 1,029repo stars opensearch-expert The opensearch-expert subagent helps configure OpenSearch clusters, indexes, and queries. Call on it when working through scaling, security, or performance issues. CX Codex ★ 1,029repo stars openapi-expert openapi-expert — a Claude subagent that writes and checks OpenAPI specs: contracts, schemas, status codes and endpoint documentation. CX Codex ★ 1,029repo stars kubernetes-expert kubernetes-expert designs Kubernetes manifests, configures cluster autoscaling, and troubleshoots workload issues. Helps prepare container deployments and RBAC policies. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open