/uno-platform-studio:uno-mvuxfrom uno-platform-studio
Guides writing MVUX state management for Uno Platform apps: feeds, states, FeedView, commands, and immutable partial record Models with generated ViewModels. Use when loading async data, binding user input, showing loading/error/empty states, editing collections, or needing a Model layer.
Ships in uno-platform-studio. 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.
MVUX is the state-management pattern Uno Platform projects use instead of hand-written MVVM. A partial record Model exposes feeds and states; a source generator produces the bindable ViewModel. Generic agents get MVUX wrong in a handful of predictable ways (calling the deprecated Update alias, mutating a read-only feed, skipping key equality, dropping partial or the Model suffix). This skill exists to stop those mistakes and to route you to the detailed reference for the task at hand.
Look at <UnoFeatures> in the app's project file before writing any presentation code.
MVUX is listed, or the project has *Model records: use this skill.Mvvm is listed, or ViewModels derive from ObservableObject or use [ObservableProperty]/[RelayCommand] (CommunityToolkit.Mvvm): the app is MVVM. Keep writing CommunityToolkit.Mvvm ViewModels; do not add MVUX, convert ViewModels to Models, or mix the two in one app unless the user asks for a migration. The rest of this skill does not apply.references/*.md file before writing code. Each reference is short and self-contained.uno_platform_docs_search(...) and fetch only the section you need: uno_platform_docs_fetch(sourcePath="…", anchor="…"), both values from a search result. A whole page is 2,000 to 6,000 tokens that stay in context for the rest of the session. Never pass a URL, .html link, or hand-built path.obj/ from the last build; with the app running, the Hot Reload status reports a Model that fails to compile) against them before finishing.| Task | Read | Key APIs |
|---|---|---|
| Explain MVUX, compare with MVVM, add MVUX to a project | references/overview.md | <UnoFeatures>MVUX</UnoFeatures>, *Model → *ViewModel |
| Design entities and Models | references/records.md | partial record, IKeyEquatable<T>, [Key], with |
| Load a single async value from a service or API | references/feed-basics.md | IFeed<T>, Feed.Async, Select, Where, Signal |
| Load a collection | references/listfeed.md | IListFeed<T>, ListFeed.Async, IImmutableList<T> |
| Show a feed in XAML with loading, error, and empty UI | references/feedview.md | mvux:FeedView, {Binding Data}, Refresh |
| Two-way bind user input, hold editable state | references/state-basics.md | IState<T>, State.Value, UpdateAsync, ForEach |
| Add, remove, or edit items in a list | references/liststate.md | IListState<T>, AddAsync, RemoveAllAsync, UpdateAllAsync, UpdateItemAsync |
| Bind a Button or other control to a Model method | references/commands.md | public methods → IAsyncCommand, [ImplicitCommands] |
| Track the selected item or items of a list | references/selection.md | .Selection(state), IState<T>, IState<IImmutableList<T>> |
| Infinite scroll or page-by-page loading | references/pagination.md | ListFeed.PaginatedAsync, PageRequest |
| Keep several pages in sync after create/update/delete | references/messaging.md | IMessenger, EntityMessage<T>, .Observe(messenger, e => e.Id) |
These come up in nearly every MVUX task. Each reference repeats the ones it needs, but read them once here.
partial record types with a Model suffix (MainModel, ProductsModel). partial record is the convention; the generator gates on partial plus the Model suffix, so a partial class also generates. The generator emits MainViewModel; that generated type is what the page's DataContext receives. Services are injected through the record's constructor parameters.with expressions to produce modified copies.IFeed<T> and IListFeed<T> have no Update/Add/Remove; calling them is a compile error. If code must mutate, the property must be IState<T> or IListState<T> (convert with ListState.FromFeed(this, feed)).UpdateAsync, and it must be awaited. Update(updater, ct) still exists on IState<T> and IListState<T>, but it is hidden (EditorBrowsable(Never)), documented as deprecated, and needs the token. Its [Obsolete] is compiled only into Debug builds of the library, so Release packages accept it without a warning and the official template's MAUI-embedding sample (--sample --maui-embedding) still writes await Count.Update(x => ++x, ct). Prefer await state.UpdateAsync(current => ...). On a list, edit one item with UpdateAllAsync(predicate, updater) or UpdateItemAsync(item, updater); the hidden UpdateAsync(predicate, updater, ct) overload also still compiles, and the single-delegate UpdateAsync on IListState<T> receives the whole IImmutableList<T>.current argument. Do not capture fields or perform side effects inside the lambda; MVUX applies it against a cached value and a non-pure updater gives unstable results. A static local function is the safest form.IListFeed<T> or IListState<T> must implement Uno.Extensions.Equality.IKeyEquatable<T>, which is auto-generated for a partial record with an Id or Key property, or via [Key] (assembly-wide names via [assembly: ImplicitKeys(...)]). Without it, value equality still matches unchanged items, but an edited record becomes a remove plus an add (selection and animation continuity are lost), and the UpdateAsync(T item) / UpdateItemAsync overloads do not compile at all (CS0311, or CS0453 for UpdateItemAsync because overload resolution falls to its struct overload: they are constrained where T : IKeyEquatable<T>). Never invent a substitute interface such as IHasKey<T>.{Binding}, not x:Bind. The templates, the docs, and Chefs all use {Binding}. x:Bind needs a typed property on the page for the generated ViewModel, and record-typed states are exposed as a generated Bindable<Name>ViewModel class with a private setter (opt out with [Value]; simple-typed states are plain properties). On Uno.Sdk 7.0.0-dev.77 any TwoWay x:Bind to a generated ViewModel member fails at build (UXAML0001 Unable to find member, even for an int state), and a public page property typed as the generated ViewModel fails with CS0400.FeedView binds the feed, templates bind Data. Source="{Binding MyFeed}" on the FeedView; inside its value template use {Binding Data.Property}. FeedView already exposes Refresh; do not create a refresh command. The value template can bind {Binding Refresh}, but ErrorTemplate and ProgressTemplate receive the exception and the progress flag as their DataContext, so a retry button there needs Command="{Binding Refresh, ElementName=<feedViewName>}".IFeed<T>/IState<T> property case-insensitively and its type is exactly T (exactly IImmutableList<T> for a list feed); a name match with any other type silently becomes the CommandParameter. A method becomes a command only with 0 or 1 non-feed parameters and 0 or 1 CancellationToken. Opt out with [ImplicitCommands(false)].CancellationToken and return ValueTask<T> (ValueTask<IImmutableList<T>> for lists). Feed.Async/ListFeed.Async take an AsyncFunc<T> (ValueTask<T>(CancellationToken)), so such a method group passes directly; a Task<T> method needs a lambda: Feed.Async(async ct => await Service.GetAsync(ct)).uno-navigation for moving between pages and passing entities; MVUX Models are registered with ViewMap/DataViewMap there.uno-toolkit (references/itemsrepeater-extensions.md) when a paginated or selectable list is rendered with ItemsRepeater instead of ListView.uno-testing to verify loading, error, and value states of a FeedView in a running app.references/commands.md (opens in a new tab)references/feed-basics.md (opens in a new tab)references/feedview.md (opens in a new tab)references/listfeed.md (opens in a new tab)references/liststate.md (opens in a new tab)references/messaging.md (opens in a new tab)references/overview.md (opens in a new tab)references/pagination.md (opens in a new tab)references/records.md (opens in a new tab)references/selection.md (opens in a new tab)references/state-basics.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
uno-platform, mvux, state-management, model-view-update, dotnet-maui
9 skills in this plugin
/uno-authenticationSign-in for Uno Platform apps with Uno.Extensions.Authentication: IAuthenticationService (LoginAsync, RefreshAsync, LogoutAsync, LoggedOut), custom login against your own API, MSAL (Microsoft Entra ID, B2C), OpenID Connect, and web/OAuth redirect providers, the access token added to Refit and Kiota calls, and the login/logout navigation flow. Use whenever an Uno app needs a login page, sign-in, sign-out, user accounts, a session that survives restarts, tokens or bearer headers on API calls, protected pages, or Microsoft, Google, Auth0, Keycloak or IdentityServer sign-in, even when the request only says 'users must log in'. Also use when the project lists Authentication, AuthenticationMsal or AuthenticationOidc in <UnoFeatures>, or when an agent is about to write its own auth service or token storage. Read this skill before writing any authentication code./uno-build-appEnd-to-end workflow for building Uno Platform apps and features: discovery, a short blueprint, one complete feature built and exercised before its pattern is repeated, and an honest completion report. Use when creating a new Uno Platform app from a brief, adding a feature to an existing Uno app, repairing a broken Uno page or feature, or diagnosing an Uno binding, state or navigation defect. Use it for any 'how should I implement this' feature request that spans a page, its state, storage or a platform API such as a file or photo picker. Not for WPF, WinUI-only or .NET MAUI projects. For a single control or API question, load the matching domain skill (uno-mvux, uno-navigation, uno-toolkit, uno-themes, uno-authentication, uno-kiota, uno-testing) instead./uno-kiotaTyped REST API clients for Uno Platform apps with Uno.Extensions.Http.Kiota: the HttpKiota feature, generating a client from an OpenAPI/Swagger document with the Kiota CLI (kiota generate, kiota update, kiota-lock.json), registering it with AddKiotaClient inside UseHttp, the endpoint Url per environment, request builders, query and path parameters, headers, errors (ApiException, ResponseStatusCode, typed error models), retries and cancellation, and the JSON-only serializer limit (text/plain, form, multipart, application/problem+json). Use whenever an Uno app calls a web API, loads data from a backend or the template's server project, consumes an OpenAPI or Swagger spec, or needs a generated HTTP client, even when the request only says 'get the data from our API'. Also use when the project lists HttpKiota in <UnoFeatures>, has a Content/Client folder or kiota-lock.json, or when an agent is about to write HttpClient calls by hand. Read this skill before writing any API-calling code./uno-navigationUno.Extensions.Navigation for Uno Platform apps: route registration with ViewMap, DataViewMap, ResultDataViewMap, and RouteMap; region-based navigation with Region.Attached, Region.Name, and Region.Navigator; INavigator code navigation (NavigateViewModelAsync, NavigateBackAsync, *ForResultAsync); declarative uen:Navigation.Request and Navigation.Data in XAML; dialogs, flyouts, and message prompts; back-stack qualifiers (-/ and !/); TabBar, NavigationView, responsive, and Frame shell templates; ContentControl and visibility regions; troubleshooting. Use whenever an Uno app needs a new page, a details or settings screen, a 'go to' or 'open' action, a back button, tabs, a sidebar, hamburger menu, drawer, app shell, modal, popup, confirmation dialog, deep link, login-to-home flow, a tab tap that replaces the whole page, or must pass an item or ID to another page, even if the user never says 'navigation'. Read this before adding any Page or wiring a Click that changes the screen./uno-platformEntry point for building or changing any Uno Platform app: cross-platform .NET UI with WinUI/XAML or C# Markup targeting Windows, iOS, Android, WebAssembly, macOS, Linux, and embedded. Use this skill whenever the user mentions Uno Platform, an Uno project (UnoFeatures, uno.sdk, Uno.Extensions, Uno.Toolkit), WinUI XAML in a cross-platform context, Hot Design, Hot Reload, Uno Studio, or asks to scaffold, extend, restyle, navigate, test, or fix an Uno app, even when the request only says 'the app' or names a page, control, or feature. It routes to the domain skills (uno-mvux, uno-navigation, uno-toolkit, uno-themes, uno-authentication, uno-kiota, uno-testing) and sets the project-wide rules that apply before any of them./uno-testingAutomated UI testing and verification of a running Uno Platform app through the Uno App MCP (the uno_app_* tools): start the app, take a visual-tree snapshot, find elements by automation id, x:Name, text or type, click, type, press keys, scroll, drive navigation flows, read an element's state or DataContext, capture screenshots, and assert on text, visibility, enabled state, list counts, dialogs, layout, and FeedView loading/error/value states. Use whenever the user says check that, verify, test the UI, does it render, click through, make sure the button works, take a screenshot, why is X not visible, or asks for end-to-end or visual regression testing of an Uno app. Also use after any UI change you made when the uno_app_* tools are available, so the result is confirmed in the real app rather than assumed from the code. Before verifying a Release build, where the App MCP is not available, load this skill: it gives the steps for that path.npx claudepluginhub unoplatform/studio --plugin uno-platform-studioOther plugins' skills for the same job