gleam-lustre-development

Guide Claude Code through idiomatic Lustre frontend development with Model-Update-View architecture.

3|1|Updated Jan 23, 2026
One-click install
npx skills add https://github.com/renatillas/gleam --skill gleam-lustre-development
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gleam-lustre-development
Source: https://github.com/renatillas/gleam/tree/main/skills/gleam-lustre-development
Command: npx skills add https://github.com/renatillas/gleam --skill gleam-lustre-development

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill guides Claude Code through idiomatic Lustre frontend development, helping teams implement SPAs and UI components using Lustre patterns from the official Lustre team.

Core Features & Use Cases

  • Model-Update-View architecture guidance: explains how to structure apps with Lustre, including init, update, and view functions.
  • Component patterns with Lustre UI: demonstrates how to compose reusable components and web components using lustre_ui references.
  • Accessibility and keyboard navigation notes: covers ARIA attributes, focus management, and keyboard controls for interactive UI.
  • Use Case: Architect a small SPA with a counter and live data panel following Elm Architecture and Lustre UI.

Quick Start

Ask the assistant to outline an idiomatic Lustre frontend architecture and generate a starter Lustre project using lustre_ui patterns.

Frequently Asked Questions about gleam-lustre-development

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Lustre frontend SPA using the Model-Update-View architecture?

To structure a Lustre frontend SPA, you implement the Model-Update-View architecture by defining init, update, and view functions to manage state and render UI components. This enforces predictable state transitions and non-blocking rendering for interactive applications.

What is the best way to build accessible UI components with Lustre?

Building accessible UI components with Lustre involves applying ARIA attributes, managing focus, and ensuring keyboard navigation controls. Following official lustre_ui patterns ensures interactive elements remain accessible while maintaining proper component composition.

How does Lustre handle rendering lists without blocking the UI?

Lustre handles rendering lists without blocking the UI by enforcing keyed rendering and non-blocking rendering patterns. This prevents performance bottlenecks during state updates when rendering dynamic lists in single-page applications.

Can I use Lustre UI patterns to build reusable web components for my Gleam project?

Yes, you can use Lustre UI patterns to compose reusable web components in your Gleam project. The framework provides guidance on component composition using official lustre_ui references to create interactive UI elements.

How do I name messages in a Lustre update function for idiomatic frontend development?

To name messages in a Lustre update function for idiomatic frontend development, you follow proper message naming conventions enforced by the architecture. This ensures clear intent and maintainable state transitions within your application logic.