[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69B9BR3GNNW2VTNA8VCJ0CR":3,"skill-same:01M69B9BR3GNNW2VTNA8VCJ0CR":78},{"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":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":17,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M69B9BR3GNNW2VTNA8VCJ0CR","download-snapshot","调试快照文件下载","Download a snapshot dump file from Application Insights Snapshot Debugger. Use this when asked to download, save, or export a snapshot or .dmp file for offline debugging.","从 Application Insights Snapshot Debugger 下载快照转储（snapshot dump）文件。当需要下载、保存或导出快照或 .dmp 文件进行离线调试时使用此技能。","microsoft\u002Fcode-optimizations-skills","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69B946558R676VBQ1AFQVBM",5,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-snapshot\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],"download snapshot","debugging","2026-11-10 10:12:30",false,"---\nname: download-snapshot\ncategory: investigating\ndescription: Download a snapshot dump file from Application Insights Snapshot Debugger. Use this when asked to download, save, or export a snapshot or .dmp file for offline debugging.\n---\n\n# Download Snapshot\n\nThis skill downloads a snapshot dump artifact from the Application Insights Snapshot Debugger dataplane API. The downloaded file can be opened in Visual Studio, WinDbg, or `dotnet-dump` for offline exception analysis.\n\n## Prerequisites\n\n- The user must be logged in to Azure CLI (`az login`)\n- The user must provide an Application Insights **app ID** (GUID) or **resource ID**\n\n## Steps\n\n### 1–2. Check investigation notes and gather inputs\n\nFollow the [Standard Skill Preamble](..\u002Fshared\u002Fstandard-skill-preamble.md) to check for existing investigation context and gather inputs.\n\nIn addition to the standard App ID, this skill requires:\n- **Time range** (optional): How far back to look for snapshots. Defaults to 7 days (`P7D`).\n- **Output path** (optional): Where to save the downloaded file. Defaults to the current directory.\n\n### 3. Acquire an access token\n\nRun the script in [get-access-token.md](..\u002Fshared\u002Fget-access-token.md) to acquire a Bearer token for the dataplane. See the **token freshness and session scoping** guidance in that document — re-acquire the token in the same command block as each API call.\n\n### 4. List available snapshots\n\nRun the script in [list-snapshots.md](scripts\u002Flist-snapshots.md) to call the ingested artifacts endpoint and list available snapshot dumps.\n\n**Display only the 10 most recent snapshots by default.** If more snapshots exist, tell the user the total count and offer to show more. The API can return many snapshots for active applications, which produces overwhelming output.\n\nPresent the results to the user with:\n- Timestamp (`triggerTime` — when the snapshot was captured)\n- Role name\n- Role instance (machine\u002Fcontainer name)\n- Artifact ID\n\nLet the user pick which snapshot to download. If there's only one result, confirm it with the user before proceeding.\n\n### 5. Download the selected snapshot\n\nRun the script in [download-snapshot-file.md](scripts\u002Fdownload-snapshot-file.md) with the selected `artifactId`. The script:\n1. Calls the artifact download endpoint (`GET \u002Fartifacts\u002F{artifactId}`)\n2. Follows the 302 redirect to the SAS-protected blob URL\n3. Downloads the snapshot file to the specified output path\n\n### 6. Present the result\n\nAfter downloading, tell the user:\n- Where the file was saved\n- The file size\n- How to open it — see [snapshot-file-info.md](references\u002Fsnapshot-file-info.md) for guidance on tools and formats\n\n## Response format\n\nSee [snapshot-file-info.md](references\u002Fsnapshot-file-info.md) for information about snapshot file formats and how to open them.\n\n## Troubleshooting\n\n### 401 Unauthorized\n\n1. Verify the user is logged in: `az account show`\n2. Re-authenticate: `az login`\n3. Ensure the correct subscription is selected: `az account set --subscription \u003Csubscription-id>`\n4. Try acquiring the token manually: `az account get-access-token --resource \"api:\u002F\u002Fdataplane.diagnosticservices.azure.com\"`\n\n### Empty snapshot list\n\n1. **Check the time range** — snapshots may have been captured outside the default 7-day window. Try `P30D`.\n2. **Verify the App ID** — ensure it matches the Application Insights resource with Snapshot Debugger enabled.\n3. **Confirm Snapshot Debugger is enabled** — the feature must be turned on in the Application Insights resource. Check the Azure portal under Application Insights → Snapshot Debugger.\n\n### 404 Not Found during download\n\n1. **Expired snapshot** — snapshots have a retention period. Very old snapshots may have been purged from storage.\n2. **Wrong artifact ID** — verify the artifact ID matches a snapshot from the listing.\n3. **Try again** — transient storage issues can cause temporary 404s. Wait a moment and retry.\n","# Download Snapshot\n\nThis skill downloads a snapshot dump artifact from the Application Insights Snapshot Debugger dataplane API. The downloaded file can be opened in Visual Studio, WinDbg, or `dotnet-dump` for offline exception analysis.\n\n## Prerequisites\n\n- The user must be logged in to Azure CLI (`az login`)\n- The user must provide an Application Insights **app ID** (GUID) or **resource ID**\n\n## Steps\n\n### 1–2. Check investigation notes and gather inputs\n\nFollow the [Standard Skill Preamble](..\u002Fshared\u002Fstandard-skill-preamble.md) to check for existing investigation context and gather inputs.\n\nIn addition to the standard App ID, this skill requires:\n- **Time range** (optional): How far back to look for snapshots. Defaults to 7 days (`P7D`).\n- **Output path** (optional): Where to save the downloaded file. Defaults to the current directory.\n\n### 3. Acquire an access token\n\nRun the script in [get-access-token.md](..\u002Fshared\u002Fget-access-token.md) to acquire a Bearer token for the dataplane. See the **token freshness and session scoping** guidance in that document — re-acquire the token in the same command block as each API call.\n\n### 4. List available snapshots\n\nRun the script in [list-snapshots.md](scripts\u002Flist-snapshots.md) to call the ingested artifacts endpoint and list available snapshot dumps.\n\n**Display only the 10 most recent snapshots by default.** If more snapshots exist, tell the user the total count and offer to show more. The API can return many snapshots for active applications, which produces overwhelming output.\n\nPresent the results to the user with:\n- Timestamp (`triggerTime` — when the snapshot was captured)\n- Role name\n- Role instance (machine\u002Fcontainer name)\n- Artifact ID\n\nLet the user pick which snapshot to download. If there's only one result, confirm it with the user before proceeding.\n\n### 5. Download the selected snapshot\n\nRun the script in [download-snapshot-file.md](scripts\u002Fdownload-snapshot-file.md) with the selected `artifactId`. The script:\n1. Calls the artifact download endpoint (`GET \u002Fartifacts\u002F{artifactId}`)\n2. Follows the 302 redirect to the SAS-protected blob URL\n3. Downloads the snapshot file to the specified output path\n\n### 6. Present the result\n\nAfter downloading, tell the user:\n- Where the file was saved\n- The file size\n- How to open it — see [snapshot-file-info.md](references\u002Fsnapshot-file-info.md) for guidance on tools and formats\n\n## Response format\n\nSee [snapshot-file-info.md](references\u002Fsnapshot-file-info.md) for information about snapshot file formats and how to open them.\n\n## Troubleshooting\n\n### 401 Unauthorized\n\n1. Verify the user is logged in: `az account show`\n2. Re-authenticate: `az login`\n3. Ensure the correct subscription is selected: `az account set --subscription \u003Csubscription-id>`\n4. Try acquiring the token manually: `az account get-access-token --resource \"api:\u002F\u002Fdataplane.diagnosticservices.azure.com\"`\n\n### Empty snapshot list\n\n1. **Check the time range** — snapshots may have been captured outside the default 7-day window. Try `P30D`.\n2. **Verify the App ID** — ensure it matches the Application Insights resource with Snapshot Debugger enabled.\n3. **Confirm Snapshot Debugger is enabled** — the feature must be turned on in the Application Insights resource. Check the Azure portal under Application Insights → Snapshot Debugger.\n\n### 404 Not Found during download\n\n1. **Expired snapshot** — snapshots have a retention period. Very old snapshots may have been purged from storage.\n2. **Wrong artifact ID** — verify the artifact ID matches a snapshot from the listing.\n3. **Try again** — transient storage issues can cause temporary 404s. Wait a moment and retry.\n",{"name":5,"category":38,"description":7},"investigating","main","1408c23355d5bcd576aa09a262d3617408a39ff1","skills\u002Fdownload-snapshot",4,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-06-18 06:39:50",{"source":9,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add microsoft\u002Fcode-optimizations-skills --skill download-snapshot",{"tool":54,"command":55},"bunx","bunx skills add microsoft\u002Fcode-optimizations-skills --skill download-snapshot",{"tool":57,"command":58},"pnpm","pnpm dlx skills add microsoft\u002Fcode-optimizations-skills --skill download-snapshot","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-snapshot\u002FSKILL.md",true,[62,68,74],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fsnapshot-file-info.md","REFERENCE","参考文档",2367,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-snapshot\u002Freferences\u002Fsnapshot-file-info.md",{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fdownload-snapshot-file.md","SCRIPT","脚本",2324,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-snapshot\u002Fscripts\u002Fdownload-snapshot-file.md",{"path":75,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Flist-snapshots.md",2958,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fdownload-snapshot\u002Fscripts\u002Flist-snapshots.md",[79,93,106,120,132,145],{"skillNo":80,"name":81,"nameZh":82,"description":83,"descriptionZh":84,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":89,"publishedAt":33},"01M69B9PQSRYEQ57P4DH390F4E","perf-optimization","性能瓶颈分析与优化","Guide for analyzing performance issues based on profiler and code optimizations, including CPU, latency, and throughput. Use this when asked to investigate performance bottlenecks or optimize application performance.","基于性能分析器（profiler）和代码优化来分析性能问题的指南，涵盖 CPU、延迟和吞吐量。当被要求排查性能瓶颈或优化应用性能时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fperf-optimization\u002FSKILL.md",[87,88],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[90,91,92],"perf","perf optimization","performance",{"skillNo":94,"name":95,"nameZh":96,"description":97,"descriptionZh":98,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":103,"publishedAt":33},"01M69B9M9F4CRY6M658D9G6M3J","get-snapshot-debug-info","快照调试器异常信息获取","Fetch exception details, call stack, and variable values from an Application Insights Snapshot Debugger snapshot. Use this when asked to inspect a snapshot, view exception info, debug an exception, or see variable values from a crash.","从 Application Insights Snapshot Debugger 快照中获取异常详情、调用堆栈和变量值。当被要求检查快照、查看异常信息、调试异常或查看崩溃时的变量值时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fget-snapshot-debug-info\u002FSKILL.md",[101,102],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[104,105],"debug","get snapshot debug info",{"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":33},"01M69B9JD8S30MKR1NSYYTYDWY","get-profile-hotpath","应用洞察 Profiler 热点路径分析","Fetch and display the hot path from an Application Insights Profiler trace. Use this when asked to get the profiler hot path, call tree, or trace analysis for an App Insights resource.","从 Application Insights Profiler 跟踪中获取并显示热点路径。当被要求获取 App Insights 资源的热点路径、调用树或跟踪分析时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fget-profile-hotpath\u002FSKILL.md",[114,117],{"categoryNo":115,"categoryName":116,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[119],"get profile hotpath",{"skillNo":121,"name":122,"nameZh":123,"description":124,"descriptionZh":125,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":126,"categories":127,"keywords":130,"publishedAt":33},"01M69B9GXTJCY8PWGB5XX4AMBW","error-exploration","Application Insights 错误排查","Explore errors in Application Insights — exceptions, failed requests, and failed dependencies. Use this when asked to find errors, investigate failures, identify reliability issues, or recommend which errors to fix.","在 Application Insights 中排查错误——异常、失败的请求以及失败的依赖项。当用户要求查找错误、调查故障、识别可靠性问题，或推荐应优先修复的错误时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Ferror-exploration\u002FSKILL.md",[128,129],{"categoryNo":115,"categoryName":116,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[131],"error exploration",{"skillNo":133,"name":134,"nameZh":135,"description":136,"descriptionZh":137,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":138,"categories":139,"keywords":142,"publishedAt":33},"01M69B9FA96KZ9KH398YZM9Z68","enable-snapshot-debugger","启用 Application Insights 快照调试器","Guide users through enabling the Application Insights Snapshot Debugger for .NET on their platform. Use this when asked to enable the snapshot debugger, set up snapshot collection, or when snapshot data is missing.","指导用户在其平台上为 .NET 启用 Application Insights Snapshot Debugger。当用户要求启用快照调试器、设置快照收集，或快照数据缺失时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fenable-snapshot-debugger\u002FSKILL.md",[140,141],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},[143,144],"enable snapshot debugger","setup",{"skillNo":146,"name":147,"nameZh":148,"description":149,"descriptionZh":150,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":151,"categories":152,"keywords":157,"publishedAt":33},"01M69B9D7V4VPRG1BNVS7GF9GF","enable-profiler","启用 Application Insights 性能分析器","Guide users through enabling the Application Insights Profiler for .NET on their platform. Use this when asked to enable the profiler, set up profiling, or when profiler data is missing.","指导用户在其平台上为 .NET 启用 Application Insights Profiler。当用户要求启用分析器、设置性能分析，或分析器数据缺失时使用此技能。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fcode-optimizations-skills\u002Fblob\u002Fmain\u002Fskills\u002Fenable-profiler\u002FSKILL.md",[153,156],{"categoryNo":154,"categoryName":155,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQGD3B3T8FK02S5JVCZA1M","运维监控与告警",{"categoryNo":115,"categoryName":116,"taxonomyType":23,"taxonomyTypeDesc":24},[158,144],"enable profiler"]