/mateu:mateufrom Mateu
Builds Mateu UI screens in Java using declarative @UI classes and fluent component trees. Use for CRUD screens, forms, listings, wizards, dashboards, and master-detail views.
Ships in Mateu. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Mateu turns an annotated Java class into a full screen. The class is the view model: fields are state, methods are actions, annotations express intent. The server is stateless; a generic renderer paints the wire model it receives.
This skill is the Java path. The same model can be authored as data (YAML under
specs/ui/ → skill mateu-yaml), in C# (mateu-dotnet) or Python (mateu-python);
build wiring is mateu-scaffold, running/screenshotting mateu-run.
Prefer declarative (annotations on a plain class). Drop to fluent (build a component tree in code) only for a custom or data-dependent layout.
Never write HTML, CSS frameworks, JavaScript, REST controllers or transport DTOs —
Mateu generates all of that from the model. Validate with Bean Validation
(@NotEmpty, @Email, @Min, @NotNull, …), enforced client- and server-side.
| You want | Use | Reference |
|---|---|---|
| list + create/edit/view/delete | extends AutoCrud<T> + CrudStore<T> | crud.md |
| a listing that may grow (search/filters/detail/edit/create/delete à la carte) | implements Listing<Row> + capability interfaces (Searchable, Filterable<F>, Navigable, Editable, Creatable, Deletable) | crud.md |
| a single form with an action | a class with fields + @Button | form-actions.md |
| a multi-step flow | extends Wizard + WizardStep fields | wizard.md |
| a dashboard landing page | extends Dashboard (or just MetricCard fields — inferred) + @Panel | dashboard.md |
| a record page with fold-out panels | extends Foldout + overview field + @Panel | foldout.md |
| a search-first landing page | extends HeroSearch<Filters, Row> | hero-search.md |
| a detail page with pinned key info + tabs | extends ItemOverview + key-info field + @Panel | item-overview.md |
| a welcome/landing page for a flow | extends Welcome + Button fields + @Panel | welcome.md |
| "nothing here yet" / loading placeholders | EmptyState / Skeleton components | empty-states.md |
| edit CRUD rows in the listing grid | class-level @InlineEditing on AutoCrud | crud.md |
| read ⇄ edit on one entity | extends AutoEditableView<T> | editor.md |
| a custom / dynamic layout | implements ComponentTreeSupplier | fluent.md |
| an app menu / shell / federation | @UI("") + @Menu / RemoteMenu | federation.md |
| render a domain object you can't annotate | ComponentAdapter<T> (a bean) | extension.md |
| a dense screen composing many sub-forms | @Inline + @Compact + @Zones | inline-dense-screens.md |
| panels that react to each other | @Emits / @SubscribeTo / @OnRowSelected | component-communication.md |
| one screen projected per persona | @Audience({"Staff"}) + an @AppContext field named audience (UX aid, not security — combine with @EyesOnly) | https://mateu.io/ux-patterns/audience-projection/ |
| a schedule / timeline | Gantt + GanttTask, or extends GanttPage | https://mateu.io/ux-patterns/gantt/ |
| front-office widgets: work queue, context banner, folio, room picker, offer, add-ons, checklist, meter, N-of-M progress, process monitor | TaskQueue, EntityHeader, Ledger+PaymentPicker, ResourceGrid, OfferCard, AddOnPicker, StatusList, Meter, TaskProgress, ProcessMonitor (all .builder()) | fluent.md |
Full annotation catalog: annotations.md · Common mistakes: gotchas.md · Pre-flight checklist (run before calling a view done): view-checklist.md · Testing: testing.md · Deployment topologies: standalone-desktop.md
@UI("/greeting")
public class Greeting {
String name; // editable field → state
@ReadOnly String message = "Hi :)"; // shown, not editable
@Button void greet() { message = "Hi, " + name; } // method → action
}
Adding a @Button/@Action method flips a read-only view into a form — the presence of an
action is the switch.
An action returns what to do next, never pixels:
@Button Object save() {
repo.save(this);
return List.of(
new Message("Saved"), // toast
new State(this) // re-render the view with its new field values (no navigation)
);
}
Return values: void/null (stay), new Message("…") / Message.error("…") (toast),
new State(this) (update without navigating), URI.create("/path") (navigate), any Java
object (open it as a view), PageBanner, UICommand.… (dispatch an event, close a modal…),
or a List.of(...) of several in one round trip. There is no Navigation type.
record or static class.@UI class is NOT a bean: Mateu instantiates it fresh on
every request and still injects its @Autowired/@Inject fields. Don't annotate it
@Component/@Service; if you must (e.g. constructor injection) it MUST be
@Scope("prototype") — a singleton shares form state across users.@Action, @Button, @Toolbar, @WizardCompletionAction…) or the view
itself names it (a fluent Button's actionId, a MetricCard.actionId, a trigger,
@OnRowSelected, @SubscribeTo). When in doubt, put @Action on the handler.io.mateu.uidl.annotations and io.mateu.uidl.data
share names (@Menu/Menu, @Button/Button, @Text/Text, @Badge, @Notice, @Tab,
@Status…), Listing is both interfaces.Listing (implement it) and fluent.Listing (a
component), Searchable/Filterable are both annotations and interfaces, and
annotations.List / data.Map clash with java.util — wildcard imports of two of these
packages fail with "reference is ambiguous". Which package holds what: imports.md.@Style(StyleConstants.CONTAINER) (io.mateu.uidl.StyleConstants) so they
don't stretch across wide screens; @Section(columns = n) to pack short fields.Identifiable (String id()); save returns the id (generate a
UUID when null).@Stereotype(FieldStereotype.textarea|email|password|money|…);
@Status/@StatusMapping for coloured state badges; @Lookup for relations.Single Spring Boot MVC app: io.mateu:mateu-mvc + a renderer (io.mateu:mateu-vaadin or
mateu-redwood), and io.mateu:mateu-annotation-processor-mvc in <annotationProcessorPaths>
(other runtimes swap the pair: -webflux, -quarkus, -micronaut, -helidon-mp). The
annotations/records live in io.mateu:mateu-uidl; the archetype base classes (AutoCrud,
Wizard, Dashboard, Foldout, HeroSearch, ItemOverview, Welcome, AutoEditableView…,
package io.mateu.core.infra.declarative.orchestrators.*) live in io.mateu:mateu-core (also
framework-neutral). A reusable UI module needs mateu-uidl (+ mateu-core if it extends an
archetype) and the indexer AP. Full poms: mateu-scaffold.
Always-current sources: https://mateu.io/llms.txt, https://mateu.io/mateu-ai-compact.md (~2.5k tokens), https://mateu.io/mateu-ai-full.md, https://mateu.io/reference/key-annotations/, https://mateu.io/reference/key-interfaces/, https://mateu.io/reference/java-imports/. Prefer them if anything here looks out of date.
reference/annotations.md (opens in a new tab)reference/component-communication.md (opens in a new tab)reference/crud.md (opens in a new tab)reference/dashboard.md (opens in a new tab)reference/editor.md (opens in a new tab)reference/empty-states.md (opens in a new tab)reference/extension.md (opens in a new tab)reference/federation.md (opens in a new tab)reference/fluent.md (opens in a new tab)reference/foldout.md (opens in a new tab)reference/form-actions.md (opens in a new tab)reference/gotchas.md (opens in a new tab)reference/hero-search.md (opens in a new tab)reference/imports.md (opens in a new tab)reference/inline-dense-screens.md (opens in a new tab)reference/item-overview.md (opens in a new tab)reference/standalone-desktop.md (opens in a new tab)reference/testing.md (opens in a new tab)reference/view-checklist.md (opens in a new tab)reference/welcome.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub miguelperezcolom/mateu --plugin mateu8 skills in this plugin
/mateu-dotnetBuild Mateu UIs in C# on ASP.NET Core (Mateu.NET) — classes marked [UI] become forms, CRUDs, listings, wizards, dashboards and an app shell, served on the Mateu wire so any Mateu renderer draws them. Use when writing or fixing a C#/.NET Mateu app: Program.cs wiring, views, actions, Crud<T>, capability listings, [App]/[MenuItem] menus, security, tests. Triggers on [UI] attribute, Mateu.AspNetCore, Mateu.Uidl, AddMateu, MapMateu, Crud<T>, IListing, [MenuItem], MATEU_UI with .cs/.csproj files./mateu-federationWire a federated Mateu setup end to end — a shell app that aggregates several @UI modules by Maven (build-time, one deployment) or independent services by RemoteMenu over HTTP (runtime, true microservices). Use when building an app shell, microfrontends, service-owned UI modules, embedding a remote UI in a page, or composing several Mateu backends. Triggers on shell, @Menu, RemoteMenu, MicroFrontend, microfrontend, service-owned UI, compose backends./mateu-pythonBuild Mateu UIs in Python on FastAPI (package mateu-ui) — classes decorated @ui become forms, CRUDs, listings, wizards, dashboards and an app shell, served on the Mateu wire so any Mateu renderer draws them. Use when writing or fixing a Python Mateu app: add_mateu wiring, views, Annotated[...] field markers, actions, Crud[T], capability listings, @app/@menu_item menus, security, pytest. Triggers on @ui decorator, mateu_ui, mateu-ui on PyPI, add_mateu, Crud[...], Listing[...], @menu_item, MATEU_UI with .py files./mateu-runBuild, run and screenshot a Mateu app to see a screen actually render — Java (Spring Boot, Quarkus, Micronaut, Helidon), YAML-only, static bundle, .NET or Python. Use when asked to run a Mateu app, verify a screen renders in the real UI (not just tests), call the wire API, or capture a PNG of a route. Handles the UI-module → app build order and ships a Playwright screenshot script. Triggers on run the app, start the server, screenshot the screen, verify it renders, spring-boot:run, mateu/v3/sync./mateu-scaffoldScaffold a new Mateu project or module and wire the Java build correctly — the project generator front doors, the two-step annotation processing (indexer + framework AP), the renderer dependency and the main class. Use when starting a new Mateu app, adding a framework-agnostic @UI module, or fixing "my @UI class compiles but no controller is generated / the route 404s / nothing renders". Triggers on new Mateu project, pom.xml, annotationProcessorPaths, mateu-annotation-processor-indexer, mateu-annotation-processor-mvc, mateu-mvc, mateu-vaadin, mateu-archetype./mateu-screenConversational scaffolder for a single Mateu screen in Java — three business questions pick the template family, the family picks the starting archetype, and the class is generated in the right module. Use when the user wants a new screen, page, view, listing, form, wizard, dashboard or landing and hasn't named the archetype themselves. Triggers on new screen, nueva pantalla, add a page, create a view, scaffold a screen, "which archetype", "qué arquetipo".Other plugins' skills for the same job