elixir-review
Skill9 starsChanged 8 months agoMITView on GitHub
Review Elixir/Phoenix code: OTP patterns, GenServer, LiveView, fault tolerance and concurrency
In this repository53 other files it gives its agents.
- adrSkill
- ai-ml-engineeringSkill
- api-documentationSkill
- api-gateway-patternsSkill
- architecture-review-boardSkill
- backend-reviewSkill
- chaos-engineeringSkill
- code-reviewSkill
- compliance-reviewSkill
- cost-optimizationSkill
- csharp-dotnet-reviewSkill
- database-reviewSkill
- data-engineeringSkill
- design-patternsSkill
- developer-experienceSkill
- devops-infraSkill
- domain-modelingSkill
- engineering-budgetSkill
- engineering-metricsSkill
- event-driven-architectureSkill
- feature-flagsSkill
- flutter-reviewSkill
- frontend-reviewSkill
- full-reviewSkill
- git-flowSkill
- go-reviewSkill
- graphql-reviewSkill
- health-checkSkill
- incident-postmortemSkill
- kubernetes-reviewSkill
- migration-strategySkill
- multi-tenancySkill
- observabilitySkill
- on-call-designSkill
- one-on-oneSkill
- pentestSkill
- performance-profilingSkill
- pr-descriptionSkill
- python-reviewSkill
- quality-standardSkill
- rust-reviewSkill
- security-reviewSkill
- sprint-planningSkill
- swift-reviewSkill
- systematic-debuggingSkill
- team-scalingSkill
- tech-debt-prioritizationSkill
- technical-interviewSkill
- tech-specSkill
- terraform-iacSkill
- testing-strategySkill
- ux-reviewSkill
- vendor-evaluationSkill
The file
Files
Elixir / Phoenix Code Review
When to Use
- Reviewing Elixir code (Phoenix, OTP, GenServer, LiveView)
- Evaluating fault tolerance patterns (supervision trees)
- Real-time system review (WebSocket, PubSub)
- Concurrency and scalability assessment
Review Checklist
OTP Patterns
- Supervision trees properly structured (one_for_one, rest_for_one)
- GenServers have clear purpose (not catch-all)
handle_infohandles unexpected messages gracefully- Timeouts configured for long-running GenServers
- Process registry used (not PID passing)
- ETS tables for read-heavy shared state
Phoenix Best Practices
- Contexts separate business logic from web layer
- Schemas define changesets with validation
- Controllers are thin (delegate to context)
- Plugs for cross-cutting concerns (auth, logging)
- Ecto queries composed (not raw SQL unless necessary)
- Background jobs via Oban (not raw Task.async)
Phoenix LiveView
handle_eventfunctions are small and focusedassignused for all state (no process dictionary)phx-throttle/phx-debounceon frequent events- PubSub for real-time updates across users
- Dead views implement
mount/3with proper assigns live_redirectvspush_patchused correctly
Elixir Best Practices
- Pattern matching over if/else chains
- Pipe operator (
|>) for data transformations withfor multi-step operations with error handling@spectype specs on public functions@docdocumentation on public functions- Structs for domain entities (not naked maps)
- Guards for function clause selection
EnumandStreamused appropriately (eager vs lazy)
Concurrency
- Tasks supervised (not fire-and-forget)
- GenServer state doesn't grow unbounded
- Message queue monitored (Process.info for mailbox)
- Backpressure implemented for high-throughput
- Database connection pool sized correctly
Fault Tolerance
- "Let it crash" — supervisors restart failed processes
- Circuit breakers for external service calls
- Fallback strategies for degraded service
- Health checks for supervised processes
Output Format
## Elixir Review: [Module]
**Health Score**: X/10
### Issues | Improvements | OTP NotesDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

