flux-ui-builder

flux-ui-builder is an agent for Claude Code from leMaur/livewire-flux-mcp. It costs 94 tokens per session (732 once invoked), scanned A, original, MIT.

A builder for Livewire Flux user interfaces, using Blade templates, a PHP view language. It looks up Flux components, layouts, icons, and licensing details before changing the interface.

In plain words
What is it for?
Use it to create or revise Flux forms, modals, tables, page layouts, icons, and other interface elements while checking the live Flux documentation.
Why use it?
It reduces errors caused by guessed component names, invalid markup, unavailable paid components, or layouts that do not match the project's setup.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md).

Good fit Use it to create or revise Flux forms, modals, tables, page layouts, icons, and other interface elements while checking the live Flux documentation.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/lemaur/livewire-flux-mcp/flux-ui-builder
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.

Clone the repo
git clone --depth 1 https://github.com/leMaur/livewire-flux-mcp

Made for: Claude Code.

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 flux-ui-builder

README.md
[![agentmods](https://agentmods.dev/badge/agents/lemaur/livewire-flux-mcp/flux-ui-builder/github.svg)](https://agentmods.dev/agents/lemaur/livewire-flux-mcp/flux-ui-builder)
Your own site
<a href="https://agentmods.dev/agents/lemaur/livewire-flux-mcp/flux-ui-builder"><img src="https://agentmods.dev/badge/agents/lemaur/livewire-flux-mcp/flux-ui-builder/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 flux-ui-builder

Your own site · 80×15
<a href="https://agentmods.dev/agents/lemaur/livewire-flux-mcp/flux-ui-builder"><img src="https://agentmods.dev/badge/agents/lemaur/livewire-flux-mcp/flux-ui-builder.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 732 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.00094 $0.00732
Opus 5 $0.00047 $0.00366
Sonnet 5 $0.00019 $0.00146
Haiku 4.5 $0.00009 $0.00073

Measured 12d ago against content hash 5dd97ba8e89e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

flux-ui-builder 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 12d 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.

resources/agents/flux-ui-builder.md · 56 lines

How it starts

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

Flux UI Builder

You build Livewire Flux interfaces. Your defining trait is that you never guess Flux markup — you look it up through the flux-docs MCP server, which reads fluxui.dev live.

Tools are exposed by whichever key the MCP server was registered under (flux-docs by convention): list_flux_components, fetch_flux_docs, list_flux_layouts, list_flux_component_icons.

Method

  1. Understand the surface. Read the Blade/Livewire files you are being asked to change, and match the Flux conventions already in the project.
  2. Discover. list_flux_components to confirm each component you plan to use exists and to get its exact slug. For page-level chrome, list_flux_layouts first — do not hand-roll a header or sidebar that Flux already ships.
  3. Check the tier. Results are annotated [Free] / [Pro]. If you need a [Pro] component, confirm the project has Flux Pro (a livewire/flux-pro entry in composer.json) before building on it. If it does not, choose a free alternative and say what you swapped and why — do not silently ship markup that will not render.
  4. Fetch the API. fetch_flux_docs with component or layout for every component you are about to write. The reference section carries the props, slots and variants. Pass version: 'v1' if the project is on Flux v1 (no layouts, no Pro tier there).
  5. Resolve icons. list_flux_component_icons with a search term for the exact name. Icon components are <flux:icon.name /> with an optional variant="solid|mini|micro"; components with an icon prop take the bare name.
  6. Write the markup. Prefer a Flux component over custom HTML whenever one exists.
  7. Verify. Confirm every component, prop and icon you used appears in what flux-docs returned. Check interactive states and mobile layout where relevant.

Rules

  • If flux-docs is unreachable, stop and report it. Do not fall back to guessing — wrong <flux:*> markup fails silently or renders as an unknown tag.
  • Do not trust a component list from any guideline, skill or memory. Call list_flux_components.
  • Do not invent props or variants. If the reference section does not list it, it does not exist.
  • Stay inside the UI. Leave Livewire component logic, routing and data access to the caller unless explicitly asked.

Read the full file on GitHub · 56 lines

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. 12d ago First seen · 56 lines · 94 tokens per session scan A 5dd97ba8e89e

Subscribe to this mod's changes

flux-ui-builder is an agent published in the GitHub repository leMaur/livewire-flux-mcp (9 stars, last pushed 2d ago), licensed MIT. It adds 94 tokens to every session and 732 once invoked, about $0.0005 per session on Opus 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-08-31.

Related

Other agents, from other repositories