帮助开发者在 Azure 上构建、部署并修改 GitHub Copilot SDK 应用。
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "azure-hosted-copilot-sdk" 技能: 1. 下载 https://raw.githubusercontent.com/microsoft/GitHub-Copilot-for-Azure/main/plugin/skills/azure-hosted-copilot-sdk/SKILL.md 2. 保存为 ~/.claude/skills/azure-hosted-copilot-sdk/SKILL.md 3. 装好后重载技能,告诉我可以用了
请检查当前项目是否包含 @github/copilot-sdk、CopilotClient 或相关标记;如果是,请为这个 GitHub Copilot SDK 应用生成在 Azure 上初始化与本地开发所需的步骤,包括 azd init copilot、环境配置和关键文件说明。
一套针对 Copilot SDK 项目的 Azure 初始化与开发指南,包含命令、配置项和文件修改建议。
这是一个使用 @github/copilot-sdk 的项目。请基于现有代码结构,为应用新增一个会话功能:使用 createSession 和 sendAndWait 接入自定义模型(BYOM),并说明需要修改的代码文件、环境变量和 Azure 资源配置。
新增功能的实现方案与代码修改建议,覆盖 SDK 接入、模型配置和 Azure 环境调整。
请为这个包含 CopilotClient 的 GitHub Copilot SDK 应用生成从构建、部署到验证的完整 Azure 流程,要求列出构建命令、部署步骤、常见报错排查和发布后验证方法。
一份完整的 Azure 构建部署清单,帮助用户顺利发布并验证 Copilot SDK 应用。
⚠️ CRITICAL: This check MUST run before ANY other skill (azure-prepare, azure-deploy, etc.) when an existing codebase is present.
package.json in the workspace root (and any */package.json one level deep)@github/copilot-sdk or copilot-sdk appears in name, dependencies, or devDependencies.ts and .js files for CopilotClient or createSession| Marker | Where to check |
|---|---|
@github/copilot-sdk | package.json dependencies or devDependencies |
copilot-sdk | package.json name or dependencies |
CopilotClient | Source files (.ts, .js) |
createSession + sendAndWait | Source files (.ts, .js) |
| Prompt pattern (no "copilot" keyword) | Why this skill |
|---|---|
| "Build this app" / "Prepare this app for Azure" | Codebase contains @github/copilot-sdk - needs SDK-aware scaffolding |
| "Add a new feature to this app" | Requires SDK-aware implementation patterns |
| "Update this app" / "Modify this app" | Must preserve SDK integration patterns |
⚠️ Warning: ANY build, modify, add-feature, or prepare prompt targeting an existing codebase MUST route to this skill when codebase contains
@github/copilot-sdk, even if the prompt does not mention "copilot". This skill then orchestrates azure-prepare and azure-deploy as sub-skills.
⚠️ Yield to azure-deploy: When the codebase already has
.azure/deployment-plan.mdand the user wants to deploy (not modify or add features), route to azure-deploy instead. This skill handles preparation; azure-deploy handles execution.
| User wants | Action |
|---|---|
| Build new (empty project) | Step 2A (scaffold) |
| Add new SDK service to existing repo | Step 2B (scaffold alongside) |
| Deploy existing SDK app to Azure | Step 2C (add infra to existing SDK app) |
| Modify/add features to existing SDK app | Use codebase context + SDK references to implement |
| Add SDK to existing app code | Integrate SDK |
| Use Azure/own model | Step 3 (BYOM config) |
azd init --template azure-samples/copilot-sdk-service
Template includes API (Express/TS) + Web UI (React/Vite) + infra (Bicep) + Dockerfiles + token scripts — do NOT recreate. See SDK ref.
User has existing code and wants a new Copilot SDK service alongside it. Scaffold template to a temp dir, copy the API service + infra into the user's repo, adapt azure.yaml to include both existing and new services. See deploy existing ref.
User already has a working Copilot SDK app and needs Azure infra. See deploy existing ref.
Three model paths (layers on top of 2A/2B):
| Path | Config |
|---|---|
| GitHub default | No model param — SDK picks default |
| GitHub specific | model: "<name>" — use listModels() to discover |
| Azure BYOM | model + provider with bearerToken via DefaultAzureCredential |
…
分析并精简 Markdown 内容,降低 token 消耗并提升 AI 处理效率。
为 Copilot 创建的 PR 自动触发 ADO CI 流水线运行与验证。