Phoenix LiveView patterns (Oliver Kriska)
SkillRules and patterns for building Phoenix LiveView pages correctly.
Loads automatically for LiveView, component and channel files. It sets ten rules, such as no unconditional database queries in mount, streams for lists, checking connected? before subscribing, and matching changeset errors explicitly. It also covers async assigns, rendering cached HTML for SEO routes, navigation and component decision trees, and common anti-patterns, with reference files for deeper topics.
Try asking:
- "Build a LiveView page that lists orders with live updates via PubSub"
- "Why does my LiveView form not show validation errors?"
- "Refactor this LiveView to use streams instead of assigns for the list"
Source: oliver-kriska/claude-elixir-phoenix · MIT · by Oliver Kriska

Log in to join the discussion.