/mateu:mateu-screenfrom Mateu
Conversational scaffolder for Mateu screens in Java. Asks three business questions to pick a template family and archetype, then generates the class in the correct module.
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.
None: SKILL.md is the whole skill.
Java path (a @UI class). For a page declared as data (YAML under specs/ui/) use the
mateu-yaml skill; C#/Python: mateu-dotnet / mateu-python — the three questions below
pick the page kind for them too.
This skill automates "The Mateu Way" (https://mateu.io/the-mateu-way/): family → starting archetype → refine only on disagreement. Your job is to ask the business questions, never the framework ones — the user should not need to know the catalog.
Read the user's request first: any question it already answers is not asked again. For the rest, ask using the host's question tool when available, or ask in chat, in this order:
Useful follow-ups (one each, only when the family needs it):
AutoCrud; listado que crece → implements Listing<Row> + capacidades (see below). Then, if
needed: "¿tabla que se edita, cola de trabajo, calendario, o lista con panel de detalle?"
→ AutoCrud / TodoList / CalendarPage / CollectionDetailItemOverview / Foldout / GeneralOverview| Family | Default | Siblings (only if the follow-up says so) |
|---|---|---|
| Collection | AutoCrud<T> (full pack) or Listing<Row> + capabilities (grows à la carte) | SmartSearchPage, TodoList, CalendarPage, CollectionDetail, DataManagement |
| Detail | ItemOverview | Foldout, GeneralOverview, read-only Drawer |
| Form | plain @UI class + @AutoLayout | — |
| Process | Wizard | ImportWizard (CSV/import flows) |
| Dashboard | Dashboard | GanttPage (time-phased work) |
| Landing | Welcome | HeroSearch (search-first landing) |
Inference is on by default — sometimes there's no archetype to pick. A plain @UI class whose
shape already spells a template composes it automatically: consecutive MetricCard fields → a
Dashboard; only Button fields + @Panel tiles → a Welcome landing. So for those two, you can just
declare the fields and skip the archetype entirely (the class stays overridable; @AutoPage(false)
opts out). Prefer this "declare data, let it infer" path when it fits; reach for the explicit
archetype when you need its knobs (columns(), custom composition) or when the shape isn't
self-evident.
@UI("") class with @Menu fields): add a @Menu field of the screen's
type on the shell — the field name is the route (@Menu Suppliers suppliers; → /suppliers),
no @UI needed (the starters' Products has none; @UI("/route") is for a screen that is a
mount of its own).specs/ui/app.yaml, type: AppShell — the code + YAML projects): do NOT put
@UI on the screen. Bind it in specs/ui/routes.yaml (- route: suppliers +
viewModel: com.acme.app.Suppliers, routes are relative to the mount) and add a menu entry to
app.yaml (- type: RouteLink, label:, route: suppliers). The @UI/@Menu lines of the
examples below are then left out.grep -rl "@UI(" --include='*.java' ., or the package of the
view models routes.yaml names), same package conventions.mateu-scaffold skill first — the build wiring
(indexer + framework AP) is the part that fails silently.grep -rn '@UI("/route")' . and routes.yaml — two @UI classes on
one path fail the build).Open the matching demo class (fetch the GitHub URL) and mirror its structure — they compile against the current API:
| Archetype | Reference (GitHub) | Demo route |
|---|---|---|
AutoCrud | Products.java | /products |
CollectionDetail | HotelDirectory.java | /collection-detail-demo |
CalendarPage | TeamCalendar.java | /calendar-demo |
TodoList | FrontDeskTasks.java | /todo-list-demo |
SmartSearchPage | AssetSearch.java | /smart-search-demo |
ItemOverview | ProductOverview.java | /product-overview |
Foldout | BookingFoldout.java | /foldout-demo |
GeneralOverview | RequisitionOverview.java | /general-overview-demo |
Wizard | BranchingSignupWizard.java | /branching-wizard |
Dashboard | SalesDashboard.java | /dashboard-demo |
Welcome | WelcomeDemo.java | /welcome-demo |
(Inside the Mateu repo the same files are under demo/.) The mateu skill's references also
carry a compiled example per archetype.
Minimal seeds for the two families that need no reference:
// Collection — full-pack CRUD
@UI("/things")
public class Things extends AutoCrud<Thing> { // Thing implements Identifiable
@Override
public CrudStore<Thing> store() {
return new ThingStore(); // your CrudStore<Thing>
}
}
// Collection — listing that grows by declaring capabilities (additive):
// add Searchable (search box), Filterable<F> (filter bar), Navigable<Detail,Id>
// (clickable rows + /:id), Editable<Editor,Id> (edit; drawer if not navigable),
// Creatable<Form,Id> (New), Deletable<Id> (selection + Delete) as needed
// (Listing and Searchable are the io.mateu.uidl.interfaces types)
@UI("/orders")
public class Orders implements Listing<Orders.OrderRow>, Searchable {
public record OrderRow(String id, String customer, double total) {}
public ListingData<OrderRow> search(SearchRequest request, HttpRequest http) {
return ListingData.of(orders.search(request.searchText())); // a List<OrderRow>; Mateu pages it
}
}
// Form
@UI("/feedback")
@AutoLayout
public class Feedback {
@NotEmpty String subject;
@Stereotype(FieldStereotype.textarea) String details;
@Button
Message send() { /* call the use case */ return new Message("Thanks!"); }
}
For AutoCrud, implement CrudStore<T> (in-memory with a static map for a first version, or a
Spring @Service over the real repository) and return it from store() — it is abstract, every
AutoCrud overrides it. The mateu skill's reference/crud.md has a complete store.
A form with a supporting side panel (help text, a summary card, related links) needs no
archetype — mark that one component-holder field @Aside and the form composes a content-page
(the field goes to the side, the form is the main region):
@UI("/profile")
public class Profile {
@NotEmpty String name;
String email;
@Aside(width = "20rem") // side panel; the rest of the form is the main region
Markdown help = new Markdown("Need help? Contact support.", null, null);
}
Offer, don't pile on: @Aside (a supporting side panel → content-page layout), @Section/@Zones
(grouping/columns), @Toc (long pages), @Compact (dense ops screens), @PageWidth, validation
annotations, @Lookup for foreign keys. Explicit always wins over inference.
Build the UI module, then the app, then use the mateu-run skill to boot and screenshot the
new route; run the mateu skill's reference/view-checklist.md first. A screen is not delivered
until it has rendered.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub miguelperezcolom/mateu --plugin mateu8 skills in this plugin
/mateuBuild Mateu UI screens in JAVA — declarative @UI classes and fluent component trees that Mateu renders as a web (or native) UI. Use when creating or editing Java CRUD screens, forms, listings, wizards, editor/master-detail views, dashboards, app shells or federated UIs with Mateu (io.mateu). Triggers on @UI, AutoCrud, CrudStore, Listing, Wizard, Dashboard, ComponentTreeSupplier, @Menu. For YAML/data authoring use mateu-yaml; for C# use mateu-dotnet; for Python use mateu-python./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.Other plugins' skills for the same job