/uno-platform-studio:uno-kiotafrom uno-platform-studio
Generates typed REST API clients for Uno Platform apps using Kiota from OpenAPI/Swagger specs, with registration, error handling, and retries.
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.
Uno.Extensions.Http.Kiota turns a Kiota-generated API client into a service: AddKiotaClient<TClient> gives it an HttpClient from the host with the endpoint's base address, the platform's native handler, every DelegatingHandler the app registered (the authentication token handler among them) and Kiota's own middleware. The recommended template ships this setup. Generic agents write HttpClient calls by hand, hand-edit the generated code, or create the client with new; each of those loses the base address, the token and the retry behaviour. This skill routes you to the step.
uno-build-app template command (-http kiota is the preset's default); add -server for a backend project, an OpenAPI document in Specs/ and a generated client in Content/Client: dotnet new unoapp -preset recommended -presentation mvux -theme simple -tests unit -server -o <AppName>. Without -server the app has the feature but no client. Then fix the template gaps listed in the critical rules.references/generate.md to create or regenerate the client, references/register.md to register it, and references/calling.md to call it. Add references/content-types.md when an operation sends or returns anything other than application/json, and references/testing.md for the service tests that prove every operation.uno_platform_docs_search(...), then uno_platform_docs_fetch(sourcePath="…") with the sourcePath from a result (a relative .md path). Never pass a URL, .html link, or hand-built path.| Task | Read | Key APIs |
|---|---|---|
| Install the Kiota CLI, generate a client from a spec file or a running server, regenerate after an API change, limit the generated paths | references/generate.md | kiota generate, kiota update, kiota-lock.json, --include-path |
| Register the client, its base URL per environment, the configuration section name, default headers and timeout, several APIs | references/register.md | UseHttp, AddKiotaClient, EndpointOptions, configure |
| Call the API: request builders, path and query parameters, bodies, per-request headers, errors, retries, cancellation, feeding MVUX | references/calling.md | GetAsync, QueryParameters, ApiException, RetryHandlerOption |
An operation with text/plain, form, multipart or application/problem+json content, or the expected a application/json content type exception | references/content-types.md | AddClient<TClient>, HttpClientRequestAdapter |
Service tests of every operation through the app's registration, against the server in-process; the template test's icuuc77 failure | references/testing.md | WebApplicationFactory, UseHttp, SkipIcuDataInitializerGenerator |
The access token on Kiota calls, refresh on 401, the No-Refresh header | the uno-authentication skill (references/http.md) | UseAuthentication, No-Refresh |
HttpKiota in <UnoFeatures>; it brings the Kiota runtime packages, so add none of the packages kiota info lists. AddKiotaClient is in Uno.Extensions.Http.Kiota (the template's GlobalUsings.cs has global using Uno.Extensions.Http.Kiota;), not in Uno.Extensions.UseHttp, inject the client, never new it. services.AddKiotaClient<TClient>(context, ...) inside .UseHttp((context, services) => ...), then take TClient in the service or Model constructor. A client built from your own HttpClient or request adapter gets no base address, no native handler and no token.kiota update from the client's folder (references/generate.md). Put app logic in a service that wraps the client.servers URL of the OpenAPI document; the template's is https://localhost:5002. The template reads ApiClient:Url, which only appsettings.development.json sets, so a Release build (Production environment) calls localhost. Set the production Url in appsettings.json, or a host the build configuration chooses.options, the way the template does. In trimmed Release builds (iOS, Android), an endpoint section bound by AddKiotaClient loses its Url (unoplatform/uno.extensions#3266); options: new EndpointOptions { Url = context.Configuration["ApiClient:Url"] } reads the value directly and survives trimming. Passing options makes AddKiotaClient ignore the section's other keys.AddKiotaClient registers only Kiota's JSON factories (unoplatform/uno.extensions#2799). A text/plain response, a form or multipart body, and an application/problem+json error body (ASP.NET Core's Results.Problem, ValidationProblem) all throw ArgumentOutOfRangeException: expected a application/json content type, which hides the API's status code. references/content-types.md has the registration that keeps every serializer.ApiException); any other non-success status throws Microsoft.Kiota.Abstractions.ApiException with the code in ResponseStatusCode. Kiota retries a 503 (also 429 and 504) three more times before throwing, about 21 s without a Retry-After header; turn it off per request with RetryHandlerOption { MaxRetry = 0 } for calls that must not run twice.WeatherCache round-trips the Kiota models through ISerializer to get an immutable list (.ToImmutableList() is enough), and a -server app also gets an unused Refit Services/Endpoints/IApiClient.cs and a <AppName>.DataContracts project for the weather records. With a Kiota client the OpenAPI document is the shared contract: when you replace the sample API, delete IApiClient.cs, Services/Caching, the DataContracts project with its references, global using lines and AddJsonTypeInfo(...) call, and keep UseSerialization.Verified against Uno.Extensions 8.0.0-dev.150 (pinned by Uno.Sdk 7.0.0-dev.115, with Microsoft.Kiota.* 1.22.2), Uno.Templates 7.0.0-dev.120, and clients generated by Kiota 1.16 (the template's) and 1.37. The Uno.Samples UI/Http.KiotaExtensionsDemo was built from this skill: a design-first contract (Specs/TasksApi.yaml) with every content type above, the registration from references/content-types.md, and service tests of every operation. On other versions, check the template output and the docs.
uno-authentication for sign-in and the token the HTTP handler adds to Kiota calls.uno-mvux for the feeds and states that load data through the client.uno-testing to exercise the running app against the API.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub unoplatform/studio --plugin uno-platform-studio9 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-mvuxMVUX state management for Uno Platform apps: feeds, states, FeedView, commands, Models. Covers IFeed<T>, IState<T>, IListFeed<T>, IListState<T>, selection, pagination, entity messaging, and immutable partial record Models with generated ViewModels (Model-View-Update-eXtended). Use whenever an Uno Platform app that uses MVUX, or a new app with no pattern chosen yet, loads async data from a service or API, binds user input, shows loading/error/empty states, edits a collection, or needs a Model layer. Also use when the project has <UnoFeatures>MVUX</UnoFeatures> or *Model records, or the user asks how MVUX compares with MVVM, or reports a bound command button that stays disabled or a list or value that does not update on screen. Not for apps built on MVVM (<UnoFeatures>Mvvm</UnoFeatures>, CommunityToolkit.Mvvm, ObservableObject ViewModels): keep their pattern. Read this skill before writing any MVUX Model, feed, state, or command 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.Other plugins' skills for the same job