Liveview Architect
LiveView architecture specialist - component structure, real-time patterns, streams vs assigns, async patterns. Use proactively when planning interactive features.
- Type
- Subagent
- Repository
- oliver-kriska/claude-elixir-phoenix
- 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
- 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.
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.
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:
- First ~12 turns: Read/Grep analysis
- By turn ~15: call Write with whatever findings you have — a partial file beats no file when turns run out
- Remaining turns: continue and Write again with the complete version
- 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:
- NO unconditional DB queries in mount → Default: assign_async. SEO exception: connected? guard + cache-backed disconnected branch (dead-render is what crawlers see)
- ALWAYS use streams for lists → Memory: O(1) vs O(n)
- CHECK connected?/1 before subscriptions → Prevents double sub
- LOAD primary data in mount/3, pagination in handle_params/3
- 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 ratesComponent 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
- Determine interactivity needs
- Does it need real-time updates?
- Is there complex client state?
- Multiple users viewing same data?
- Plan component structure
- What's reusable?
- What needs isolated state?
- What updates independently?
- 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 Planningmount/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
- Phx Elixir/Phoenix/LiveView development with specialist agents, Iron Laws, and Tidewave MCP integration Plugin · oliver-kriska/claude-elixir-phoenix
- Hex Deps Triager Triage Hex supply-chain audit findings in Elixir/Phoenix — review diff windows and metadata to produce structured security verdicts. Use after /phx:deps-audit. Subagent · oliver-kriska/claude-elixir-phoenix
- Elixir Reviewer Expert Elixir/Phoenix code reviewer - idioms, patterns, performance, conventions. Use proactively after writing Elixir code. Subagent · oliver-kriska/claude-elixir-phoenix
- Hex Library Researcher Researches Elixir libraries on hex.pm. Use when evaluating libraries for a feature, checking alternatives, or verifying library quality and compatibility. Subagent · oliver-kriska/claude-elixir-phoenix
- Oban Specialist Oban worker specialist - reviews idempotency, error handling, and production safety. Use proactively when implementing or reviewing background jobs. Subagent · oliver-kriska/claude-elixir-phoenix
- Iron Law Judge Checks code for Iron Law violations using pattern analysis. Use proactively after code changes or as part of review. Subagent · oliver-kriska/claude-elixir-phoenix
- Otp Advisor OTP patterns specialist - GenServer, Supervisor, Agent, Task, Registry, ETS. Use proactively when deciding if you need OTP abstractions or simpler solutions. Subagent · oliver-kriska/claude-elixir-phoenix
- Parallel Reviewer Parallel code review using 4 specialist agents (elixir-reviewer, security-analyzer, testing-reviewer, verification-runner). Use for thorough review of significant changes. Subagent · oliver-kriska/claude-elixir-phoenix