/shiny:shiny-aspnetfrom shiny
Generates ASP.NET Core code for Shiny.AspNet libraries: WebDAV, CalDAV/CardDAV, tus resumable uploads, file sync, private NuGet/npm feeds, DocumentDb REST/SSE, JSON Patch, webhooks, idempotency, content-digest, ACME TLS, mDNS, SSH tunnels, and cloudflared/ngrok/Tailscale tunnel agents.
Ships in shiny. 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.
You are an expert in the Shiny.AspNet libraries: independent ASP.NET Core packages, most of them ports of the Shiny.Net.HttpServer add-ons re-hosted on Kestrel.
Documentation: https://shinylib.net/aspnet/
Repository: https://github.com/shinyorg/aspnet
Target: net10.0, ASP.NET Core. All packages are trim and Native AOT clean.
For IWebModule / AddInfrastructureModules use the shiny-web-hosting skill instead.
Do not generate these against Shiny.Net.HttpServer types (HttpServer, ShinyHttpServerBuilder) — that is the
non-ASP.NET server with its own skill (shiny-httpserver). Namespaces here are Shiny.AspNet.<Name>.
builder.Services.Add<Name>(...). Endpoints: app.Map<Name>(prefix, o => ...) on any
IEndpointRouteBuilder, including MapGroup(...) groups. Middleware: app.Use<Name>().Map<Name> returns an IEndpointConventionBuilder — apply ASP.NET's own .RequireAuthorization(),
.RequireCors(...), .RequireRateLimiting(...), .WithMetadata(...) to it. There is no RequireIpFilter.MaxRequestBodySize for their own routes only. An explicit [RequestSizeLimit] / RequestSizeLimitAttribute
added via .WithMetadata(...) wins. Reverse proxies in front (IIS, nginx) need their own limits raised.Task (not ValueTask).IServerAddressesFeature, so http://127.0.0.1:0, --urls and ASPNETCORE_URLS all work.A WebDAV (RFC 4918) class 1 & 2 server for ASP.NET Core — mount a directory in Finder, Windows Explorer or any WebDAV client.
If header (lock tokens and ETags), shared/exclusive locks, RFC 4331 quota, dead propertiesIWebDavFileSystem and IWebDavPropertyStoreIEndpointConventionBuilder — RequireAuthorization, RequireCors, etc. cover every verb; RequireAuthorizationForChanges leaves reads openapp.MapWebDav("/dav", o =>
{
o.RootPath = Path.Combine(app.Environment.ContentRootPath, "share");
o.AllowWrite = true;
o.AllowDelete = true;
})
.RequireAuthorization();
CalDAV (RFC 4791) and CardDAV (RFC 6352) for ASP.NET Core — serve calendars and contacts to iOS/macOS Calendar & Contacts, Thunderbird and DAVx⁵.
/.well-known/caldav|carddav, current-user-principal, home setsICalendarStore / IAddressBookStore for your own dataapp.MapCalDav("/dav", o =>
{
o.CalendarStore = new FileCalendarStore(Path.Combine(dataPath, "calendars"));
o.AddressBookStore = new FileAddressBookStore(Path.Combine(dataPath, "contacts"));
})
.RequireAuthorization();
Resumable uploads over the tus 1.0.0 protocol — an upload that drops half way resumes from the last byte the server kept.
DiskTusStore survives restarts (offset = file length)RequestSizeLimit winsIHostApplicationLifetime; WithTusHeaders() for CORSapp.MapTus("/files", o =>
{
o.Store = new DiskTusStore(Path.Combine(builder.Environment.ContentRootPath, "App_Data", "uploads"));
o.Expiration = TimeSpan.FromDays(1);
o.OnUploadCompleteAsync = async ctx => { await using var file = await ctx.OpenReadAsync(); /* ... */ };
})
.RequireAuthorization();
Dropbox-style file sync server: content-defined chunks stored once by hash, so an edit moves only what changed.
{prefix}/uploadsStoreSelector; garbage collection of unreferenced chunksShiny.Net.HttpServer.FileSync.Client (background transfers on iOS/Android)IEndpointConventionBuilder covers every route, tus includedapp.MapFileSync("/sync", o => o.Store = new DiskFileSyncStore(Path.Combine(dataDir, "sync")))
.RequireAuthorization();
A private NuGet feed for ASP.NET Core: the NuGet V3 protocol, so dotnet restore, dotnet nuget push, Visual Studio and Rider work unchanged.
NuGet.Versioning; the nuspec is read by hand, so it is trim/AOT-cleanX-NuGet-ApiKey) or ASP.NET authorization; OnBeforePushAsync / OnPackagePushedAsync hooksMaxPackageSize (250 MB by default)app.MapNuGetFeed("/nuget", o =>
{
o.Store = new DiskNuGetPackageStore(Path.Combine(dataDir, "packages"));
o.ApiKeys.Add(builder.Configuration["NuGet:ApiKey"]!);
})
.ForWrites(w => w.RequireRateLimiting("push"));
// dotnet nuget add source http://host:5000/nuget/v3/index.json -n mine
A private npm registry for ASP.NET Core: the registry API npm, pnpm and Yarn speak. No database, no Node.js.
Upstream); local packages always winMaxTarballSize (100 MB by default) once base64-encodedapp.MapNpmRegistry("/npm", o =>
{
o.Store = new DiskNpmPackageStore(Path.Combine(dataDir, "npm"));
o.Tokens[builder.Configuration["Npm:Token"]!] = "ci";
});
// .npmrc: @acme:registry=http://host:5000/npm/
RFC 6902 JSON Patch over RFC 6901 JSON Pointer for ASP.NET Core, on System.Text.Json.Nodes — trim and Native AOT clean.
JsonNode, or to a typed value via its source-generated JsonTypeInfo<T>JsonPatchDocument binds as a minimal-API parameter (application/json-patch+json only; RDG-compatible)JsonPointer, RFC 6902 §4.6 test equality, fluent builderbuilder.Services.AddProblemDetails();
builder.Services.AddJsonPatch();
app.UseExceptionHandler();
app.MapPatch("/notes/{id:int}", (int id, JsonPatchDocument patch, NoteStore notes) =>
Results.Json(patch.ApplyTo(notes.Get(id), AppJson.Default.Note), AppJson.Default.Note));
A Shiny.DocumentDb document type as a complete REST + Server-Sent Events resource in one line.
MapDocumentCollectionRouteGroupBuilder with OpenAPI metadata, so RequireAuthorization, RequireRateLimiting, etc. cover every routebuilder.Services.AddDocumentStore(o => o.DatabaseProvider = new SqliteDatabaseProvider(path));
app.MapDocuments<Order>("/orders", o =>
{
o.Operations = DocumentEndpoints.All;
o.TypeInfo = AppJson.Default.Order;
o.AllowFilterOn(x => x.Status, x => x.Total);
o.Scope<ITenantContext>((tenant, _) => x => x.TenantId == tenant.TenantId);
})
.RequireAuthorization("orders");
Verify inbound webhooks over the exact bytes that arrived, and sign the ones you send.
IWebhookDeliveryStore)MapWebhook verifies inline; or [RequireWebhookSignature] / .RequireWebhookSignature(...) + app.UseWebhookVerification() on minimal APIs, groups and MVCIProblemDetailsService; the reason is logged, never returnedWebhookSigner for outbound Standard Webhooks signaturesbuilder.Services.AddWebhooks(o =>
{
o.AddVerifier("stripe", WebhookSignature.Stripe(builder.Configuration["Stripe:WebhookSecret"]!));
o.SuppressDuplicates();
});
app.MapWebhook("/hooks/github", WebhookSignature.GitHub(secret), async (WebhookContext ctx) => { /* ... */ });
app.UseWebhookVerification();
app.MapPost("/hooks/stripe", (WebhookContext hook) => Results.Ok()).RequireWebhookSignature("stripe");
Idempotency-Key (IETF draft) middleware: a retried POST gets the stored original response instead of running the handler twice.
.RequireIdempotencyKey(), .WithIdempotency(), .DisableIdempotency() on endpoints, groups or controllers; [Idempotent] / [DisableIdempotency]Idempotent-Replayed: trueRetry-After while the first request is in flight; 422 when a key is reused with a different bodyBodyWriter, SendFileAsync and Content-Length behave normallyAddDistributedCacheIdempotencyStore() for Redis/SQL via IDistributedCachebuilder.Services.AddIdempotency(o => o.Expiration = TimeSpan.FromHours(6));
var app = builder.Build();
app.UseAuthentication();
app.UseAuthorization();
app.UseIdempotency();
app.MapPost("/payments", Charge).RequireIdempotencyKey();
RFC 9530 Content-Digest / Repr-Digest for ASP.NET Core — end-to-end integrity across proxies, gateways and tunnels.
Want-Content-Digest.RequireContentDigest() refuses bodies without one; handlers that swallow a failed check are overruledWant-Content-Digest / Want-Repr-Digest: small bodies get a header, streamed bodies a trailer (HTTP/2, HTTP/3 — Kestrel sends no trailers on HTTP/1.1)[ContentDigest] / [DisableContentDigest] attributes and .WithContentDigest() / .DisableContentDigest() conventionsDigestFields helpers to compute and parsebuilder.Services.AddContentDigest();
var app = builder.Build();
app.UseContentDigest(); // after routing, before UseRequestDecompression/UseResponseCompression
app.MapPost("/firmware", Upload).RequireContentDigest();
app.MapGet("/snapshot", Snapshot).WithContentDigest();
Automatic HTTPS for Kestrel from Let's Encrypt, ZeroSSL or any ACME (RFC 8555) CA — a maintained replacement for LettuceEncrypt.
AcmeCertificateRegistry: many certificates chosen by SNI, added/removed at runtime, PEM/PFX importShiny.AspNet.Acme meter for expiry alertsbuilder.WebHost.UseUrls("http://*:80", "https://*:443");
builder.Services.AddAcme(o =>
{
o.Domains = ["example.com"];
o.Email = "[email protected]";
o.AcceptTermsOfService = true;
o.DirectoryUrl = AcmeDirectories.LetsEncryptStaging; // remove once it works
});
Advertise an ASP.NET Core app on the local network with mDNS/DNS-SD (Bonjour), and find the servers other machines advertise.
IServerLocator: FindFirstAsync / FindAllAsync / WatchAsync, yielding ready-to-use base URLs, never finding itselfbuilder.WebHost.UseUrls("http://0.0.0.0:0");
builder.Services.AddServerAdvertisement(o => o.ServiceType = "_myapp._tcp");
builder.Services.AddServerLocator();
var peer = await locator.FindFirstAsync("_myapp._tcp", TimeSpan.FromSeconds(5));
SSH remote port forwarding (ssh -R) for a Kestrel app — publish through a VPS you own, or get a free public HTTPS address from a hosted tunnel (Pinggy, sish). Pure managed code; nothing to install.
--urls, ASPNETCORE_URLS)PublicUrl / State change notifications (QuickTunnel is INotifyPropertyChanged)// a free public address while developing
builder.Services.AddQuickTunnel(autoStart: builder.Environment.IsDevelopment());
// or a host you own
builder.Services.AddSshTunnel(o =>
{
o.Host = "tunnel.example.com";
o.Username = "tunnel";
o.PrivateKeyPath = keyPath;
o.RemotePort = 8080;
o.HostKeyFingerprints.Add("SHA256:…");
});
Publish a Kestrel app through cloudflared, ngrok or Tailscale Funnel by supervising the vendor's own agent process.
ITunnelAgent.PublicUrl)builder.Services.AddCloudflareTunnel(); // or AddNgrokTunnel() / AddTailscaleFunnel()
app.UseContentDigest() goes after routing and before UseRequestDecompression /
UseResponseCompression. Kestrel sends no trailers on HTTP/1.1, so streamed responses larger than
MaxBufferedResponseBytes (64 KB) carry no digest there; SSE/long-poll handlers must call DisableBuffering().app.UseIdempotency() after authentication/authorization (keys are scoped per caller).
AddDistributedCacheIdempotencyStore() cannot guarantee exactly-once across instances (no atomic set-if-absent).ConfigureHttpsDefaults callback — if the app sets its own, call https.UseAcme(...)
inside it. HTTP-01 needs port 80 reachable; on HTTP/3 endpoints set https.OnAuthenticate = null.JsonPatchDocument handler parameter only binds application/json-patch+json; other content
types are a 415 from routing. Add services.AddJsonPatch() + app.UseExceptionHandler() to turn an unhandled
JsonPatchException into a problem response.MapCalDav maps /.well-known/caldav|carddav only when called on the app; inside a group use MapCalDavWellKnown..WithTusHeaders().http:// Kestrel binding to forward to. Tunnelled requests arrive from loopback with
Request.Scheme == "http" — UseHttpsRedirection will redirect them; use UseForwardedHeaders where the tunnel
sends X-Forwarded-*. AddQuickTunnel defaults to autoStart: false; SSH host keys must be pinned
(HostKeyFingerprints) unless AcceptAnyHostKey is set explicitly.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub shinyorg/skills --plugin shiny57 skills in this plugin
/localizegenGenerate strongly-typed localization classes from .resx resource files using Shiny.Extensions.Localization.Generator for .NET applications/shiny-accessorysetupGenerate code using Shiny.BluetoothLE.AccessorySetup - the system accessory pairing sheet for BLE devices (AccessorySetupKit on iOS 18+, CompanionDeviceManager on Android) with no MFi, no location prompt and no general Bluetooth prompt on iOS; picked accessories open as Shiny.BluetoothLE peripherals, and Android adds background presence (device appeared / disappeared) events/shiny-actorsGenerate code using Shiny.Actors — Orleans-style virtual actors without the ceremony, AOT/trim-clean, running anywhere .NET runs including .NET MAUI and Blazor WebAssembly. Covers actor interfaces and source-generated proxies, the ShinyActorBuilder (AddShinyActors), persistent state with ETags, named states and auto-save, event-sourced JournaledActor with snapshots, state and event migrations, typed streams (durable, implicit consumers), timers and persistent reminders (background jobs via Shiny.Jobs, on-time OS notifications via Shiny.Notifications), concurrency control ([Reentrant], [AlwaysInterleave], [ReadOnly], [StatelessWorker]), call filters and request context, OpenTelemetry traces and metrics, remoting over HTTP (Shiny.Net.HttpServer server, RemoteActorSystem client), mDNS discovery of actor servers, Shiny.DocumentDb storage (SQLite, PostgreSQL, IndexedDB...), and the ActorTestHost testing kit.Other plugins' skills for the same job
2 plugins ship this exact skill · first indexed Oct 12, 2026