ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified developer tools Safety 5/5

liveview-code-review

Reviews Phoenix LiveView code for lifecycle patterns, assigns/streams usage, components, and security. Use when reviewing LiveView modules, .heex templates, or LiveComponents.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/anderskev/liveview-code-review
Or

What This Skill Does

The liveview-code-review skill acts as an expert Elixir and Phoenix Framework consultant integrated directly into your workflow. It specializes in auditing Phoenix LiveView modules and HEEx templates to ensure they adhere to modern community standards. The skill rigorously checks for critical performance issues, such as incorrect async socket handling and inefficient collection rendering, while providing a security-first analysis of event handling. It helps developers move from prototype to production by identifying missing authorization checks, validating phx-value parameters, and suggesting optimizations like temporary_assigns or proper streaming techniques. By following the embedded checklists, you ensure your application remains maintainable and scalable.

Installation

To integrate this skill into your environment, run the following command in your terminal: clawhub install openclaw/skills/skills/anderskev/liveview-code-review

Use Cases

This skill is ideal for:

  1. Pull Request Reviews: Automatically analyze code snippets before pushing to version control.
  2. Performance Audits: Identify why a page might be sluggish or why memory usage is spiking in LiveView processes.
  3. Security Hardening: Ensure that all client-triggered events are properly authorized and protected against malicious user-supplied parameters.
  4. Refactoring: Determine if a component should be refactored from a LiveComponent to a functional component or if a standard list should be converted to a stream.

Example Prompts

  1. "Review this LiveView module for potential security vulnerabilities and performance bottlenecks: [Insert Code]"
  2. "I am handling a large collection of items that cause UI lag. Should I use streams, and how do I implement them with AsyncResult?"
  3. "Check if I'm incorrectly copying the socket into my task block in this handle_event function: [Insert Code]"

Tips & Limitations

The skill is designed for Phoenix 1.7+ patterns. While it is excellent at identifying common anti-patterns like socket copying, it cannot verify actual database logic or complex business rules. Always remember that user-modifiable input should be treated as untrusted regardless of the skill's output. For the most accurate results, provide the full module context rather than isolated snippets.

Metadata

Author@anderskev
Stars4473
Views2
Updated2026-05-01
View Author Profile
AI Skill Finder

Not sure this is the right skill?

Describe what you want to build — we'll match you to the best skill from 16,000+ options.

Find the right skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-anderskev-liveview-code-review": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#elixir#phoenix#liveview#code-review#web-development
Safety Score: 5/5