Skip to main content

corvus-builder-context-threading

Build a generated Corvus model (response body, array, nested object) from UTF-8 spans inside a hot loop with NO closure and NO managed-string round-trip, using the generated Build<TContext> / CreateBuilder<TContext> context-threading form (static lambdas + a ref-struct context that `allows ref struct`, so it can carry ReadOnlySpan<byte>). The context is a RefTuple<…> (the span-capable ValueTuple companion, .NET 9+) instead of a bespoke context struct. Hand the context-threaded body to the generic boundary overload — a server result factory's Ok<TContext>(Source<TContext>, ws), or a client operation's ...Async<TContext>(Source<TContext>) for a REQUEST body — for a single closure-free materialization (NOT CreateBuilder<TContext>().RootElement + non-generic Ok, which re-materializes). Covers the array Build<TContext> / AddItem<TContext> nesting, the implicit ReadOnlySpan<byte> -> JsonString.Source / enum Source operators, RefTuple, and the ref-safety gotchas. USE FOR: projecting a list/page of bytes-backed value

Jump to install

Source facts

Repository
corvus-dotnet/Corvus.JsonSchema
Last source activity
August 5, 2026 at 11:36
Detected SKILL.md language
English
Stars
198
Forks
24

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.