What problem does it solve?
This Skill enforces best practices for Phoenix LiveView and HEEx development, ensuring cleaner, more maintainable, and performant web applications.
Core Features & Use Cases
- Template Externalization: Mandates separate
.html.heex files for all templates, improving code organization and editor support.
- Modern HEEx Syntax: Promotes the use of
:for and :if attributes over legacy பகுதிகளில் syntax for conciseness and performance.
- Component Organization: Guides the structuring of reusable UI components with clear namespaces and design rules.
- LiveView Routing Patterns: Advocates for parameter-based mode switching within single LiveView modules.
- Form Handling: Enforces the use of Ecto changesets for robust and framework-aligned form management.
- LiveComponent Patterns: Defines when and how to use LiveComponents for stateful UI sections, including communication strategies.
- JavaScript Hooks Organization: Standardizes the organization of LiveView JavaScript hooks by domain for better maintainability.
- Visual Debugging: Integrates headless Chrome for taking screenshots to debug visual and JavaScript-related issues.
Quick Start
Use the web skill to ensure all new LiveView code adheres to the documented conventions.