shinyorg/templates/shiny-aspire
Claude Code and agent skill by shinyorg/templates
- community
Checking that the SKILL.md file is still in the repository.
Generate code using Shiny Aspire integrations — Orleans ADO.NET hosting and Gluetun VPN container routing
Install
npx vskill@latest install shinyorg/templates/shiny-aspireSKILL.md
The same SKILL.md was published earlier as shinyorg/templates/shiny-aspire.
Shiny Aspire Skill
You are an expert in Shiny's .NET Aspire integrations:
- Shiny.Aspire.Orleans — Zero-friction integration between .NET Aspire and Microsoft Orleans for ADO.NET storage backends. Automatically provisions Orleans database schemas and wires up clustering, grain persistence, and reminders from Aspire configuration.
- Shiny.Aspire.Hosting.Gluetun — Aspire hosting integration for Gluetun VPN containers. Models Gluetun as a first-class Aspire resource and lets other containers route their traffic through the VPN tunnel.
When to Use This Skill
Invoke this skill when the user wants to:
- Set up Orleans with .NET Aspire using ADO.NET storage (PostgreSQL, SQL Server, or MySQL)
- Automatically create Orleans database schemas from Aspire
- Configure an Orleans silo with ADO.NET providers from Aspire-injected config
- Configure an Orleans client with ADO.NET clustering from Aspire-injected config
- Use
WithDatabaseSetupto auto-provision Orleans tables - Use
silo.UseAdoNet()to configure a silo insideUseOrleans - Use
client.UseAdoNetClient()to configure a client insideUseOrleansClient - Select which Orleans features to provision (clustering, persistence, reminders)
- Set up multiple named grain storage providers
- Add a Gluetun VPN container to an Aspire app
- Route container traffic through a VPN tunnel
- Configure VPN providers, WireGuard, or OpenVPN in Aspire
- Use
AddGluetun,WithRoutedContainer,WithVpnProvider,WithWireGuard, orWithOpenVpn - Set up Docker Compose publishing with VPN network mode and port transfer
Library Overview
- Repository: https://github.com/shinyorg/aspire
- Target:
net10.0 - Aspire: 13.1+
- Orleans: 10.0+ (Orleans packages only)
Packages
| Package | NuGet | Usage | |
|---|---|---|---|
Shiny.Aspire.Orleans.Hosting | Install in Aspire AppHost | Auto-runs Orleans schema scripts when the database becomes ready | |
Shiny.Aspire.Orleans.Server | Install in Orleans silo | Registers ADO.NET provider builders for clustering, grain storage, and reminders | |
Shiny.Aspire.Orleans.Client | Install in Orleans client | Registers ADO.NET provider builder for clustering | |
Shiny.Aspire.Hosting.Gluetun | Install in Aspire AppHost | Adds a Gluetun VPN container and routes other containers through it |
Supported Databases
| Database | ADO.NET Invariant | ProviderType Value | |
|---|---|---|---|
| PostgreSQL | Npgsql | PostgresDatabase | |
| SQL Server | Microsoft.Data.SqlClient | SqlServerDatabase | |
| MySQL | MySql.Data.MySqlClient | MySqlDatabase |
Architecture: Provider Registration
The Server and Client packages register Orleans provider builders via [assembly: RegisterProvider] attributes. When Orleans calls ApplyConfiguration during UseOrleans(), it reads the Aspire-injected configuration (e.g. Orleans:Clustering:ProviderType = "PostgresDatabase") and resolves the matching provider builder automatically. The provider builder maps the database type to the correct ADO.NET invariant and resolves the connection string from the ServiceKey.
This means:
- No manual configuration — providers are resolved automatically from Aspire config.
- Extension methods —
UseAdoNet()onISiloBuilderandUseAdoNetClient()onIClientBuilderare identity methods for discoverability. The actual wiring happens through the registered provider builders. - Composable — because configuration happens inside
UseOrleans(silo => { ... })orUseOrleansClient(client => { ... }), users can add other features alongside.
Setup
1. Aspire AppHost
Install Shiny.Aspire.Orleans.Hosting in the AppHost project.
2. Orleans Silo
Install Shiny.Aspire.Orleans.Server in the silo project. Call silo.UseAdoNet() inside UseOrleans.
3. Orleans Client
Install Shiny.Aspire.Orleans.Client in the client project (e.g. an API gateway). Call client.UseAdoNetClient() inside UseOrleansClient.
API Reference
Hosting Package — Shiny.Aspire.Orleans.Hosting
WithDatabaseSetup
Subscribes to Aspire's ResourceReadyEvent for the database resource. When the database is up and accepting connections, it executes embedded Orleans SQL schema scripts. The database type (PostgreSQL, SQL Server, MySQL) is auto-detected from the Aspire resource.
Parameters:
orleans— The Orleans service frombuilder.AddOrleans()database— An Aspire database resource (e.g. fromAddPostgres,AddSqlServer,AddMySql)features— Which Orleans features to provision (default:OrleansFeature.All)
OrleansFeature (Flags Enum)
Use to limit which schemas are provisioned:
DatabaseType (Enum)
Auto-detected from the Aspire resource — you do not need to specify this directly.
Server Package — Shiny.Aspire.Orleans.Server
UseAdoNet (ISiloBuilder extension)
Marker extension for discoverability. The actual provider registration happens automatically via [assembly: RegisterProvider] attributes when the package is referenced. Providers are registered for all three database types across Clustering, GrainStorage, and Reminders.
Call inside UseOrleans:
Client Package — Shiny.Aspire.Orleans.Client
UseAdoNetClient (IClientBuilder extension)
Marker extension for discoverability. Registers ADO.NET clustering provider builders for both Silo and Client targets. Clients do not need grain storage or reminders.
Call inside UseOrleansClient:
Configuration Flow
Aspire injects the following configuration when you use .WithReference(orleans):
Orleans' ApplyConfiguration reads these sections and delegates to the registered provider builders, which configure the ADO.NET providers with the correct connection strings and invariants.
Schema Provisioning Order
WithDatabaseSetup runs embedded SQL scripts in order:
- Main — creates the
OrleansQuerytable (query registry) - Clustering — creates
OrleansMembershipVersionTable,OrleansMembershipTable, and stored procedures - Persistence — creates
OrleansStoragetable and stored procedures - Reminders — creates
OrleansRemindersTableand stored procedures
Switching Databases
Swap the Aspire resource builder — everything else stays the same:
Multiple Grain Storage Providers
Each named provider reads from Orleans:GrainStorage:{Name}:ProviderType and Orleans:GrainStorage:{Name}:ServiceKey.
Code Generation Best Practices
- Always use `WithDatabaseSetup` in the AppHost to auto-provision schemas — never require manual SQL scripts.
- Always call `WaitFor(db)` on projects that reference Orleans, so the database is ready before the silo starts.
- Use `.AsClient()` when wiring a client project — this provides only clustering config, not full silo config.
- Use `UseOrleans` and `UseOrleansClient` — call
silo.UseAdoNet()in silo projects insideUseOrleansandclient.UseAdoNetClient()in client projects insideUseOrleansClient. - Feature flags are optional — only use
OrleansFeatureflags if the user explicitly wants to skip certain schemas. - Don't hardcode connection strings — Aspire injects them automatically via configuration.
- Don't manually configure ADO.NET invariants — the packages auto-detect the correct invariant from the provider type.
- Use named grain storage for multiple persistence stores — each name maps to a separate configuration section.
Gluetun VPN — Shiny.Aspire.Hosting.Gluetun
Setup
Install Shiny.Aspire.Hosting.Gluetun in the Aspire AppHost project.
API Reference
AddGluetun
Creates a Gluetun container resource with:
- Image:
qmcgaw/gluetun:latestfromdocker.io --cap-add NET_ADMINruntime arg--device /dev/net/tunruntime arg- Docker Compose publish callback that sets
cap_add,devices, and transfers ports from routed containers
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingProjectTemplates/ShinyAspNet/skills/shiny-aspire/SKILL.md
Popularity
- Repository stars
- 150
- Repository forks
- 14
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 May 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/shinyorg/templates/shiny-aspire)