跳到正文
cccskills
免费在 GitHub 公开

aspire

Load for Aspire AppHost work: start/stop/wait resources, inspect dashboard/logs/traces, add integrations/resources, rebuild a service, run isolated worktrees, or diagnose Aspire orchestration; not for plain dotnet apps, container-only deployments, or cloud deployment.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright
查看安装方法

包含的文件(1)

  • SKILL.md5.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

<!-- ABOUTME: Operational Aspire CLI workflow for the repository's distributed AppHost. --> <!-- ABOUTME: Keeps resource-level rebuild, isolation, logs, traces, and integration commands practical. -->

Aspire Skill

This repository uses Aspire to orchestrate its distributed application. Resources are defined in the AppHost project (apphost.cs or apphost.ts).

CLI command reference

TaskCommand
Start the appaspire start
Start isolated (worktrees)aspire start --isolated
Restart the appaspire start (stops previous automatically)
Wait for resource healthyaspire wait <resource>
Stop the appaspire stop
List resourcesaspire describe or aspire resources
Run resource commandaspire resource <resource> <command>
Start/stop/restart resource`aspire resource <resource> start
Rebuild a .NET project resourceaspire resource <resource> rebuild
View console logsaspire logs [resource]
View structured logsaspire otel logs [resource]
View tracesaspire otel traces [resource]
Logs for a traceaspire otel logs --trace-id <id>
Add an integrationaspire add
List running AppHostsaspire ps
Update AppHost packagesaspire update
Search docsaspire docs search <query>
Get doc pageaspire docs get <slug>
List doc pagesaspire docs list
Environment diagnosticsaspire doctor
List resource MCP toolsaspire mcp tools
Call resource MCP toolaspire mcp call <resource> <tool> --input <json>

Most commands support --format Json for machine-readable output. Use --apphost <path> to target a specific AppHost.

Key workflows

Running in agent environments

Use aspire start to run the AppHost in the background. When working in a git worktree, use --isolated to avoid port conflicts and to prevent sharing user secrets or other local state with other running instances:

aspire start --isolated

Use aspire wait <resource> to block until a resource is healthy before interacting with it:

aspire start --isolated
aspire wait myapi

Applying code changes

Choose the right action based on what changed:

What changedActionWhy
AppHost project (apphost.cs/apphost.ts)aspire startResource graph changed; full restart required
Compiled .NET project resourceaspire resource <name> rebuildRebuilds and restarts only that resource
Interpreted resource (JavaScript, Python)Typically nothing — most run with file watchersRestart the resource if no watch mode is configured

Never restart the entire AppHost just because a single resource changed. Use aspire resource <name> rebuild for .NET project resources — it coordinates stop, build, and restart for just that resource. Use aspire describe --format Json to check which commands a resource supports.

Debugging issues

Before making code changes, inspect the app state:

  1. aspire describe — check resource status
  2. aspire otel logs <resource> — view structured logs
  3. aspire logs <resource> — view console output
  4. aspire otel traces <resource> — view distributed traces

Adding integrations

Use aspire docs search to find integration documentation, then aspire docs get to read the full guide. Use aspire add to add the integration package to the AppHost.

After adding an integration, restart the app with aspire start for the new resource to take effect.

Using resource MCP tools

Some resources expose MCP tools (e.g. WithPostgresMcp() adds SQL query tools). Discover and call them via CLI:

aspire mcp tools                                              # list available tools
aspire mcp tools --format Json                                # includes input schemas
aspire mcp call <resource> <tool> --input '{"key":"value"}'   # invoke a tool

Important rules

  • Always start the app first (aspire start) before making changes to verify the starting state.
  • To restart, just run aspire start again — it automatically stops the previous instance. NEVER use aspire stop then aspire run. NEVER use aspire run at all.
  • Only restart the AppHost when AppHost code changes. For .NET project resources, use aspire resource <name> rebuild instead.
  • Use --isolated when working in a worktree.
  • Avoid persistent containers early in development to prevent state management issues.
  • Never install the Aspire workload — it is obsolete.
  • For Aspire API reference and documentation, prefer aspire docs search <query> and aspire docs get <slug> over searching NuGet package caches or XML doc files. The CLI provides up-to-date content from aspire.dev.
  • Prefer aspire.dev and learn.microsoft.com/microsoft/aspire for official documentation.

Playwright CLI

If configured, use Playwright CLI for functional testing of resources. Get endpoints via aspire describe. Run playwright-cli --help for available commands.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Load for Blazor/MudBlazor UI changes involving forms, dialogs, focus, keyboard navigation, landmarks, ARIA, color contrast, RTL-safe styling, or WCAG 2.2 AA tests; not for backend-only changes.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月21日 更新

Load when a task asks to research, verify, compare, or look up framework/package behavior, release notes, standards, RFCs, CVEs, or unfamiliar APIs; use repository evidence first, then official docs, and not for codebase navigation alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月21日 更新

Load for authentication or authorization changes involving BFF cookies/tokens, JWT validation, claims/user ID extraction, policies, handler access checks, impersonation, or 401/403 bugs; not for UI affordance gating alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月21日 更新

Load for Blazor BFF server work involving YARP proxy routes, cookie sessions, access-token forwarding/refresh, downstream API calls, BFF handlers, or browser-to-API auth failures; not for client component rendering or API JWT validation alone.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月21日 更新

Load when editing Blazor `.razor.css`, scoped selectors, `::deep`, BEM class names, RTL/logical CSS properties, or styling nested MudBlazor components; not for global design tokens or non-Blazor CSS.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月21日 更新

Load for Blazor/MudBlazor component or page changes involving render modes, dialogs, parameters/events, HAL-gated actions, generated API clients or generated record consumption, theming, or component tests; add accessibility or CSS-isolation only when touched.

中文简介正在准备中。当前显示原文说明。

islamu-ngo/Event82026年10月21日 更新

查看 islamu-ngo 的全部技能

报告此技能的问题