Skip to content

feat(skills): add uno-kiota hub - #215

Merged
kazo0 merged 2 commits into
mainfrom
dev/sb/kiota-skill
Nov 2, 2026
Merged

kazo0 merged 2 commits into
mainfrom
dev/sb/kiota-skill

Conversation

@kazo0

@kazo0 kazo0 commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

GitHub Issue (If applicable): none (follows the uno-authentication hub, #182)

PR Type

  • Feature

What is the current behavior?

No skill covers Uno.Extensions.Http.Kiota, which the recommended template uses for every API call. uno-authentication/references/http.md only touches Kiota where tokens are concerned.

What is the new behavior?

Adds uno-kiota, a hub skill with a short SKILL.md and five references, each under the 6,000-character budget:

Reference Covers
generate.md Kiota CLI as a local tool, kiota generate / kiota update from kiota-lock.json, code-first vs design-first documents, what the generator emits (maps, the MessageEscaped rename)
register.md AddKiotaClient inside UseHttp, the handler chain, the base URL per environment and per head, options vs configuration section, default headers, several APIs
calling.md Request builders, query parameters and headers, wrapping the client for MVUX, reading additionalProperties maps, errors, retries
content-types.md The JSON-only limit of AddKiotaClient and a registration that keeps every serializer and Kiota's middleware
testing.md Service tests through the app's registration against WebApplicationFactory, and the template test's icuuc77 failure

It registers the hub everywhere the others are listed: the uno-platform router and its new-app section, uno-build-app (with a -server note in new-app.md), the uno-dev agent in both its Markdown and Codex files, the READMEs, plugin.json and the marketplace descriptions. uno-authentication/references/http.md now points to it instead of repeating Kiota details.

What the rules are grounded in

Checked against Uno.Extensions 8.0.0-dev.150 (Uno.Sdk 7.0.0-dev.115, Microsoft.Kiota.* 1.22.2), Uno.Templates 7.0.0-dev.115/120 output, and clients generated by Kiota 1.16 and 1.37, with a console harness over AddKiotaClient and a generated client. The main ones:

  • Without a Url the client silently calls the document's servers URL. The template sets ApiClient:Url only in appsettings.development.json, so a Release build calls https://localhost:5002.
  • Pass the Url as options. A section bound by AddKiotaClient loses its Url in trimmed builds ([Http] AddRefitClient and AddKiotaClient lose the endpoint Url in trimmed builds ("BaseAddress must be set on the HttpClient instance") uno.extensions#3266).
  • Only JSON is parsed or serialized ([Http][Kiota] Only JSON serializer is added uno.extensions#2799): text/plain responses, form and multipart bodies and application/problem+json errors throw ArgumentOutOfRangeException: expected a application/json content type, which hides the status code.
  • Kiota retries 503/429/504 three times, about 21 s without Retry-After; RetryHandlerOption { MaxRetry = 0 } turns it off per request.
  • Errors are exceptions: mapped statuses throw the generated model, others ApiException with ResponseStatusCode.
  • AddKiotaClient lives in Uno.Extensions.Http.Kiota, not Uno.Extensions; code from Kiota 1.37 builds against the 1.22.2 runtime the feature brings.

How it was tested

  • .github/scripts/Test-Plugin.ps1 passes; claude plugin validate --strict passes for the plugin and the marketplace.
  • Dogfooded by having an agent build feat(samples): add the Kiota extensions demo Uno.Samples#972 (UI/Http.KiotaExtensionsDemo) from the skills alone, from a hand-written OpenAPI contract, and log every place the skill was wrong. That pass is the second commit: the workaround in content-types.md dropped Kiota's retry handler (now kept), the error model's Message claim was wrong for schemas with a message property, and testing.md, design-first documents, map reading, the local tool and the per-head base URL were added. The sample's 21 headless tests pass, its desktop head runs in Debug and Release, and its "Change the API" steps (edit the contract, dotnet kiota update, test) were run end to end.

Not done:

  • agentskills validate was not run (not installed here).
  • WebAssembly and Android were built in the sample but not run; iOS was not built. The per-head base URL guidance in register.md is not yet confirmed on those heads.
  • The dogfood also found gaps in other hubs, left for separate PRs: the Debug desktop hang without Uno.WinUI.Lottie and the icuuc77 test failure belong in uno-build-app; a Feed.Combine(...).SelectAsync feed ignores refresh signals (uno-mvux); commands.md should name IDispatcher.

PR Checklist

  • Documentation has been added/updated
  • Associated with an issue (GitHub or internal)

🤖 Generated with Claude Code

https://claude.ai/code/session_013G4Ls3q7cwW8sSEg5YgWHF

kazo0 and others added 2 commits October 30, 2026 19:16
Adds a hub skill for Uno.Extensions.Http.Kiota with four references
(generate, register, calling, content-types) and registers it in the
router, uno-build-app, the uno-dev agent, the READMEs, the plugin
manifests and the marketplace descriptions. The uno-authentication
http.md points to it for Kiota details.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013G4Ls3q7cwW8sSEg5YgWHF
…d covers design-first contracts

Fixes from building the Uno.Samples Http.KiotaExtensionsDemo from the
skill alone:

- content-types.md: the all-serializers registration also attaches
  Kiota's middleware, so the 503 retry survives the workaround.
- testing.md (new): service tests through the app's registration against
  WebApplicationFactory, and the icuuc77 failure of the template's test.
- generate.md: Kiota as a local tool, code-first vs design-first
  documents, map schemas and the MessageEscaped rename.
- calling.md: reading additionalProperties maps (Untyped* nodes); the
  error model's Message is the server's text when the schema has a
  message property.
- register.md: the API address per head (WebAssembly origin, Android
  10.0.2.2, iOS local networking).
- SKILL.md: the full template command, the DataContracts gap, a pointer
  to the sample.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_013G4Ls3q7cwW8sSEg5YgWHF
@kazo0
kazo0 merged commit c5150fd into main Nov 2, 2026
6 checks passed
@kazo0
kazo0 deleted the dev/sb/kiota-skill branch November 2, 2026 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant