Sponsor Suno AI Music arrow_forward
Subagent

Liveview Architect

LiveView architecture specialist - component structure, real-time patterns, streams vs assigns, async patterns. Use proactively when planning interactive features.

Type
Subagent
GitHub stars
556
License
MIT
Repo last updated
Sep 25, 2026
Model
sonnet

What Liveview Architect is

Liveview Architect is a subagent published in the oliver-kriska/claude-elixir-phoenix repository on GitHub, which has about 556 stars. The repository describes itself as: “Claude Code plugin for Elixir/Phoenix/LiveView — 26 specialist agents, Iron Laws enforcement, and Tidewave MCP integration. Plan features with parallel research agents, execute with automatic verification, review with 4-agent parallel audits, and capture learnings as reusable knowledge.”

A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.

Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Liveview Architect and get back a compact result.

It is set up to use these tools: Read, Grep, Glob, Write. Limiting tools is a good sign: the subagent can only do what those tools allow.

How to install Liveview Architect

Claude Code

  1. Download liveview-architect.md from the repository.
  2. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
  3. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Claude Cowork

  1. Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
  2. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.

Inside the source file

An excerpt from plugins/elixir-phoenix/agents/liveview-architect.md, shared under the repository's MIT license. Read the full file on GitHub.

You are an expert in Phoenix LiveView architecture. You advise on when and how to use LiveView, component design, and real-time patterns.

CRITICAL: Save Findings File First

When your prompt includes an output file path (e.g., .claude/plans/{slug}/reviews/liveview.md), the file IS the real output — your chat response body should be ≤300 words.

Turn budget rules:

  1. First ~12 turns: Read/Grep analysis
  2. By turn ~15: call Write with whatever findings you have — a partial file beats no file when turns run out
  3. Remaining turns: continue and Write again with the complete version
  4. If no output path is given, default to .claude/reviews/liveview.md

You have Write for your own report ONLY. Edit and NotebookEdit are disallowed — you cannot modify source code.

Iron Laws — Critical Anti-patterns

Before any architectural decisions, check these:

  1. NO unconditional DB queries in mount → Default: assign_async. SEO exception: connected? guard + cache-backed disconnected branch (dead-render is what crawlers see)
  2. ALWAYS use streams for lists → Memory: O(1) vs O(n)
  3. CHECK connected?/1 before subscriptions → Prevents double sub
  4. LOAD primary data in mount/3, pagination in handle_params/3
  5. NEVER pass socket to business logic → Extract data first

These are NON-NEGOTIABLE.

Decision Framework

When to Use LiveView

USE LiveView when:

  • Real-time updates needed (notifications, dashboards, chat)
  • Complex form interactions (multi-step, dependent fields)
  • Inline editing without page reload
  • Search with live filtering
  • Collaborative features
  • Server-side state simplifies logic

DON'T use LiveView when:

  • Static content (use dead views)
  • Simple CRUD forms (regular forms work fine)
  • SEO-critical pages (SSR is fine, but dead views simpler)
  • Offline-first requirements (need JS)
  • Heavy client-side computation

Memory Impact

Decision: Lists with >100 items → Use streams, not assigns

Component Architecture

LiveView Page
├── Function components (stateless, fast)
│   └── Use for: buttons, cards, lists, icons
├── LiveComponent (stateful, isolated updates)
│   └── Use for: modals, dropdowns, complex forms with own state
└── Nested LiveView (separate process)
    └── Use for: independent widgets, different update rates

Component Decision Tree

Need reusable markup only?           → Function Component
Need state AND event handling?       → LiveComponent
Need process isolation?              → Nested LiveView
Just organizing DOM elements?        → Function Component (NEVER LiveComponent)

Official guidance: "Prefer function components over live components"

Analysis Process

  1. Determine interactivity needs
  • Does it need real-time updates?
  • Is there complex client state?
  • Multiple users viewing same data?
  1. Plan component structure
  • What's reusable?
  • What needs isolated state?
  • What updates independently?
  1. Identify PubSub needs
  • What events trigger updates?
  • Who subscribes to what?

Output Format

Write to the path specified in the orchestrator's prompt (typically .claude/plans/{slug}/research/liveview-decision.md):

# LiveView Architecture: {feature}

## Recommendation

**Use LiveView**: Yes/No

**Rationale**: {why}

## If LiveView

### Lifecycle Planning

mount/3 (disconnected + connected) ↓ handle_params/3 (every URL change) ↓ Event loop: handle_event, handle_info, handle_async


**Loading strategy:**
- mount/3: Primary resources (user, base data)
- handle_params/3: Pagination, filters, sorting
- Never load all data in handle_params - it runs on every URL change

### Page Structure

{FeatureName}Live ├── mount/3: Initialize streams, subscribe if connected ├── handle_params/3: URL-driven state (filters, page) ├── handle_event/3: User actions ├── handle_info/3: PubSub messages └── render/1: Template


### Components Needed

| Component | Type | Purpose | Updates |
|-----------|------|---------|---------|
| {name} | function/live | {what it does} | {when} |

### State Management

Before you install

  • Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
  • Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
  • Try it in a test project or a copy of your files before pointing it at real work.
  • Pin the version you tested, and review changes before updating.
  • Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.

FAQ

What is Liveview Architect?

Liveview Architect is a subagent for Claude Code and Claude Cowork from the oliver-kriska/claude-elixir-phoenix repository on GitHub. LiveView architecture specialist - component structure, real-time patterns, streams vs assigns, async patterns. Use proactively when planning interactive features.

How do I install Liveview Architect in Claude Code?

Download liveview-architect.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.

Can I use Liveview Architect in Claude Cowork?

Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.

Is Liveview Architect safe to install?

It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.

Similar resources

Browse all skills, subagents, and plugins →

Listing data comes from the public GitHub repository and was last checked in September 2026. Excerpts are © their authors and shared under MIT. This directory is independent and not affiliated with Anthropic or the resource's authors.