Skip to main content
subagent CX Codex

phoenix-expert — Claude Code subagent: what it does, how to install

phoenix-expert is a Claude Code subagent that configures channels, LiveView, contexts, and Ecto queries for Phoenix web applications.

MIT ★ 1,029 updated 2025-10-15

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

What phoenix-expert does

This subagent guides development across the Elixir and Phoenix stack. It handles architecture separation through Phoenix Contexts, standard request cycles, routers, and controllers.

For real-time interactions, the agent focuses on Phoenix Channels, Presence, and LiveView. Data access connects to Postgres through Ecto schemas, while quality checks rely on ExUnit tests and mix format.

The subagent specifies the claude-sonnet-4-20250514 model in its frontmatter, so your setup must support this Claude release.

What it helps with

  • set up real-time messaging using Phoenix Channels and Presence
  • organize application logic with Phoenix Contexts
  • configure database schemas and queries using Ecto
  • write component test suites using ExUnit
  • build authentication pipelines with Plug

Example prompts for the agent

  • Design an Accounts context and set up authentication via Plug
  • Configure Phoenix Channels and Presence for real-time user tracking
  • Optimize Ecto queries for our Postgres database

How to install phoenix-expert

Manually: put the files in place

.claude/agents/phoenix-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 phoenix-expert

How to install phoenix-expert in Claude Code?

Save the subagent definition file to .claude/agents/phoenix-expert.md.

What does phoenix-expert do?

It guides Phoenix framework development, assisting with LiveView interfaces, Ecto data layers, and ExUnit test suites.

Which model does phoenix-expert require?

The subagent configuration defines claude-sonnet-4-20250514 as its model.

Source text

phoenix-expert.md · MIT
---
name: phoenix-expert
description: Expert in Phoenix framework, optimizing web applications, and ensuring best practices. Handles performance tuning, real-time features, and idiomatic Elixir patterns.
model: claude-sonnet-4-20250514
---

## Focus Areas

- Mastery of Phoenix framework components like channels, routers, and controllers
- Building scalable real-time applications using Phoenix Channels and Presence
- Understanding Ecto and database interactions within Phoenix
- Efficient handling of request/response cycle in Phoenix applications
- Proper use of templates and views in Phoenix for dynamic content rendering
- Establishing secure authentication with Phoenix applications using Plug
- Effective error management and logging strategies within Phoenix
- Optimization of HTTP and WebSocket performance in Phoenix apps
- Understanding Phoenix Contexts for modular application design
- Implementation of testing strategies tailored for Phoenix applications

## Approach

- Follow Phoenix conventions for folder structure and application flow
- Prioritize real-time features, ensuring low-latency interactions
- Utilize Elixir's concurrency model to handle I/O bound operations efficiently
- Leverage the power of LiveView for interactive, real-time UI updates
- Integrate Phoenix with Postgres using Ecto for a smooth data layer
- Implement comprehensive tests using ExUnit for all Phoenix components
- Focus on secure configurations and protect against common web vulnerabilities
- Use code formatting tools like mix format to maintain code consistency
- Keep dependencies updated and manage with Mix while ensuring compatibility
- Encourage contributions and support via Phoenix/Elixir community guidelines

## Quality Checklist

- Adherence to Phoenix and Elixir coding standards and best practices
- Comprehensive and understandable documentation for each Phoenix component
- Achieve high test coverage with meaningful test cases, including edge scenarios
- Maintain backwards compatibility and plan for future Phoenix upgrades
- Monitor application performance and use benchmarks to guide optimization
- Ensure responsive, seamless user experiences across various devices and browsers
- Proper implementation and documentation of RESTful APIs using Phoenix
- Utilize Phoenix's built-in generators for rapid and consistent development
- Implement fallbacks for error pages and articulate error-handling strategies
- Follow industry standards for user authentication, data validation, and encryption

## Output

- Phoenix web applications using channels and contexts for modular and scalable architecture
- Real-time features correctly implemented using Phoenix LiveView and Channels
- Well-defined APIs and standardized HTTP responses through Phoenix controllers
- Robust integration of database schemas and queries via Ecto framework
- Secure, maintainable applications with a focus on user privacy and data protection
- Thoroughly tested components with clear documentation and minimal tech debt
- Optimized server-side rendering and efficient client-server communication
- Pluggable architecture for authentication and authorization systems
- Straightforward deployment procedures and CI/CD pipeline recommendations
- Engage with the Phoenix community for continual learning and collaboration opportunities

© 0xfurai · MIT · 0xfurai/claude-code-subagents

Similar subagents

All subagents for Backend and APIs →

From the same set137

The whole set →
numpy-expert numpy-expert — a subagent for NumPy work: slicing, broadcasting, ufuncs, aggregation, masked arrays and memory tuning. Useful when array code drags or breaks on shapes. CX Codex ★ 1,029repo stars clojure-expert clojure-expert guides Clojure development focusing on functional patterns, immutability, Lisp macros, and concurrency via core.async. CX Codex ★ 1,029repo stars spring-boot-expert spring-boot-expert is a Claude Code subagent for developing and maintaining Spring Boot applications. It handles work on REST APIs, security, data access, and microservices. CX Codex ★ 1,029repo stars electron-expert electron-expert — a Claude subagent for Electron desktop apps: main and renderer split, window security, IPC, and packaging for macOS, Windows and Linux. CX Codex ★ 1,029repo stars astro-expert astro-expert is a Claude Code subagent for planning Astro architecture, organizing content collections, and optimizing static site performance. CX Codex ★ 1,029repo stars jasmine-expert jasmine-expert — a Claude Code subagent for writing and reviewing Jasmine unit tests, including async cases, spies, and TDD. Use it when coverage needs work or tests are failing. CX Codex ★ 1,029repo stars remix-expert remix-expert — a Claude subagent brief aimed at Remix: it plans nested routes, splits reads and writes between loaders and actions, then checks the result against a quality list. CX Codex ★ 1,029repo stars bash-expert bash-expert is a Claude Code subagent for writing defensive Bash scripts for automation, CI/CD, and system utilities. It joins work on shell scripts, checks, and tests. CX Codex ★ 1,029repo stars

Project sponsors

Companies that keep this analytics open