/mateu:mateu-runfrom Mateu
Builds, runs, and screenshots Mateu apps across Java (Spring Boot, Quarkus, Micronaut, Helidon), .NET, and Python. Handles UI-module build order, server startup, wire API calls, and Playwright screenshot capture.
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; scripts run unread.
A screen is not done until it has rendered. This skill knows the build order, how to start each kind of Mateu project, how to poke the wire API, and has a one-shot screenshot script.
If the @UI classes live in a separate module, build and install it first (its jar
carries the META-INF/mateu/ui-registrations index the app's annotation processor reads), then
the app:
(cd my-ui-module && mvn clean install)
(cd my-app && mvn clean package -DskipTests)
A single-module app (screens in the app itself) just builds the app.
| Project | Start | Default URL |
|---|---|---|
Spring Boot (MVC/WebFlux), yaml flavour | mvn spring-boot:run (other port: -Dspring-boot.run.arguments=--server.port=8081) | http://localhost:8080 |
| Quarkus | mvn quarkus:dev | http://localhost:8080 |
| Micronaut | mvn mn:run | http://localhost:8080 |
| Helidon MP | mvn package && java -jar target/<artifactId>.jar (no version in the jar name) | http://localhost:8080 |
| static bundle | mvn mateu-bundle:dev (rebuilds + reloads on every save; read the mateu-dev: serving … line for the port; the next lines give the iOS simulator / Android emulator URLs for the RN app, and with -Dmateu.dev.host=0.0.0.0 a LAN URL + QR for a phone) — or the finished bundle: mvn package && npx serve -s target/mateu-bundle | http://localhost:3000 |
| .NET | MATEU_UI=<mateu-vaadin jar or its static/> dotnet run | http://localhost:8080 |
| Python | MATEU_UI=<mateu-vaadin jar or its static/> uvicorn main:app --port 8080 | http://localhost:8080 |
.NET/Python answer only the wire API unless MATEU_UI points at the web renderer
(curl -LO https://repo1.maven.org/maven2/io/mateu/mateu-vaadin/<version>/mateu-vaadin-<version>.jar).
Wait until the port answers before probing; kill the process when done.
Every Mateu server answers the same endpoint. It needs a JSON body (an empty POST is a 400):
# load a route (actionId "" = load)
curl -s -X POST -H 'Content-Type: application/json' \
-d '{"route":"/products","consumedRoute":"","actionId":"","componentState":{}}' \
http://localhost:8080/mateu/v3/sync/products
# run an action on a view: serverSideType = the view's class, componentState = its field values
curl -s -X POST -H 'Content-Type: application/json' \
-d '{"route":"/greeting","consumedRoute":"","actionId":"greet","serverSideType":"com.example.app.Greeting","componentState":{"name":"Ada"}}' \
http://localhost:8080/mateu/v3/sync/greeting
Look for your fields/columns in fragments; "Not found." = no screen at that route; HTTP
403 on an action = the method isn't marked as an action (strict mode) — see the server log.
A CRUD / listing answers in steps, like the browser: the first load returns a thin App with
"variant":"MEDIATOR" (the CRUD's own router, no columns yet); load again with
"consumedRoute":"/suppliers" and "serverSideType":"<its class>" to get the Crud with its
GridColumns and filter FormFields; the ROWS come from the search action
("actionId":"search", same body) at fragments[0].data.crud.page.content. A shell route
("") answers the App with its menu.
scripts/screenshot.mjs (next to this file) opens the route in
headless Chromium, waits for mateu-component, lets web components settle, and captures. A
blank or missing image means the screen didn't render.
# once, in any scratch folder
npm i -D playwright && npx playwright install chromium
cp <this skill dir>/scripts/screenshot.mjs .
node screenshot.mjs --url http://localhost:8080/<route> --output /tmp/<name>.png
node screenshot.mjs --url http://localhost:8080/<route> --output /tmp/<name>.png --element vaadin-form-layout
| Flag | Default | Meaning |
|---|---|---|
--url | — (required) | route to capture |
--output | — (required) | destination PNG path |
--wait-for | mateu-component | CSS selector to wait for (pierces shadow DOM); mateu-page for form pages |
--element | — | capture only this element instead of the full page |
--width / --height | 1280 / 800 | viewport size |
--full-page | false | capture the whole scrollable page |
--settle | 1500 | extra ms after --wait-for appears |
--timeout | 20000 | max ms to wait for --wait-for |
Then look at the PNG (read the image) and check the screen shows what you declared.
Inside the Mateu repo the same script is e2e/screenshot.mjs; doc images go to
doc/public/images/docs/<topic>/<name>.png. Follow the repository's screenshot conventions
when working inside that repository; other projects can choose their own output directory.
Every Mateu UI is an installable Progressive Web App: its page links
<base>/mateu/v3/pwa/manifest.webmanifest and registers a network-first service worker
(<base>/mateu/v3/pwa/sw.js; a static bundle: pwa/manifest.webmanifest + mateu-sw.js). Online it
never serves a cached copy, so it is not a reason for a stale screen — but when two apps take turns
on the same localhost:<port>, a worker installed by the first can still answer the second's page
when the server is down. Clear it in DevTools → Application → Service workers (Unregister) or run
with mateu.pwa.enabled=false / MATEU_PWA_ENABLED=false (-Dmateu.bundle.pwa=false for a bundle).
mateu.dev=true and mvn mateu-bundle:dev never register it. Check installability in Chrome:
DevTools → Application → Manifest (no installability errors), or CDP
Page.getInstallabilityErrors in a Playwright script.
verify.md).What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 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.npx claudepluginhub miguelperezcolom/mateu --plugin mateuOther plugins' skills for the same job