hosting-integration-authoring

Memandu penulisan dan peninjauan API integrasi Aspire.Hosting. Mengklasifikasikan arketipe integrasi, lalu menerapkan praktik terbaik mandiri untuk penamaan,…

npx skills add https://github.com/microsoft/aspire --skill hosting-integration-authoring

Aspire hosting integration authoring

Use this skill when creating, modifying, or reviewing Aspire.Hosting.* integration APIs.

This skill is self-contained. The resource files in this skill are the authoritative guidance, and repository paths are examples of existing patterns only.

First step: classify the integration

Read resources/selector-matrix.md first. Then read resources/app-model-fundamentals.md for the app model rules that apply to every hosting integration. Classify the work across all four axes:

  1. Resource shape.
  2. Lifecycle mode.
  3. Integration role.
  4. Structure.

Do not force the integration into a single bucket. Most integrations compose several patterns. For example, PostgreSQL is a container-backed service, has parent-child database resources, exposes connection properties, creates databases during resource readiness, and has admin UI companion helpers.

Then read the matching resources

Always read the relevant archetype resource and the cross-cutting resources that apply to the change.

If the integration involvesRead
Any resource, annotation, lifecycle event, structured value, endpoint, manifest, or app-model behaviorresources/app-model-fundamentals.md
Local container service, database, broker, cache, vector DBresources/archetype-container-backed-service.md
Admin UI, inspector, dashboard, load/test tool, or standalone utility containerresources/archetype-admin-and-tool-container.md
Migration, package/tool install, model pull, schema deployment, DACPAC, or one-shot setup helperresources/archetype-setup-and-migration-helper.md
Serialized controller, reconciler, command-driven resource operations, drift detection, or state-machine orchestrationresources/archetype-controller-reconciler.md
Sidecar, component registry, telemetry collector, service mesh, middleware, or app-wide annotation-driven infrastructureresources/archetype-sidecar-and-middleware.md
Local tunnel, webhook forwarder, callback bridge, or CLI that exposes/forwards local endpointsresources/archetype-tunnel-and-webhook-bridge.md
Secret manager, credential broker, external secret provider, or provider-backed managed secret child resourcesresources/archetype-secret-provider.md
External/SaaS service reference with API key/endpoint, no local container/provisioningresources/archetype-external-cloud-reference.md
Azure resource provisioning, Bicep, role assignments, existing Azure resources, emulators, local containers for Azure resourcesresources/archetype-azure-provisioning.md
Docker Compose, Kubernetes, Azure Container Apps, or another deployment target/publisherresources/archetype-deployment-target-publisher.md and resources/deployment-production-readiness.md
Python, Go, JavaScript, Node, Vite, Next.js, or another language runtime/workloadresources/archetype-language-executable-app.md
Non-resource model/configuration overlay, e.g. Orleans-style APIsresources/archetype-overlay-configuration.md
Public API names, overloads, return types, polyglot AppHost compatibility, annotations, experimental stateresources/api-naming-and-shape.md
Any run/publish/deploy branchingresources/run-publish-deploy-modes.md
Event subscriptions, initialization, generated files, health checks, pipeline stepsresources/eventing-and-initialization.md
Custom resource lifetime, synthetic/facade resources, manually allocated endpoints, or resource notification state machinesresources/custom-lifecycle-and-facade-resources.md
IResourceWithConnectionString, WithReference, environment variables, URI/JDBC propertiesresources/connection-properties.md
Parent-child resources, companions, setup siblings, WithReference, waits, relationshipsresources/relationships-and-companions.md
[AspireExport], TypeScript/polyglot AppHosts, ATS metadata, analyzer diagnostics, DTOs, union parameters, value catalogs, callback contextsresources/polyglot-exports.md
Endpoint names, service discovery, external URLs, reference endpoints, endpoint environment variablesresources/endpoints-and-service-discovery.md
Secrets, parameters, credentials, managed identity, RBAC, private networking, generated artifacts containing sensitive dataresources/security-secrets-and-identity.md
Resource names, physical names, annotations, constructors, mutability, model invariantsresources/resource-model-invariants.md
Package metadata, preview/stable posture, aspire add discovery, icons, gallery/README visibilityresources/package-and-discoverability.md
Dashboard icons, URLs, commands, notifications, resource logs, admin companion UXresources/dashboard-ux.md
Generated config files, WithContainerFiles, file permissions, temp/store usage, build dependenciesresources/generated-files-and-container-files.md
Toolchain detection, path handling, Windows/macOS/Linux behavior, shell quoting, executable permissionsresources/cross-platform-tooling.md
Experimental/obsolete/deprecation lifecycle, compatibility shims, migration guidanceresources/compatibility-and-deprecation.md
README or testsresources/testing-and-readmes.md

Authoring workflow

  1. State the classification briefly before changing or reviewing code.
  2. Apply the archetype-specific DO/DON'T list.
  3. Apply every relevant cross-cutting checklist.
  4. Validate both run-mode and publish/deploy behavior when the integration changes those surfaces.
  5. Keep generated API baseline files under */api/*.cs untouched unless the task explicitly asks for API baseline regeneration.

Review workflow

When reviewing an integration PR, look for concrete violations that can cause wrong runtime behavior, wrong generated manifests, broken deployment output, bad public API, missing connection properties, or bad polyglot projection. Do not spend review budget on style-only comments.

Lebih banyak skill dari microsoft

oss-growth
microsoft
Persona peretas pertumbuhan OSS
agent-framework-azure-ai-py
microsoft
Bangun agen Azure AI Foundry menggunakan Microsoft Agent Framework Python SDK (agent-framework-azure-ai). Gunakan saat membuat agen persisten dengan AzureAIAgentsProvider, menggunakan alat yang dihosting (code interpreter, file search, web search), mengintegrasikan server MCP, mengelola utas percakapan, atau mengimplementasikan respons streaming. Mencakup alat fungsi, keluaran terstruktur, dan agen multi-alat.
development
airunway-aks-setup
microsoft
Siapkan AI Runway di AKS — dari klaster kosong hingga model berjalan. Mencakup verifikasi klaster, instalasi controller, penilaian GPU, penyiapan penyedia, dan deployment pertama. KAPAN: "setup AI Runway", "onboard AKS cluster", "install AI Runway", "airunway setup", "deploy model to AKS", "GPU inference on AKS", "KAITO setup on AKS", "run LLM on AKS", "vLLM on AKS", "set up model serving on AKS", "AI Runway controller".
devops
appinsights-instrumentation
microsoft
Panduan untuk instrumentasi aplikasi web dengan Azure Application Insights. Menyediakan pola telemetri, pengaturan SDK, dan referensi konfigurasi. KAPAN: cara menginstrumentasi aplikasi, SDK App Insights, pola telemetri, apa itu App Insights, panduan Application Insights, contoh instrumentasi, praktik terbaik APM.
devops
applicationinsights-web-ts
microsoft
Instrumentasi aplikasi browser/web dengan Application Insights JavaScript SDK (@microsoft/applicationinsights-web). Digunakan untuk Real User Monitoring (RUM) — tampilan halaman, klik, dependensi AJAX/fetch, pengecualian, peristiwa kustom, dan jejak agen GenAI sisi browser yang dikorelasikan dengan jejak OpenTelemetry backend. Mencakup pengaturan SDK Loader Script dan npm, ekstensi kerangka kerja (React, React Native, Angular), Click Analytics, inisialisasi telemetri, dan konvensi semantik OTel GenAI untuk span agen/alat/model yang dipancarkan dari browser.
devops
azure-ai-anomalydetector-java
microsoft
Bangun aplikasi deteksi anomali dengan Azure AI Anomaly Detector SDK untuk Java. Gunakan saat mengimplementasikan deteksi anomali univariat/multivariat, analisis deret waktu, atau pemantauan bertenaga AI.
development
azure-ai-language-conversations-py
microsoft
Implementasikan Pemahaman Bahasa Percakapan (CLU) menggunakan SDK Python azure-ai-language-conversations. Gunakan saat bekerja dengan ConversationAnalysisClient untuk menganalisis maksud dan entitas percakapan, membangun fitur NLP, atau mengintegrasikan pemahaman bahasa ke dalam aplikasi.
development
azure-ai-ml-py
microsoft
Azure Machine Learning SDK v2 untuk Python. Gunakan untuk ruang kerja ML, pekerjaan, model, kumpulan data, komputasi, dan pipeline. Pemicu: "azure-ai-ml", "MLClient", "ruang kerja", "registri model", "pekerjaan pelatihan", "kumpulan data".
development