phoenix-code-review

Analyze Elixir Phoenix code for best practices in controllers, contexts, routing, and plugs.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/javierhbr/random-poc --skill phoenix-code-review
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: phoenix-code-review
Source: https://github.com/javierhbr/random-poc/tree/main/custom-skills/beagle-main/plugins/beagle-elixir/skills/phoenix-code-review
Command: npx skills add https://github.com/javierhbr/random-poc --skill phoenix-code-review

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers ensure their Phoenix Framework code adheres to established best practices, improving code quality, maintainability, and adherence to architectural patterns.

Core Features & Use Cases

  • Code Analysis: Reviews controllers, contexts, routing, and plugs for common issues and anti-patterns.
  • Pattern Enforcement: Checks for correct separation of concerns, proper use of Ecto changesets, and secure routing.
  • Use Case: Before merging a new feature, use this Skill to automatically flag potential issues in the Phoenix controllers, contexts, and routes to ensure consistency and quality.

Quick Start

Use the phoenix-code-review skill to analyze the provided Phoenix controller code for adherence to best practices.

Frequently Asked Questions about phoenix-code-review

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I review Phoenix code for best practices before merging a feature?

To review Phoenix code for best practices, analyze controllers, contexts, routing, and plugs to identify anti-patterns. This ensures correct separation of concerns, proper Ecto changeset usage, and secure routing before merging features.

What are common anti-patterns in Elixir Phoenix controllers and contexts?

Common anti-patterns in Phoenix controllers and contexts involve improper business logic placement and incorrect Ecto integration. Analyzing the code ensures business logic is correctly separated and changesets are used properly for maintainability.

Can I check Elixir Phoenix routing and plug composition automatically?

You can check Phoenix routing and plug composition by analyzing the code for route verification and secure pipeline construction. This process identifies routing issues and validates plug composition to maintain framework architecture.

Does this code review approach work with Ecto changesets and Phoenix contexts?

Yes, reviewing Phoenix contexts works directly with Ecto changesets by checking for proper integration and data validation. The analysis enforces correct separation of concerns within the context modules to ensure data integrity.

What is the best way to enforce separation of concerns in Phoenix Framework code?

The best way to enforce separation of concerns in Phoenix Framework code is by analyzing controllers and contexts to ensure business logic is not improperly placed in controllers. This architectural review maintains code quality and framework adherence.