Aspire typescript apphost

From CommunityToolkit/Aspire · View interactive version

Aspire typescript apphost is an AI agent skill from the GitHub repository CommunityToolkit/Aspire. Generate a TypeScript AppHost from an existing C# example AppHost, then add a TypeScriptAppHostTest-based integration test.

How to use this skill

Skill file

Aspire TypeScript AppHost Generator

Use this skill when the user wants to create a TypeScript AppHost (apphost.mts) from an existing C# example AppHost and add/update the corresponding integration test.

Prompting rule

Goal

For one integration, produce:

  1. A TypeScript AppHost example beside the existing C# AppHost example.
  2. A test in the integration's tests/CommunityToolkit.Aspire.Hosting.<Integration>.Tests project that uses TypeScriptAppHostTest.Run(...).

Workflow

  1. Resolve the integration
  1. Locate the source AppHost and test project
  1. Create or update the TypeScript AppHost folder
  1. Translate C# AppHost logic to TypeScript
  1. Add the integration TypeScript AppHost test
  1. Validate changes

Guardrails

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.