microsoft/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.
npx skills add https://github.com/microsoft/code-optimizations-skills --skill download-snapshot
This 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.
az login)Follow the Standard Skill Preamble to check for existing investigation context and gather inputs.
In addition to the standard App ID, this skill requires:
P7D).Run the script in get-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.
Run the script in list-snapshots.md to call the ingested artifacts endpoint and list available snapshot dumps.
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.
Present the results to the user with:
triggerTime — when the snapshot was captured)Let the user pick which snapshot to download. If there's only one result, confirm it with the user before proceeding.
Run the script in download-snapshot-file.md with the selected artifactId. The script:
GET /artifacts/{artifactId})After downloading, tell the user:
See snapshot-file-info.md for information about snapshot file formats and how to open them.
az account showaz loginaz account set --subscription <subscription-id>az account get-access-token --resource "api://dataplane.diagnosticservices.azure.com"P30D.Take microsoft/download-snapshot from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.