[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B7HCPV1Y19VDP8A1DJEEB":3,"skill-same:01M69B7HCPV1Y19VDP8A1DJEEB":70},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":41,"linkOnly":42,"markdownContent":43,"markdownBody":44,"frontMatter":45,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":51,"ownerHtmlUrl":52,"ownerBlogUrl":53,"ownerDescription":54,"updatedAt":55,"install":56,"resources":69},"01M69B7HCPV1Y19VDP8A1DJEEB","agents-sdk-typescript-debugging","TypeScript Agents SDK 故障排查","Use when troubleshooting an agent built with the Microsoft Agents SDK (@microsoft\u002Fagents-hosting and related packages). Trigger on any of these symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors on incoming requests, the bot not responding to messages, .env configuration problems, Azure AD credential failures (AADSTS errors), port conflicts, or the agent not connecting in Teams or the Agents Playground. Use even if the user doesn't mention the SDK by name — trigger on symptoms like \"my bot won't start\", \"getting 401s\", or \"bot isn't responding.\"","排查使用 Microsoft Agents SDK（@microsoft\u002Fagents-hosting 及相关包）构建的智能体问题时使用。出现以下任一症状时触发：构建或 TypeScript 错误、启动即崩溃、传入请求出现 401 或身份验证错误、机器人不响应消息、.env 配置问题、Azure AD 凭据失败（AADSTS 错误）、端口冲突，或智能体无法在 Teams 或 Agents Playground 中连接。即使用户未提及 SDK 名称也应触发——依据“my bot won't start”（我的机器人无法启动）、“getting 401s”（遇到 401 错误）、“bot isn't responding”（机器人无响应）等症状触发。","microsoft\u002FAgents","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B7CR81D1HSNV69XDT8KAR",1109,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-for-js\u002Fskills\u002Fagents-sdk-typescript-debugging\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BRSRYQ3M8N5063NNQPF2B1","调试与故障排查","SCENARIO","使用场景",[31,32,33,34,35,36,10,37,38,39,40],"typescript","agents sdk","sdk","debugging","agents sdk typescript debugging","bot","auth","azure","packages","teams","2026-11-10 10:12:30",false,"---\nname: agents-sdk-typescript-debugging\ndescription: >\n  Use when troubleshooting an agent built with the Microsoft Agents SDK\n  (@microsoft\u002Fagents-hosting and related packages). Trigger on any of these\n  symptoms: build or TypeScript errors, crashes on startup, 401 or auth errors\n  on incoming requests, the bot not responding to messages, .env configuration\n  problems, Azure AD credential failures (AADSTS errors), port conflicts, or the\n  agent not connecting in Teams or the Agents Playground. Use even if the user\n  doesn't mention the SDK by name — trigger on symptoms like \"my bot won't\n  start\", \"getting 401s\", or \"bot isn't responding.\"\n---\n\n# Debugging Agents Built with Microsoft Agents SDK\n\n## Overview\n\nMost agent failures fall into one of three categories: the code doesn't build or start, the configuration is wrong, or the agent isn't reachable. Work through this checklist in order — each step confirms a prerequisite for the next.\n\n## Checklist\n\nYou MUST create a task for each of these items and complete them in order:\n\n1. Make sure the code builds successfully.\n2. Make sure the application starts and runs without crashing.\n3. Make sure the application opens a port and listens for incoming requests.\n4. Validate the `.env` configuration.\n5. Validate the bot's credentials against Azure AD.\n6. Use the Agents Playground to test the agent end-to-end locally.\n\n---\n\n### 1. Build the code\n\n```bash\nnpm run build\n```\n\nExpected: exits with code 0, no errors. Fix any TypeScript or import errors before continuing.\n\n---\n\n### 2. Start the application\n\nRun with debug logging enabled to get detailed output from the SDK internals:\n\n```bash\nDEBUG=agents:* npm start\n```\n\nOr for anonymous local dev:\n\n```bash\nDEBUG=agents:* node .\u002Fdist\u002Findex.js\n```\n\nThe `DEBUG=agents:*` flag enables verbose logging across all SDK namespaces. Scope down to reduce noise:\n\n```bash\nDEBUG=agents:* npm start                    # everything\nDEBUG=agents:authorization:* npm start      # all auth (most useful starting point)\nDEBUG=agents:msal npm start                 # token acquisition only\n```\n\n\n#### Auth & connections\n\n| Namespace | What it logs |\n|---|---|\n| `agents:authorization:connections` | Auth connections loaded at startup (clientId, tenantId, authType); which connection is selected per request |\n| `agents:authorization:manager` | Auth handlers configured at startup (type, scopes); which handler is invoked per request |\n| `agents:authorization:azurebot` | Azure Bot sign-in flow detail (token exchange, magic code, SSO) |\n| `agents:authorization:agentic` | Agentic auth flow detail (token acquisition, OBO) |\n| `agents:authorization` | High-level authorization middleware decisions |\n| `agents:msal` | MSAL token acquisition (token requests, cache hits, OBO) |\n| `agents:jwt-middleware` | Incoming JWT validation |\n| `agents:authConfiguration` | Auth configuration loading |\n\n#### Adapter & request handling\n\n| Namespace | What it logs |\n|---|---|\n| `agents:cloud-adapter` | Incoming request processing, activity dispatch |\n| `agents:base-adapter` | Base adapter lifecycle |\n| `agents:connector-client` | Outbound calls to the Bot Connector service |\n| `agents:user-token-client` | User token client requests |\n\n#### Application & state\n\n| Namespace | What it logs |\n|---|---|\n| `agents:app` | AgentApplication routing and lifecycle |\n| `agents:activity-handler` | ActivityHandler event dispatch |\n| `agents:state` | State read\u002Fwrite operations |\n| `agents:turnState` | Turn state access |\n| `agents:memory-storage` | MemoryStorage read\u002Fwrite |\n| `agents:middleware` | Middleware pipeline execution |\n\n#### Streaming, attachments & transcripts\n\n| Namespace | What it logs |\n|---|---|\n| `agents:streamingResponse` | Streaming response lifecycle |\n| `agents:attachmentDownloader` | Attachment download requests |\n| `agents:M365AttachmentDownloader` | M365-specific attachment downloads |\n| `agents:file-transcript-logger` | File transcript write operations |\n| `agents:rest-client` | REST client calls (transcript middleware) |\n\n#### Agent-to-agent\n\n| Namespace | What it logs |\n|---|---|\n| `agents:agent-client` | Outbound agent client calls and response handling |\n\nWatch for crash output. Common startup errors:\n\n- **`Cannot find module`** — missing `npm install`, or `dist\u002F` not built yet\n- **`ERR_MODULE_NOT_FOUND`** — check `\"type\": \"module\"` in `package.json` and that imports use `.js` extensions\n- **Port already in use** — another process is on port 3978; kill it or set `PORT` in `.env`\n\nIf the agent starts cleanly, you should see output like:\n\n```\nServer listening on port 3978\n```\n\n---\n\n### 3. Confirm the agent is reachable\n\n```bash\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n  -X POST http:\u002F\u002Flocalhost:3978\u002Fapi\u002Fmessages \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{}'\n```\n\n| Response | Meaning |\n|---|---|\n| `401` | Agent is running, auth is active — this is correct for a configured agent |\n| `200` | Agent is running with auth disabled (blank `clientId`) — correct for anonymous local dev |\n| `000` or connection refused | Agent is not running, wrong port, or crashed on startup |\n\n---\n\n### 4. Validate `.env` configuration\n\nConfiguration mistakes are the most common source of failures. Check each area below.\n\n#### 4a. Confirm the file is being loaded\n\nThe SDK requires `node --env-file .env` (Node 20+) or a manual `dotenv` call. If you're using `npm start`, check that `package.json` uses `--env-file`:\n\n```json\n\"start\": \"node --env-file .env .\u002Fdist\u002Findex.js\"\n```\n\nWithout `--env-file`, environment variables silently don't load and the agent starts with no auth config.\n\n#### 4b. Check for the correct env var format\n\nThe SDK uses the **modern `connections__` format**. Using the legacy flat format (`clientId=`, `clientSecret=`, `tenantId=`) still works but is only for backwards compatibility. Mixing the two formats causes silent misconfiguration.\n\n**Modern format (use this):**\n```\nconnections__serviceConnection__settings__clientId=\u003Cyour-app-id>\nconnections__serviceConnection__settings__clientSecret=\u003Cyour-secret>\nconnections__serviceConnection__settings__tenantId=\u003Cyour-tenant-id>\nconnectionsMap__0__connection=serviceConnection\nconnectionsMap__0__serviceUrl=*\n```\n\n**Legacy format (avoid for new agents):**\n```\nclientId=\u003Cyour-app-id>\nclientSecret=\u003Cyour-secret>\ntenantId=\u003Cyour-tenant-id>\n```\n\n#### 4c. Check double-underscore separators\n\nA single underscore (`_`) is not the same as a double underscore (`__`). The SDK uses `__` to separate path segments. A typo like `connections_serviceConnection_settings_clientId` will be silently ignored.\n\n#### 4d. Check `connectionsMap` entries\n\nIf you have multiple connections, each must have a `connectionsMap` entry. The first entry whose `serviceUrl` pattern matches the incoming request wins. Always include a `serviceUrl=*` fallback as the last entry.\n\nWith a single connection, `connectionsMap` can be omitted — the SDK defaults to `serviceUrl=*`.\n\n#### 4e. Check OAuth handler variables\n\nIf your agent uses user sign-in (`authorization: { graph: { ... } }`), the OAuth connection name must be set:\n\n```\nAgentApplication__UserAuthorization__Handlers__graph__Settings__azureBotOAuthConnectionName=GraphOAuthConnection\n```\n\nThe handler ID (`graph`) must match the key used in the `authorization` config in your code. A mismatch causes the sign-in flow to fail silently or with a cryptic error.\n\n---\n\n### 5. Validate bot credentials against Azure AD\n\nOnce the `.env` looks correct, confirm the credentials actually work by requesting a token:\n\n```bash\ncurl -s -X POST \\\n  \"https:\u002F\u002Flogin.microsoftonline.com\u002F$tenantId\u002Foauth2\u002Fv2.0\u002Ftoken\" \\\n  -d \"grant_type=client_credentials\\\n&client_id=$clientId\\\n&client_secret=$clientSecret\\\n&scope=https:\u002F\u002Fapi.botframework.com\u002F.default\" \\\n  | jq '{token_type, expires_in, error, error_description}'\n```\n\nA successful response includes `access_token`. Common errors:\n\n| Error code | Cause |\n|---|---|\n| `AADSTS700016` | `clientId` not found in tenant — wrong ID or wrong tenant |\n| `AADSTS7000215` | Invalid `clientSecret` — expired or incorrect |\n| `AADSTS90002` | `tenantId` not found |\n\n---\n\n### 6. Test with Agents Playground\n\nThe Agents Playground acts as a mock connector and channel client. It lets you test the full message flow locally without deploying to Azure or configuring a real Bot resource.\n\n**Install:**\n```bash\nnpm install -g agentsplayground\n```\n\n**Run against an anonymous agent (no `.env` needed):**\n```bash\nnpm test\n```\n\nThis assumes your `package.json` has:\n```json\n\"start:anon\": \"node .\u002Fdist\u002Findex.js\",\n\"test-tool\": \"agentsplayground -c emulator\",\n\"test\": \"npm-run-all -p -r start:anon test-tool\"\n```\n\n**Run against an authenticated agent:**\n```bash\nagentsplayground -c msteams \\\n  --client-id \u003Cyour-app-id> \\\n  --client-secret \u003Cyour-secret> \\\n  --tenant-id \u003Cyour-tenant-id>\n```\n\n**Channel options** (`-c`): `msteams`, `webchat`, `directline`, `emulator`, `agents`\n\nIf the playground connects but messages don't get responses, the agent is running but a message handler may be missing or the route isn't matching. Add a fallback handler to confirm:\n\n```typescript\nthis.onActivity('message', async (ctx: TurnContext) => {\n  await ctx.sendActivity(`Echo: ${ctx.activity.text}`)\n}, [], RouteRank.Last)\n```\n\n---\n\n### Validate an OAuth connection name\n\nOAuth connection names can only be tested end-to-end through a real sign-in flow:\n\n**Azure Portal → Your Bot Resource → Settings → OAuth Connection Settings → [your connection] → Test Connection**\n\nThis confirms the connection name matches, the OAuth app has the right scopes, and the redirect URI (`https:\u002F\u002Ftoken.botframework.com\u002F.auth\u002Fweb\u002Fredirect`) is registered on the app registration.\n\n## Contributing\n\nIf you hit a problem this skill couldn't solve, found a workaround, or noticed something wrong or outdated, that's valuable — please help improve this skill for everyone.\n\nDraft a suggested issue title and body based on the conversation, then ask the user to open it at: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagents\u002Fissues\u002Fnew\n\nA good issue includes:\n- What the user was trying to do\n- What went wrong (errors, unexpected behavior)\n- What worked — including any workaround found during this conversation\n- Relevant code or config snippets\n","# Debugging Agents Built with Microsoft Agents SDK\n\n## Overview\n\nMost agent failures fall into one of three categories: the code doesn't build or start, the configuration is wrong, or the agent isn't reachable. Work through this checklist in order — each step confirms a prerequisite for the next.\n\n## Checklist\n\nYou MUST create a task for each of these items and complete them in order:\n\n1. Make sure the code builds successfully.\n2. Make sure the application starts and runs without crashing.\n3. Make sure the application opens a port and listens for incoming requests.\n4. Validate the `.env` configuration.\n5. Validate the bot's credentials against Azure AD.\n6. Use the Agents Playground to test the agent end-to-end locally.\n\n---\n\n### 1. Build the code\n\n```bash\nnpm run build\n```\n\nExpected: exits with code 0, no errors. Fix any TypeScript or import errors before continuing.\n\n---\n\n### 2. Start the application\n\nRun with debug logging enabled to get detailed output from the SDK internals:\n\n```bash\nDEBUG=agents:* npm start\n```\n\nOr for anonymous local dev:\n\n```bash\nDEBUG=agents:* node .\u002Fdist\u002Findex.js\n```\n\nThe `DEBUG=agents:*` flag enables verbose logging across all SDK namespaces. Scope down to reduce noise:\n\n```bash\nDEBUG=agents:* npm start                    # everything\nDEBUG=agents:authorization:* npm start      # all auth (most useful starting point)\nDEBUG=agents:msal npm start                 # token acquisition only\n```\n\n\n#### Auth & connections\n\n| Namespace | What it logs |\n|---|---|\n| `agents:authorization:connections` | Auth connections loaded at startup (clientId, tenantId, authType); which connection is selected per request |\n| `agents:authorization:manager` | Auth handlers configured at startup (type, scopes); which handler is invoked per request |\n| `agents:authorization:azurebot` | Azure Bot sign-in flow detail (token exchange, magic code, SSO) |\n| `agents:authorization:agentic` | Agentic auth flow detail (token acquisition, OBO) |\n| `agents:authorization` | High-level authorization middleware decisions |\n| `agents:msal` | MSAL token acquisition (token requests, cache hits, OBO) |\n| `agents:jwt-middleware` | Incoming JWT validation |\n| `agents:authConfiguration` | Auth configuration loading |\n\n#### Adapter & request handling\n\n| Namespace | What it logs |\n|---|---|\n| `agents:cloud-adapter` | Incoming request processing, activity dispatch |\n| `agents:base-adapter` | Base adapter lifecycle |\n| `agents:connector-client` | Outbound calls to the Bot Connector service |\n| `agents:user-token-client` | User token client requests |\n\n#### Application & state\n\n| Namespace | What it logs |\n|---|---|\n| `agents:app` | AgentApplication routing and lifecycle |\n| `agents:activity-handler` | ActivityHandler event dispatch |\n| `agents:state` | State read\u002Fwrite operations |\n| `agents:turnState` | Turn state access |\n| `agents:memory-storage` | MemoryStorage read\u002Fwrite |\n| `agents:middleware` | Middleware pipeline execution |\n\n#### Streaming, attachments & transcripts\n\n| Namespace | What it logs |\n|---|---|\n| `agents:streamingResponse` | Streaming response lifecycle |\n| `agents:attachmentDownloader` | Attachment download requests |\n| `agents:M365AttachmentDownloader` | M365-specific attachment downloads |\n| `agents:file-transcript-logger` | File transcript write operations |\n| `agents:rest-client` | REST client calls (transcript middleware) |\n\n#### Agent-to-agent\n\n| Namespace | What it logs |\n|---|---|\n| `agents:agent-client` | Outbound agent client calls and response handling |\n\nWatch for crash output. Common startup errors:\n\n- **`Cannot find module`** — missing `npm install`, or `dist\u002F` not built yet\n- **`ERR_MODULE_NOT_FOUND`** — check `\"type\": \"module\"` in `package.json` and that imports use `.js` extensions\n- **Port already in use** — another process is on port 3978; kill it or set `PORT` in `.env`\n\nIf the agent starts cleanly, you should see output like:\n\n```\nServer listening on port 3978\n```\n\n---\n\n### 3. Confirm the agent is reachable\n\n```bash\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" \\\n  -X POST http:\u002F\u002Flocalhost:3978\u002Fapi\u002Fmessages \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{}'\n```\n\n| Response | Meaning |\n|---|---|\n| `401` | Agent is running, auth is active — this is correct for a configured agent |\n| `200` | Agent is running with auth disabled (blank `clientId`) — correct for anonymous local dev |\n| `000` or connection refused | Agent is not running, wrong port, or crashed on startup |\n\n---\n\n### 4. Validate `.env` configuration\n\nConfiguration mistakes are the most common source of failures. Check each area below.\n\n#### 4a. Confirm the file is being loaded\n\nThe SDK requires `node --env-file .env` (Node 20+) or a manual `dotenv` call. If you're using `npm start`, check that `package.json` uses `--env-file`:\n\n```json\n\"start\": \"node --env-file .env .\u002Fdist\u002Findex.js\"\n```\n\nWithout `--env-file`, environment variables silently don't load and the agent starts with no auth config.\n\n#### 4b. Check for the correct env var format\n\nThe SDK uses the **modern `connections__` format**. Using the legacy flat format (`clientId=`, `clientSecret=`, `tenantId=`) still works but is only for backwards compatibility. Mixing the two formats causes silent misconfiguration.\n\n**Modern format (use this):**\n```\nconnections__serviceConnection__settings__clientId=\u003Cyour-app-id>\nconnections__serviceConnection__settings__clientSecret=\u003Cyour-secret>\nconnections__serviceConnection__settings__tenantId=\u003Cyour-tenant-id>\nconnectionsMap__0__connection=serviceConnection\nconnectionsMap__0__serviceUrl=*\n```\n\n**Legacy format (avoid for new agents):**\n```\nclientId=\u003Cyour-app-id>\nclientSecret=\u003Cyour-secret>\ntenantId=\u003Cyour-tenant-id>\n```\n\n#### 4c. Check double-underscore separators\n\nA single underscore (`_`) is not the same as a double underscore (`__`). The SDK uses `__` to separate path segments. A typo like `connections_serviceConnection_settings_clientId` will be silently ignored.\n\n#### 4d. Check `connectionsMap` entries\n\nIf you have multiple connections, each must have a `connectionsMap` entry. The first entry whose `serviceUrl` pattern matches the incoming request wins. Always include a `serviceUrl=*` fallback as the last entry.\n\nWith a single connection, `connectionsMap` can be omitted — the SDK defaults to `serviceUrl=*`.\n\n#### 4e. Check OAuth handler variables\n\nIf your agent uses user sign-in (`authorization: { graph: { ... } }`), the OAuth connection name must be set:\n\n```\nAgentApplication__UserAuthorization__Handlers__graph__Settings__azureBotOAuthConnectionName=GraphOAuthConnection\n```\n\nThe handler ID (`graph`) must match the key used in the `authorization` config in your code. A mismatch causes the sign-in flow to fail silently or with a cryptic error.\n\n---\n\n### 5. Validate bot credentials against Azure AD\n\nOnce the `.env` looks correct, confirm the credentials actually work by requesting a token:\n\n```bash\ncurl -s -X POST \\\n  \"https:\u002F\u002Flogin.microsoftonline.com\u002F$tenantId\u002Foauth2\u002Fv2.0\u002Ftoken\" \\\n  -d \"grant_type=client_credentials\\\n&client_id=$clientId\\\n&client_secret=$clientSecret\\\n&scope=https:\u002F\u002Fapi.botframework.com\u002F.default\" \\\n  | jq '{token_type, expires_in, error, error_description}'\n```\n\nA successful response includes `access_token`. Common errors:\n\n| Error code | Cause |\n|---|---|\n| `AADSTS700016` | `clientId` not found in tenant — wrong ID or wrong tenant |\n| `AADSTS7000215` | Invalid `clientSecret` — expired or incorrect |\n| `AADSTS90002` | `tenantId` not found |\n\n---\n\n### 6. Test with Agents Playground\n\nThe Agents Playground acts as a mock connector and channel client. It lets you test the full message flow locally without deploying to Azure or configuring a real Bot resource.\n\n**Install:**\n```bash\nnpm install -g agentsplayground\n```\n\n**Run against an anonymous agent (no `.env` needed):**\n```bash\nnpm test\n```\n\nThis assumes your `package.json` has:\n```json\n\"start:anon\": \"node .\u002Fdist\u002Findex.js\",\n\"test-tool\": \"agentsplayground -c emulator\",\n\"test\": \"npm-run-all -p -r start:anon test-tool\"\n```\n\n**Run against an authenticated agent:**\n```bash\nagentsplayground -c msteams \\\n  --client-id \u003Cyour-app-id> \\\n  --client-secret \u003Cyour-secret> \\\n  --tenant-id \u003Cyour-tenant-id>\n```\n\n**Channel options** (`-c`): `msteams`, `webchat`, `directline`, `emulator`, `agents`\n\nIf the playground connects but messages don't get responses, the agent is running but a message handler may be missing or the route isn't matching. Add a fallback handler to confirm:\n\n```typescript\nthis.onActivity('message', async (ctx: TurnContext) => {\n  await ctx.sendActivity(`Echo: ${ctx.activity.text}`)\n}, [], RouteRank.Last)\n```\n\n---\n\n### Validate an OAuth connection name\n\nOAuth connection names can only be tested end-to-end through a real sign-in flow:\n\n**Azure Portal → Your Bot Resource → Settings → OAuth Connection Settings → [your connection] → Test Connection**\n\nThis confirms the connection name matches, the OAuth app has the right scopes, and the redirect URI (`https:\u002F\u002Ftoken.botframework.com\u002F.auth\u002Fweb\u002Fredirect`) is registered on the app registration.\n\n## Contributing\n\nIf you hit a problem this skill couldn't solve, found a workaround, or noticed something wrong or outdated, that's valuable — please help improve this skill for everyone.\n\nDraft a suggested issue title and body based on the conversation, then ask the user to open it at: https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fagents\u002Fissues\u002Fnew\n\nA good issue includes:\n- What the user was trying to do\n- What went wrong (errors, unexpected behavior)\n- What worked — including any workaround found during this conversation\n- Relevant code or config snippets\n",{"name":5,"description":7},"main","8171bc7e0ca3b8defd578a6bb317367c2901983f","agent-plugins\u002Fagents-for-js\u002Fskills\u002Fagents-sdk-typescript-debugging",346,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents","https:\u002F\u002Faka.ms\u002Fagentsdkdocs","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 08:54:12",{"source":9,"skillName":5,"commands":57,"prompt":67,"zipAvailable":68},[58,61,64],{"tool":59,"command":60},"npx","npx skills add microsoft\u002FAgents --skill agents-sdk-typescript-debugging",{"tool":62,"command":63},"bunx","bunx skills add microsoft\u002FAgents --skill agents-sdk-typescript-debugging",{"tool":65,"command":66},"pnpm","pnpm dlx skills add microsoft\u002FAgents --skill agents-sdk-typescript-debugging","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-for-js\u002Fskills\u002Fagents-sdk-typescript-debugging\u002FSKILL.md",true,[],[71,88,106,121,140,153],{"skillNo":72,"name":73,"nameZh":17,"description":74,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":41},"01M6PJCYCYJQDX318SQN3EBF0E","sync-teams-samples-to-agents-sdk","CI instructions for a bounded Teams SDK to Agents SDK sample synchronization using the selected language profile.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fautomation\u002Fteams-sample-sync\u002Fskills\u002Fsync-teams-samples-to-agents-sdk\u002FSKILL.md",[],[32,33,78,40,79,80,81,82,83,84,85,86,87],"sync","sync teams samples to agents sdk","ci","synchronization","instructions","profile","language","sample","for","bounded",{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":41},"01M6PJCFNGCX555YERYQ459JFE","teams-sdk-to-agents-sdk-typescript-migration","Migrate a JavaScript or TypeScript application using the Microsoft Teams SDK App runtime to Microsoft 365 Agents SDK while preserving its Teams behaviors. Use for Teams SDK migrations, including automated sample synchronization; use the separate Bot Framework migration skill for botbuilder applications.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-for-js\u002Fskills\u002Fteams-sdk-to-agents-sdk-typescript-migration\u002FSKILL.md",[],[40,31,32,33,95,96,97,98,99,100,101,85,102,103,81,104,86,36,105,10],"agents sdk typescript","migration","teams sdk to agents sdk typescript migration","microsoft teams","applications","app","runtime","migrations","use","migrate","javascript",{"skillNo":107,"name":108,"nameZh":109,"description":110,"descriptionZh":111,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":112,"categories":113,"keywords":118,"publishedAt":41},"01M69B8QV24JVPXH25EH77X0SZ","teams-app-manifest","Teams 应用清单创建与审核","Create or audit a Microsoft Teams app manifest for an existing Microsoft 365 Agents SDK application by mapping declared intent and source-code evidence to released manifest capabilities. Use when manifest.json is missing, incomplete, or must be checked against implemented Teams features. Does not configure Microsoft Entra, Azure Bot, Developer Portal, or deployment unless separately requested.","为现有的 Microsoft 365 Agents SDK 应用程序创建或审核 Microsoft Teams 应用清单，方法是将声明的意图和源代码证据映射到已发布清单所支持的能力。适用于 manifest.json 缺失、不完整，或需要对照已实现的 Teams 功能进行核查的情况。除非另行要求，否则不配置 Microsoft Entra、Azure Bot、开发者门户（Developer Portal）或部署。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-sdk-common\u002Fskills\u002Fteams-app-manifest\u002FSKILL.md",[114,115],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":116,"categoryName":117,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[40,119,33,36,32,10,38,120],"teams app manifest","deployment",{"skillNo":122,"name":123,"nameZh":124,"description":125,"descriptionZh":126,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":127,"categories":128,"keywords":133,"publishedAt":41},"01M69B8MN62NBY93YTJAQG2Y81","agents-sdk-provision","Agents SDK Azure 资源预配","Use when provisioning Azure resources for a Microsoft Agents SDK application — including creating an Azure Bot Service resource, setting up Entra app registrations, configuring identity credentials (UserManagedIdentity, FederatedCredentials, or ClientSecret), adding a Teams channel, running Bicep deployments for SSO, or setting up OAuth user sign-in connections via az CLI. Trigger even if the user doesn't say \"provision\" — use on requests like \"set up my bot on Azure\", \"deploy my bot\", \"configure Azure for my bot\", or \"get Teams SSO working.\" Applies to all languages (dotnet, Node.js, Python).","在为 Microsoft Agents SDK 应用预配 Azure 资源时使用——包括创建 Azure Bot Service 资源、设置 Entra 应用注册、配置身份凭据（UserManagedIdentity、FederatedCredentials 或 ClientSecret）、添加 Teams 频道、运行 Bicep 部署以实现 SSO，或通过 az CLI 设置 OAuth 用户登录连接。即使用户没有说“预配”也应触发——在诸如“在 Azure 上搭建我的机器人”“部署我的机器人”“为我的机器人配置 Azure”“让 Teams SSO 跑起来”等请求时使用。适用于所有语言（dotnet、Node.js、Python）。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-sdk-common\u002Fskills\u002Fagents-sdk-provision\u002FSKILL.md",[129,132],{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":116,"categoryName":117,"taxonomyType":28,"taxonomyTypeDesc":29},[32,33,134,36,135,136,10,137,138,139,38,40],"agents sdk provision","cli","python","dotnet","identity","deploy",{"skillNo":141,"name":142,"nameZh":143,"description":144,"descriptionZh":145,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":146,"categories":147,"keywords":150,"publishedAt":41},"01M69B8HFZ45NQGWQQD483TWPB","agents-sdk-to-prod","Agents SDK 智能体生产加固","Assess, create, harden, deploy, or review production readiness of Python Microsoft 365 Agents SDK agents and their direct hosting\u002Foperations files. Use only for Agents SDK scenarios, not unrelated application hardening.","评估、创建、加固、部署或审查 Python Microsoft 365 Agents SDK 智能体的生产就绪度，以及其直接的托管\u002F运维文件。仅用于 Agents SDK 场景，不用于无关的应用加固。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-for-python\u002Fskills\u002Fagents-sdk-to-prod\u002FSKILL.md",[148,149],{"categoryNo":130,"categoryName":131,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":116,"categoryName":117,"taxonomyType":28,"taxonomyTypeDesc":29},[151,33,32,10,136,152,139],"agents sdk to prod","review",{"skillNo":154,"name":155,"nameZh":156,"description":157,"descriptionZh":158,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":159,"categories":160,"keywords":167,"publishedAt":41},"01M69B8ENJGC9NPQBZAYAN4706","agents-sdk-python-otel","Agents SDK Python 可观测性配置","Use when adding, configuring, validating, or troubleshooting OpenTelemetry observability for a Microsoft 365 Agents SDK application in Python. Trigger when the user mentions OpenTelemetry, OTel, telemetry, traces, metrics, logs, OTLP, Aspire Dashboard, Application Insights, Azure Monitor, distributed tracing, custom tracers or meters, span sampling, or observing microsoft_agents SDK signals.","用于为 Python 版 Microsoft 365 Agents SDK 应用添加、配置、验证或排查 OpenTelemetry 可观测性。当用户提及 OpenTelemetry、OTel、遥测、traces、metrics、logs、OTLP、Aspire Dashboard、Application Insights、Azure Monitor、分布式追踪、自定义 tracer 或 meter、span 采样，或观测 microsoft_agents SDK 信号时触发。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FAgents\u002Fblob\u002Fmain\u002Fagent-plugins\u002Fagents-for-python\u002Fskills\u002Fagents-sdk-python-otel\u002FSKILL.md",[161,164],{"categoryNo":162,"categoryName":163,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD3B3T8FK02S5JVCZA1M","运维监控与告警",{"categoryNo":165,"categoryName":166,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",[32,136,168,33,169,170,38,171,10,172,173,174,175],"otel","agents sdk python otel","aspire","telemetry","dashboard","distributed","aspire dashboard","monitor"]