liveview-code-review

Review Phoenix LiveView code for lifecycle patterns, assigns, streams, and security vulnerabilities.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the review of Phoenix LiveView code, identifying common anti-patterns, security vulnerabilities, and areas for performance optimization, ensuring code quality and maintainability.

Core Features & Use Cases

  • Lifecycle Pattern Analysis: Checks for correct usage of mount, handle_params, handle_event, and handle_async.
  • Assigns vs. Streams: Verifies appropriate use of assigns and streams for data management.
  • Component Best Practices: Reviews LiveComponent and Function Component implementation, including slot usage.
  • Security Audits: Identifies potential security risks like unvalidated inputs and sensitive data exposure.
  • Use Case: A developer submits a new LiveView module for a real-time dashboard. This Skill analyzes the code, flagging an instance where sensitive user data was accidentally included in assigns and suggesting the use of streams for a large, paginated list.

Quick Start

Use the liveview-code-review skill to analyze the file '/path/to/your/liveview_module.ex'.

Frequently Asked Questions about liveview-code-review

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

FAQPage Schema
How do I review Phoenix LiveView code for best practices and security vulnerabilities?

To review Phoenix LiveView code for best practices, analyze .heex templates and LiveComponent modules for lifecycle patterns, optimal assigns and streams usage, component implementation, and security vulnerabilities like unvalidated inputs and sensitive data exposure.

What is the best way to use assigns and streams in Phoenix LiveView for performance?

The best way to manage data in Phoenix LiveView is using streams for large, paginated lists to avoid socket copying issues, while using assigns for standard data management to ensure optimal performance and maintainability.

How do I check if my LiveView lifecycle patterns like mount and handle_params are correct?

To check if your LiveView lifecycle patterns are correct, review your implementation of mount, handle_params, handle_event, and handle_async to ensure they follow established Phoenix best practices for efficient real-time development.

Can I audit Elixir LiveComponent modules for sensitive data exposure automatically?

Yes, you can audit Elixir LiveComponent modules for sensitive data exposure by analyzing the code to identify potential security risks, including unvalidated inputs and accidental inclusion of sensitive user data in assigns.

Why does my Phoenix LiveView dashboard have performance issues with large lists?

Your Phoenix LiveView dashboard may have performance issues with large lists because of socket copying from excessive assigns, and switching to streams for paginated data management can resolve these bottlenecks.