Chuyển đến nội dung
Skillpedia
Triển khai và đám mây (DevOps)40k · #7066

aspire

Skill này làm gì

Aspire là bộ công cụ để xây dựng và quản lý các ứng dụng phân tán phức tạp. Nó giúp tổ chức các phần khác nhau của ứng dụng (như API, cơ sở dữ liệu và giao diện) để chúng hoạt động cùng nhau, ngay cả khi được viết bằng các ngôn ngữ khác nhau.

Khi nào nên dùng

  • ✓Khi bạn cần tạo một ứng dụng phân tán mới.
  • ✓Khi cấu hình hoặc kết nối các dịch vụ khác nhau trong một ứng dụng.
  • ✓Để chạy, gỡ lỗi hoặc triển khai các ứng dụng phức tạp.

Liên kết skill

https://github.com/github/awesome-copilot/blob/main/skills/aspire/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/github/awesome-copilot/blob/main/skills/aspire/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Làm sao để cấu hình Aspire dùng cơ sở dữ liệu PostgreSQL?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Aspire dùng một tệp trung tâm tên “AppHost” đóng vai trò như nhạc trưởng. Nó xác định những dịch vụ nào tồn tại, chúng giao tiếp thế nào và cần tài nguyên gì (như cơ sở dữ liệu). AppHost chịu trách nhiệm khởi động mọi thứ đúng thứ tự và đảm bảo các dịch vụ tìm thấy nhau.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Aspire — Polyglot Distributed-App Orchestration

Aspire is a code-first, polyglot toolchain for building observable, production-ready distributed applications. It orchestrates containers, executables, and cloud resources from a single AppHost project — regardless of whether the workloads are C#, Python, JavaScript/TypeScript, Go, Java, Rust, Bun, Deno, or PowerShell.

Mental model: The AppHost is a conductor — it doesn't play the instruments, it tells every service when to start, how to find each other, and watches for problems.

Detailed reference material lives in the references/ folder — load on demand.


References

Reference When to load
CLI Reference Command flags, options, or detailed usage
MCP Server Setting up MCP for AI assistants, available tools
Integrations Catalog Discovering integrations via MCP tools, wiring patterns
Polyglot APIs Method signatures, chaining options, language-specific patterns
Architecture DCP internals, resource model, service discovery, networking, telemetry
Dashboard Dashboard features, standalone mode, GenAI Visualizer
Deployment Docker, Kubernetes, Azure Container Apps, App Service
Testing Integration tests against the AppHost
Troubleshooting Diagnostic codes, common errors, and fixes

1. Researching Aspire Documentation

The Aspire team ships an MCP server that provides documentation tools directly inside your AI assistant. See MCP Server for setup details.

Aspire CLI 13.2+ (recommended — has built-in docs search)

If running Aspire CLI 13.2 or later (aspire --version), the MCP server includes docs search tools:

Tool Description
list_docs Lists all available documentation from aspire.dev
search_docs Performs weighted lexical search across indexed documentation
get_doc Retrieves a specific document by its slug

These tools were added in PR #14028. To update: aspire update --self --channel daily.

For more on this approach, see David Pine's post: https://davidpine.dev/posts/aspire-docs-mcp-tools/

Aspire CLI 13.1 (integration tools only)

On 13.1, the MCP server provides integration lookup but not docs search:

Tool Description
list_integrations Lists available Aspire hosting integrations
get_integration_docs Gets documentation for a specific integration package

For general docs queries on 13.1, use Context7 as your primary source (see below).

Fallback: Context7

Use Context7 (mcp_context7) when the Aspire MCP docs tools are unavailable (13.1) or the MCP server isn't running:

Step 1 — Resolve the library ID (one-time per session):

Call mcp_context7_resolve-library-id with libraryName: ".NET Aspire".

Rank Library ID Use when
1 /microsoft/aspire.dev Primary source. Guides, integrations, CLI reference, deployment.
2 /dotnet/aspire API internals, source-level implementation details.
3 /communitytoolkit/aspire Non-Microsoft polyglot integrations (Go, Java, Node.js, Ollama).

Step 2 — Query docs:

libraryId: "/microsoft/aspire.dev", query: "Python integration AddPythonApp service discovery"
libraryId: "/communitytoolkit/aspire", query: "Golang Java Node.js community integrations"

Fallback: GitHub search (when Context7 is also unavailable)

Search the official docs repo on GitHub:

  • Docs repo: microsoft/aspire.dev — path: src/frontend/src/content/docs/
  • Source repo: dotnet/aspire
  • Samples repo: dotnet/aspire-samples
  • Community integrations: CommunityToolkit/Aspire

2. Prerequisites & Install

Requirement Details
.NET SDK 10.0+ (required even for non-.NET workloads — the AppHost is .NET)
Container runtime Docker Desktop, Podman, or Rancher Desktop
IDE (optional) VS Code + C# Dev Kit, Visual Studio 2022, JetBrains Rider
# Linux / macOS
curl -sSL https://aspire.dev/install.sh | bash

# Windows PowerShell
irm https://aspire.dev/install.ps1 | iex

# Verify
aspire --version

…
Câu hỏi thường gặp

“Polyglot” trong Aspire nghĩa là gì?

“Polyglot” nghĩa là Aspire hỗ trợ nhiều ngôn ngữ lập trình. Bạn có thể dùng C#, Python, JavaScript, Go, Java và các ngôn ngữ khác cùng trong một ứng dụng.

Tôi có cần biết lập trình bằng tất cả các ngôn ngữ được hỗ trợ không?

Không. Aspire quản lý việc điều phối. Bạn chỉ cần biết lập trình bằng các ngôn ngữ tạo nên các dịch vụ bạn đang phát triển.

AppHost là gì?

AppHost là trái tim của Aspire. Đó là một dự án mô tả ứng dụng phân tán của bạn, xác định các dịch vụ, phụ thuộc và cách chúng chạy. Hãy hình dung nó là nhạc trưởng điều phối tất cả nhạc công (dịch vụ).

Chi tiết

Mô tả gốc của tác giả

Aspire skill covering the Aspire CLI, AppHost orchestration, service discovery, integrations, MCP server, VS Code extension, Dev Containers, GitHub Codespaces, templates, dashboard, and deployment. Use when the user asks to create, run, debug, configure, deploy, or troubleshoot an Aspire distributed application.

repo: github/awesome-copilot

Độ phổ biến

Sao GitHub
40k
Vị trí xếp hạng
#7066
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự