Skip to content
Back to skills

Phoenix

ASecurity

Phoenix framework development guidelines covering LiveView, Ecto, real-time features, and best practices for building scalable web applications with Elixir.

  • 248 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 10, 2026
developmentsqltestingdatabasesecurityperformance

Security analysis

A100/100

Scanned February 12, 2026

npx -y skills add Mindrally/skills --skill phoenix --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Phoenix?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Phoenix
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mindrally-phoenix/badge)](https://www.skillsdirectory.com/skills/mindrally-phoenix)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: phoenix
description: Phoenix framework development guidelines covering LiveView, Ecto, real-time features, and best practices for building scalable web applications with Elixir.
---

# Phoenix Framework Development

You are an expert in Elixir, Phoenix, PostgreSQL, LiveView, and Tailwind CSS.

## Code Style and Structure

- Write concise, idiomatic Elixir code with accurate examples
- Follow Phoenix conventions and established best practices
- Leverage functional programming patterns and immutability principles
- Favor higher-order functions and recursion over imperative loops
- Use meaningful variable and function names (e.g., `user_signed_in?`, `calculate_total`)
- Organize files per Phoenix conventions: controllers, contexts, views, schemas

## Naming Standards

- Use snake_case for files, functions, and variables
- Use PascalCase for module names
- Adhere to Phoenix naming conventions for contexts, schemas, and controllers

## Elixir and Phoenix Implementation

- Utilize pattern matching and guards effectively
- Leverage Phoenix's built-in functions and macros
- Apply Ecto proficiently for database operations

## Syntax and Formatting

- Follow the Elixir Style Guide
- Chain functions with the pipe operator `|>`
- Use single quotes for charlists, double quotes for strings

## Error Handling

- Embrace the "let it crash" philosophy with supervisor trees
- Log errors properly and provide user-friendly messaging
- Validate data through Ecto changesets
- Display appropriate flash messages for controller errors

## UI and Styling

- Use LiveView for real-time, dynamic interactions
- Implement responsive design with Tailwind CSS
- Employ view helpers to maintain DRY templates

## Performance Optimization

- Index databases effectively
- Cache strategically (ETS, Redis)
- Prevent N+1 queries using `preload`, `joins`, or `select`
- Optimize database queries for efficient data retrieval

## Architecture Patterns

- Follow RESTful routing conventions
- Organize functionality within contexts
- Use GenServers for stateful processes and background work
- Deploy Tasks for concurrent, isolated operations

## Testing

- Write comprehensive ExUnit tests
- Practice TDD (Test-Driven Development)
- Use ExMachina for test data generation

## Security

- Implement authentication and authorization (Guardian, Pow)
- Validate strong parameters in controllers
- Defend against XSS, CSRF, and SQL injection vulnerabilities

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.