Skip to content
Back to skills

Elixir Phoenix Apps

ASecurity

Build fault-tolerant Elixir and Phoenix web apps with Ecto changesets, LiveView sockets, and OTP supervision

  • 5 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 30, 2026
developmentsql

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add AdityaaaTiwari/ANVIL --skill elixir-phoenix-apps --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Elixir Phoenix Apps?

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

Security grade badge for Elixir Phoenix Apps
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/adityaaatiwari-elixir-phoenix-apps-anvil/badge)](https://www.skillsdirectory.com/skills/adityaaatiwari-elixir-phoenix-apps-anvil)

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: elixir-phoenix-apps
description: Build fault-tolerant Elixir and Phoenix web apps with Ecto changesets, LiveView sockets, and OTP supervision
---

<!-- Generated by `anvil plugin build` from catalog/. Edit the catalog, not this file. -->

# Elixir Phoenix apps

Use when building contexts, Ecto queries, controllers, or LiveView modules in Phoenix.

## Contexts and Ecto
- Organize domain boundaries through Phoenix context modules; keep Repo queries inside contexts rather than scattered in controllers or LiveViews.
- Separate Ecto changeset pipelines by use case (`create_changeset`, `update_changeset`) and restrict `cast/3` fields explicitly.
- Preload associations intentionally and prefer `Ecto.Multi` for multi-step writes that must commit or roll back atomically.

## LiveView and OTP
- Keep `mount/3` lightweight: check `connected?(socket)` before subscribing to PubSub topics or loading heavy real-time streams.
- Use `stream/3` instead of plain `assign/3` for large or append-only lists so server memory stays bounded.
- Model long-lived state or background workers under explicit `Supervisor` / `DynamicSupervisor` trees with clear restart strategies.

## Verify
Run `mix format --check-formatted`, `mix compile --warnings-as-errors`, and `mix test` (with `Ecto.Adapters.SQL.Sandbox`).

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.

View all in development →

Comments

Loading comments…

Newsletter

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