/mateu:mateu-federationfrom Mateu
Wires a federated Mateu setup: a shell app aggregating @UI modules via Maven (build-time, single deployment) or independent services via RemoteMenu over HTTP (runtime, true microservices). Use for app shells, microfrontends, service-owned UI modules, embedding remote UIs, or composing multiple Mateu backends.
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.
Same UI model, two ways to compose it. Pick by team/deploy boundaries.
| Build-time (Maven) | Runtime (RemoteMenu) | |
|---|---|---|
| Deploy | one jar | independent services |
| Coupling | compile-time (classpath) | runtime (HTTP) |
| New screen visible | rebuild + redeploy the app | immediately, no shell redeploy |
| Best for | cohesive modules, one team | true microservices, many teams |
An app root is a @UI("") class; @Menu fields are the navigation.
@UI("")
@Title("Operations Console")
public class Shell {
@Menu Products products; // local ViewModel
@Menu String reports = "/reports"; // a route string
@Menu RouteLink docs = new RouteLink("/docs", "Docs"); // labelled route
@Menu Settings settings; // nested @Menu → submenu
@Menu @EyesOnly(roles = "admin") AdminPanel admin; // role-gated
}
Each screen set is a framework-agnostic @UI module (mateu-uidl — plus mateu-core if it
extends archetypes like AutoCrud — and the indexer AP → META-INF/mateu/ui-registrations);
the shell app depends on each module and lists it on annotationProcessorPaths. That's exactly the two-step wiring in the mateu-scaffold
skill — do the UI-module pom for each module, and add one AP <path> per module in the app
pom. The shell's @Menu fields then reference types/routes from those modules.
Use when the modules live in the same team and ship together.
The shell stays thin and aggregates remote UIs over HTTP. Each service owns and exposes its
own @UI root; the shell only says who serves what.
// shell service
@UI("")
@Title("Operations Console")
public class ShellRoot {
@Menu RemoteMenu orders = new RemoteMenu("http://orders:8081", "/orders");
@Menu RemoteMenu products = new RemoteMenu("http://products:8082", "/products");
}
// the orders service (a separate deployable Mateu app)
@UI("/orders")
public class OrdersRoot {
@Menu OrdersCrud orders;
@Menu OrderLinesView lines;
}
RemoteMenu constructors (from io.mateu.uidl.data.RemoteMenu):
new RemoteMenu(baseUrl) // pull the remote root menu
new RemoteMenu(baseUrl, route) // pull a specific remote route
new RemoteMenu(baseUrl, explode) // explode entries into the parent menu
new RemoteMenu(baseUrl, route, explode)
The shell's server reads each remote's descriptor (an absolute baseUrl as written; a relative
one against mateu.self-base-url; restrict targets with mateu.remote.allowed-hosts), and the
browser then asks each remote for its menu and screens — so every remote must allow the
shell's origin: mateu.cors.allowed-origins=https://shell.example.com (CORS is off by default).
A new screen in a service appears in the shell without redeploying the shell. Details (tokens,
deep links, wire versions): https://mateu.io/java-user-manual/build/using-external-mateu-uis/.
Use the MicroFrontend component (fluent) to mount a remote route inside a form/section:
MicroFrontend.builder().baseUrl("/_orders").route("/my-tasks").build();
@UI("/x") root and its own port.@Menu fields: local types, RemoteMenu(...) for runtime services, or
consumed-module types for build-time modules.mateu.cors.allowed-origins on every remote to the shell's origin.baseUrl.mateu skill's reference/federation.md; docs
https://mateu.io/mateu-about/ui-federation/, https://mateu.io/mateu-about/shell-and-remote-menus/,
https://mateu.io/mateu-about/microservices/.@UI screens mounted IN-PROCESS (Spring): name its package in
mateu.ui.modules=com.vendor.ui (or @EnableMateuUiModules) — Mateu does not scan other
packages by itself.type: AppShell YAML with RemoteMenu entries) → mateu-yaml.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-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