一键导入
aspire-typescript-apphost
Generate a TypeScript AppHost from an existing C# example AppHost, then add a TypeScriptAppHostTest-based integration test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a TypeScript AppHost from an existing C# example AppHost, then add a TypeScriptAppHostTest-based integration test.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | aspire-typescript-apphost |
| description | Generate a TypeScript AppHost from an existing C# example AppHost, then add a TypeScriptAppHostTest-based integration test. |
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.
For one integration, produce:
tests/CommunityToolkit.Aspire.Hosting.<Integration>.Tests project that uses TypeScriptAppHostTest.Run(...).Resolve the integration
Locate the source AppHost and test project
examples/<example>/CommunityToolkit.Aspire.Hosting.<Integration>.AppHost/Program.csexamples/<example>/CommunityToolkit.Aspire.Hosting.<Integration>.AppHost.TypeScript/tests/CommunityToolkit.Aspire.Hosting.<Integration>.Tests/Create or update the TypeScript AppHost folder
apphost.mtsaspire.config.jsonpackage.jsontsconfig.jsoneslint.config.mjspackage-lock.jsonTranslate C# AppHost logic to TypeScript
Add the integration TypeScript AppHost test
TypeScriptAppHostTests.cs in the integration test project if missing.TypeScriptAppHostTest.Run(...)appHostProject = CommunityToolkit.Aspire.Hosting.<Integration>.AppHost.TypeScript folder namepackageName = integration package nameexampleName = example folder namewaitForResources = resources required to verify startup in Aspire[RequiresDocker] when applicable).Validate changes
.aspire/modules/ files.Guides authoring and reviewing CommunityToolkit Aspire.Hosting integration APIs. Classifies integration archetypes, then applies self-contained best practices for naming, resource shape, run/publish/deploy behavior, eventing, connection properties, security, endpoint semantics, polyglot exports, READMEs, and tests.
{what this skill teaches agents}
Team initialization flow (Phase 1 proposal + Phase 2 creation)
User-level AI agents that travel with you across projects
Capture Playwright screenshots and embed them in GitHub PR descriptions
Pre-release validation, npm publish procedures, and post-publish verification