liveview-code-review

liveview-code-review is a skill for Claude Code, Codex from existential-birds/beagle. It costs 40 tokens per session (1,408 once invoked), scanned A, original, Apache-2.0.

A review guide for Phoenix LiveView code, which updates web pages from the server as users interact with them. It covers component structure, page state, asynchronous work, and authorization.

In plain words
What is it for?
Use it when reviewing LiveView modules, HEEx templates, LiveComponents, event handlers, or asynchronous page updates.
Why use it?
It helps prevent leaked data, unauthorised actions, unsafe user-controlled values, and incorrect handling of loading or error states. It also checks how large collections and reusable interface components are managed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when reviewing LiveView modules, HEEx templates, LiveComponents, event handlers, or asynchronous page updates.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/existential-birds/beagle/liveview-code-review
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add existential-birds/beagle --skill liveview-code-review
Clone the repo
git clone --depth 1 https://github.com/existential-birds/beagle

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for liveview-code-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/existential-birds/beagle/liveview-code-review/github.svg)](https://agentmods.dev/skills/existential-birds/beagle/liveview-code-review)
Your own site
<a href="https://agentmods.dev/skills/existential-birds/beagle/liveview-code-review"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/liveview-code-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for liveview-code-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/existential-birds/beagle/liveview-code-review"><img src="https://agentmods.dev/badge/skills/existential-birds/beagle/liveview-code-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 40 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,408 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00040 $0.01408
Opus 5.5 $0.00016 $0.00563
Sonnet 5.5 $0.00008 $0.00282
Haiku 4.5 $0.00004 $0.00141

Measured 4d ago against content hash 2a2208bba49c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

liveview-code-review scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/liveview-code-review/SKILL.md · 123 lines

How it starts

The opening of the file, as written. The whole thing — 123 lines — stays where its author put it; the contents beside it link to each section on GitHub.

LiveView Code Review

Quick Reference

Issue Type Reference
mount, handle_params, handle_event, handle_async references/lifecycle.md
When to use assigns vs streams, AsyncResult references/assigns-streams.md
Function vs LiveComponent, slots, attrs references/components.md
live_session, on_mount, event auth, phx-value trust references/security.md

Review Checklist

Critical Issues

  • No socket copying into async functions (start_async/3, assign_async/3, stream_async/4, or Task) — extract primitives first
  • WebSocket auth enforced via live_session + on_mount hooks (HTTP plugs do not re-run on push_navigate)
  • Every handle_event/3 validates authorization / current_scope
  • No sensitive data in assigns (visible in DOM payloads, crash reports, logs)
  • phx-value-* data is validated (user-modifiable in DevTools)

Lifecycle

  • Subscriptions wrapped in connected?(socket)
  • handle_params/3 used for URL-based state
  • start_async/3 + handle_async/3 (or assign_async/stream_async) preferred over raw Task.async
  • Async UI handles :loading, :failed ({:error, _} and {:exit, _}), and ok states

Data Management

  • Streams (stream/4, stream_async/4 in LiveView 1.1+) used for large or unbounded collections (superseding temporary_assigns for lists)
  • Forms use to_form(changeset) + <.form for={@form}>, not raw @changeset
  • AsyncResult patterns for loading states

Components

  • Function components preferred over LiveComponents
  • LiveComponents preserve :inner_block in update/2
  • Slots use proper attr/slot declarations
  • phx-debounce on text inputs that trigger server events

Valid Patterns (Do NOT Flag)

  • Empty mount/3 returning {:ok, socket} - Valid for simple LiveViews
  • LiveView 1.0+ {...} curly-brace HEEx interpolation - {@user.name} in text/attribute positions is standard alongside <%= ... %>
  • Using assigns for small lists - Streams are mainly needed for 100+ items or unbounded feeds
  • LiveComponent without update/2 - Default update/2 assigns all
  • phx-click without phx-value - Event may not need data
  • Inline function in HEEx - Valid for simple transforms

Read the full file on GitHub · 123 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago Changed · +6 lines 2a2208bba49c
  2. 2mo ago First seen · 117 lines · 40 tokens per session scan A f47ffb0ffbf6

Subscribe to this mod's changes

liveview-code-review is a skill published in the GitHub repository existential-birds/beagle (91 stars, last pushed 4d ago), licensed Apache-2.0. It adds 40 tokens to every session and 1,408 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-16.

Related

liveview-code-review compared with skills from other repositories

liveview-code-review next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
liveview-code-reviewexistential-birds/beagleSkill914d agoApache-2.0A40Claude Code, Codex
coding-standardsSimon-Hwang/gg-pluginsSkill24mo agononeA34Claude Code
codex-rule-routerSimon-Hwang/gg-pluginsSkill24mo agononeA39Claude Code
pr-to-go-lintergithub/gh-awSkill5.7ktodayMITA22Claude Code, Codex
splitting-oversized-modulesPostHog/posthog-fossSkill733todayMITA197Claude Code, Codex
code-reviewjrswab/axeSkill914todayApache-2.0A0Claude Code, Codex
qa-frontendPostHog/posthogSkill41ktodaynoneA216Claude Code