Agent skill

Aspire Typescript Apphost

by CommunityToolkit in CommunityToolkit/Aspire

Generate a TypeScript AppHost from an existing C example AppHost, then add a TypeScriptAppHostTest-based integration test.

MITAuto-check passedTesting & QA

Install Aspire Typescript Apphost

skills CLI
$ npx skills add CommunityToolkit/Aspire --skill aspire-typescript-apphost -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install CommunityToolkit/Aspire aspire-typescript-apphost --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/CommunityToolkit/Aspire.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/aspire-typescript-apphost .claude/skills/aspire-typescript-apphost && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
aspire-typescript-apphost
GitHub stars
629
Token cost
~739 tokens
SKILL.md length
307 words
Files
1
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Generate a TypeScript AppHost from an existing C example AppHost, then add a TypeScriptAppHostTest-based integration test.

  • Works in 2 steps: A TypeScript AppHost example beside the… → A test in the integration's…
  • Tasks that involve Integration testing
  • SKILL.md covers Prompting rule, Goal, Workflow and Guardrails
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Aspire Typescript Apphost is an agent skill from CommunityToolkit/Aspire. Generate a TypeScript AppHost from an existing C example AppHost, then add a TypeScriptAppHostTest-based integration test.

Its SKILL.md is about 740 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Testing & QA, covering Integration testing. It works with TypeScript and C#. The repository describes itself as: A community project with additional components and extensions for Aspire. The licence is MIT.

When your agent uses it

  • Tasks that involve Integration testing

Example prompts

  • “/aspire-typescript-apphost”

Workflow steps

2 steps, taken from the first numbered list in SKILL.md.

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

What it can do on your machine

Read from SKILL.md and the folder at commit 69a155d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Aspire Typescript Apphost loads about 739 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 307 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~739

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from CommunityToolkit/Aspire at commit 69a155d, republished under its MIT licence (© CommunityToolkit). 307 words, ~739 tokens.

Download SKILL.mdSave it as .claude/skills/aspire-typescript-apphost/SKILL.md (or your agent's skills folder).
name
aspire-typescript-apphost
description
Generate a TypeScript AppHost from an existing C# example AppHost, then add a TypeScriptAppHostTest-based integration test.

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

  • Ask for the integration only when this skill is actively running and only if the user did not provide it.
  • Do not ask for integration selection before this skill is invoked.

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

    • If the user already specified an integration, use it.
    • Otherwise, prompt for it at runtime.
  2. Locate the source AppHost and test project

    • Source C# example path pattern:
      • examples/<example>/CommunityToolkit.Aspire.Hosting.<Integration>.AppHost/Program.cs
    • Target TypeScript example path pattern:
      • examples/<example>/CommunityToolkit.Aspire.Hosting.<Integration>.AppHost.TypeScript/
    • Test project path:
      • tests/CommunityToolkit.Aspire.Hosting.<Integration>.Tests/
  3. Create or update the TypeScript AppHost folder

    • Required files:
      • apphost.mts
      • aspire.config.json
      • package.json
      • tsconfig.json
      • eslint.config.mjs
      • package-lock.json
    • Keep template/config conventions aligned with existing TypeScript AppHost examples in this repo.
    • Use TypeScript API method names generated for Aspire exports (for overloads, use the exported TypeScript name, not guessed C# casing).
  4. Translate C# AppHost logic to TypeScript

    • Preserve resource naming and behavior where practical.
    • Use TypeScript Aspire methods and options shapes.
    • Keep path handling and package mapping valid for the example location.
  5. Add the integration TypeScript AppHost test

    • Add TypeScriptAppHostTests.cs in the integration test project if missing.
    • Use:
      • TypeScriptAppHostTest.Run(...)
      • appHostProject = CommunityToolkit.Aspire.Hosting.<Integration>.AppHost.TypeScript folder name
      • packageName = integration package name
      • exampleName = example folder name
      • waitForResources = resources required to verify startup in Aspire
    • Follow existing test style and attributes ([RequiresDocker] when applicable).
  6. Validate changes

    • Run the relevant test project to ensure the TypeScript AppHost compiles and starts via the shared validation flow.

Guardrails

  • Do not edit generated .aspire/modules/ files.
  • Do not change unrelated examples or tests.
  • Keep all changes scoped to the selected integration plus the skill files.

© CommunityToolkit, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/aspire-typescript-apphost of CommunityToolkit/Aspire.

Open the folder on GitHubat commit 69a155d

Compare with similar skills

Aspire Typescript Apphost next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Aspire Typescript Apphost compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Aspire Typescript Apphost this skillCommunityToolkit/Aspire629—~739Automated safety check: PassMIT
Growing Outside In Systemslexler/skill-factory2391 repos~1.9kAutomated safety check: PassApache-2.0
Git HooksProrise-cool/Claude-Code-Multi-Agent305—~3.6kAutomated safety check: NotesNone
Test Writing WorkflowiOfficeAI/AionUi33k1 repos~1.2kAutomated safety check: PassApache-2.0
Java SDK E2E Test with Replay Snapshotgithub/copilot-sdk11k—~1.8kAutomated safety check: PassMIT
Syncable Entity Integration Teststwentyhq/twenty58k—~3.4kAutomated safety check: PassCustom licence

Similar skills

  • Growing Outside In Systems

    lexler/skill-factory

    Drive feature development using Outside-In TDD with Hexagonal Architecture.

    239 GitHub starsUsed in 1 repo~1.9k tokens
    Testing & QAAuto-check passed
  • Git Hooks

    Prorise-cool/Claude-Code-Multi-Agent

    Central authority on git hook implementations, modern best practices, and tooling for .NET/C, JavaScript/TypeScript, Python, and polyglot repositories.

    305 GitHub stars~3.6k tokensUpdated 21 days ago
    DevelopmentAuto-check: notes
  • Test Writing Workflow

    iOfficeAI/AionUi

    Sets the test-writing workflow for the repository: risk-first scenario lists, behavior-focused Vitest tests, a full run before each commit and a coverage target.

    33k GitHub starsUsed in 1 repo~1.2k tokens
    Testing & QAAuto-check passed
  • Official

    Creates a Java SDK end-to-end test for the Copilot SDK that runs against a recorded YAML snapshot through a replay proxy, so CI needs no real authentication.

    11k GitHub stars~1.8k tokensUpdated today
    Testing & QAAuto-check passed
  • Step-by-step guide to writing the mandatory integration tests for syncable metadata entities in Twenty's server, covering failures and CRUD success cases.

    58k GitHub stars~3.4k tokensUpdated today
    Testing & QAAuto-check passed
  • Tests interactive CLI and TUI programs with Microsoft's tui-test, driving prompts, arrow keys and screen output in a real pseudo-terminal.

    24k GitHub stars~603 tokensUpdated today
    Testing & QAAuto-check passed

More from CommunityToolkit/Aspire

All 8 skills in this repo
  • Dotnet Inspect

    CommunityToolkit/Aspire

    Query .NET APIs across NuGet packages, platform libraries, and local files.

    629 GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Aspire Monitoring

    CommunityToolkit/Aspire

    ANALYSIS SKILL - Observe Aspire apps: logs, traces, metrics, resource state, telemetry export, browser telemetry, and the standalone dashboard.

    629 GitHub stars~3.5k tokensUpdated yesterday
    Auto-check passed
  • Aspireify

    CommunityToolkit/Aspire

    WORKFLOW SKILL - Wire Aspire AppHosts or repair TypeScript AppHost toolchains.

    629 GitHub stars~5.3k tokensUpdated yesterday
    Auto-check: notes
  • Aspire Deployment

    CommunityToolkit/Aspire

    WORKFLOW SKILL — Deploy Aspire apps from AppHost models to Docker Compose, Kubernetes, Azure, AWS, or preview Radius.

    629 GitHub stars~4.5k tokensUpdated yesterday
    Auto-check: notes
  • Aspire Project V2 Migration

    CommunityToolkit/Aspire

    WORKFLOW SKILL - Safely migrates eligible Aspire 13.6+ AppHosts from legacy ProjectResource APIs to experimental DotnetProjectResource APIs after a per-resource assessment and explicit approval of…

    629 GitHub stars~3.4k tokensUpdated yesterday
    Auto-check passed
  • Aspire Upgrade

    CommunityToolkit/Aspire

    Update the Aspire version in the repository to the latest nightly build.

    629 GitHub stars~817 tokensUpdated yesterday
    Auto-check passed

Works with

Categories

Questions about Aspire Typescript Apphost

What does Aspire Typescript Apphost do?

Generate a TypeScript AppHost from an existing C example AppHost, then add a TypeScriptAppHostTest-based integration test. Aspire Typescript Apphost is an agent skill from CommunityToolkit/Aspire. Generate a TypeScript AppHost from an existing C example AppHost, then add a TypeScriptAppHostTest-based integration test.

When should I use Aspire Typescript Apphost?

Aspire Typescript Apphost fits situations like: tasks that involve Integration testing.

How do I install Aspire Typescript Apphost in Claude Code?

Run `npx skills add CommunityToolkit/Aspire --skill aspire-typescript-apphost -a claude-code`. Or copy the skill folder (.agents/skills/aspire-typescript-apphost in CommunityToolkit/Aspire) into .claude/skills/aspire-typescript-apphost in your project. Claude Code loads it when a task matches its description.

How do I install Aspire Typescript Apphost in Codex?

Run `npx skills add CommunityToolkit/Aspire --skill aspire-typescript-apphost -a codex`. Or copy the skill folder (.agents/skills/aspire-typescript-apphost in CommunityToolkit/Aspire) into .agents/skills/aspire-typescript-apphost in your project. Codex loads it when a task matches its description.

Can I use Aspire Typescript Apphost in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add CommunityToolkit/Aspire --skill aspire-typescript-apphost -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/aspire-typescript-apphost, .gemini/skills/aspire-typescript-apphost, .github/skills/aspire-typescript-apphost and .opencode/skills/aspire-typescript-apphost in your project.

What does Aspire Typescript Apphost need to run?

SKILL.md names no scripts, command-line tools or credentials: Aspire Typescript Apphost is instructions for the agent only.

Does Aspire Typescript Apphost access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Aspire Typescript Apphost safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Aspire Typescript Apphost use?

Aspire Typescript Apphost is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Aspire Typescript Apphost use?

About 739 tokens (SKILL.md is roughly 3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Aspire Typescript Apphost?

Skills that share tags, products or a category with Aspire Typescript Apphost: Growing Outside In Systems (lexler/skill-factory, 239 stars), Git Hooks (Prorise-cool/Claude-Code-Multi-Agent, 305 stars), Test Writing Workflow (iOfficeAI/AionUi, 33k stars) and Java SDK E2E Test with Replay Snapshot (github/copilot-sdk, 11k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Aspire Typescript Apphost?

CommunityToolkit (a GitHub organization) maintains it in CommunityToolkit/Aspire, which has 629 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on October 6, 2026.

Source: CommunityToolkit/Aspire on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.