/estack:estack-liveviewfrom estack
Builds Phoenix LiveView forms, streams, components, hooks, and authenticated screens. Guides HEEx, events, async work, and durable jobs.
Ships in estack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Inspect installed Phoenix/LiveView versions, generated components, auth hooks, and styling before editing. Preserve daisyUI, custom Tailwind components, or another established design system. Do not migrate dependencies merely to follow an example.
Use the appropriate existing live_session and on_mount hook. Create another session when distinct authentication requirements or root layouts justify the boundary. Check both HTTP and connected mounts; never start duplicate external side effects from mount.
Use @current_scope.user where the app has Phoenix scope-based auth. Preserve @current_user in older/custom auth until a scoped migration is requested. Pass the corresponding scope/user contract to contexts consistently.
Authorize page access, navigation, and mutating events. Recheck permissions/state at the domain boundary; hidden buttons and earlier mount checks do not authorize a later write.
Use the layout structure already generated for this Phoenix version. In Phoenix 1.8-style apps, render through Layouts.app and avoid duplicating the layout's flash group.
Assign a Phoenix.HTML.Form with to_form, then reuse the project's form/input components. This is an illustrative HEEx fragment:
<.form for={@form} id="order-form" phx-submit="save">
<.input field={@form[:title]} type="text" label="Title" />
<button type="submit">Save</button>
</.form>
Phoenix.Component.form/1 does not supply an :actions slot. Use ordinary children, or use that slot only on a project component which declares it. Validate event params server-side and preserve changeset errors on failure.
Use function components for reusable markup. Use LiveComponents when independent events/lifecycle justify them; keep ownership and message flow explicit.
Use streams for large or changing collections; regular assigns are appropriate for small, bounded lists. Stream containers need a stable id and phx-update="stream"; each item must use its generated stream DOM ID. Re-fetch and reset when changing filters. Keep counts/empty states separately because streams are not ordinary enumerable collections.
Use assign_async/start_async for reads or work that may safely end with the LiveView. Capture only needed values outside the async function; do not copy the socket into the task.
Use durable jobs for work that must survive disconnects, deploys, and process loss, especially external side effects. Match enqueue failures and show meaningful UI state. A waiting user alone does not make a simple async read an Oban job.
Subscribe to scoped PubSub topics only after connected?(socket). Authorization belongs in data access as well as subscription setup; avoid broadcasting sensitive payloads to broad topics. Handle updates idempotently and refresh through the scoped context where appropriate.
phx-update="ignore" only where a hook owns the subtree; understand what server patches it prevents.Use LiveViewTest for events, authorization, form errors, and rendered state. Use focused browser checks for JavaScript hooks, real upload integrations, focus behavior, and browser-only failures. Report visual/browser checks that were unavailable.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
phoenix-liveview, heex, liveview-forms, liveview-streams, liveview-auth
20 skills in this plugin
/estack-architectureDesign Phoenix context boundaries and application interfaces. Use when adding a feature, deciding where modules belong, introducing API/MCP adapters, or working in an Ash or umbrella application./estack-debugInvestigate and fix Elixir/Phoenix failures from symptoms and code evidence. Use for crashes, failed tests, incorrect queries, LiveView events, Oban retries, or production error reports./estack-deployPrepare Phoenix releases, migrations, health checks, and observable rollouts. Use when editing runtime config, deployment pipelines, Docker builds, production topology, or release diagnostics./estack-doctorInspect an Elixir/Phoenix project's setup without modifying it. Use for readiness checks, installed dependency/tool detection, initial Estack adoption, or a prioritized engineering report./estack-ectoImplement Ecto data access, ownership, changesets, transactions, and safe migrations. Use when editing schemas, queries, tenant-scoped contexts, or database writes./estack-elixirWrite idiomatic, version-compatible Elixir and handle errors explicitly. Use when editing control flow, types, collections, resource handling, or library boundaries.Generated from the plugin's indexed repository (singularityhacker/estack) — no native marketplace selected
npx claudepluginhub p/singularityhacker-estackOther plugins' skills for the same job