lv:assigns

Audit Elixir Phoenix LiveView socket assigns for memory inefficiencies and clarity issues.

517|35|Updated Feb 12, 2026
One-click install
npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill lv-assigns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lv:assigns
Source: https://github.com/oliver-kriska/claude-elixir-phoenix/tree/main/plugins/elixir-phoenix/skills/assigns-audit
Command: npx skills add https://github.com/oliver-kriska/claude-elixir-phoenix --skill lv-assigns

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and fix memory inefficiencies and clarity issues within LiveView socket assigns, preventing performance degradation and debugging headaches.

Core Features & Use Cases

  • Memory Leak Detection: Pinpoints large data structures or unnecessary data stored in assigns.
  • Best Practice Enforcement: Ensures assigns are initialized correctly and temporary data is handled appropriately.
  • Use Case: When your LiveView application feels sluggish or you suspect memory issues, use this skill to audit the assigns in your *_live.ex files to find and fix the root cause.

Quick Start

Audit the assigns in the user_profile_live.ex file for memory issues.

Frequently Asked Questions about lv:assigns

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

FAQPage Schema
How do I audit Phoenix LiveView assigns for memory issues?

To audit Phoenix LiveView assigns for memory issues, review your socket assigns to identify large data structures or unnecessary data. This process targets common problems like storing full Ecto schemas in assigns and incorrect temporary assigns usage, resolving performance degradation.

Why does my LiveView application feel sluggish when handling large lists?

Your LiveView application feels sluggish because storing large lists or full Ecto schemas directly in assigns causes memory inefficiencies. Auditing these assigns helps pinpoint the root cause and enforces best practices for efficient data management within components.

What is the best way to use temporary assigns in Elixir Phoenix LiveView?

The best way to use temporary assigns in Elixir Phoenix LiveView is to ensure transient data is handled appropriately and assigns are initialized correctly. Auditing your code enforces these best practices, preventing unnecessary memory retention and improving overall clarity.

Can I check my LiveView code for storing full Ecto schemas in assigns?

You can check your LiveView code for storing full Ecto schemas in assigns by auditing your live.ex files. This identifies memory inefficiencies from retaining large database records and helps resolve them by applying efficient data management techniques.

How do I fix memory leaks caused by incorrect LiveView socket assigns?

Fixing memory leaks caused by incorrect LiveView socket assigns involves pinpointing large data structures stored unnecessarily in the socket. Auditing the assigns detects these memory leaks and enforces correct initialization and temporary data handling to restore performance.