mcpbeat Sign in

Download Snapshot Agent Skill

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.

3k tokens
context cost
the whole folder, loaded on every use
4
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
3
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/microsoft/code-optimizations-skills --skill download-snapshot

What comes with it

7 649 bytes besides the instruction
references/snapshot-file-info.md
scripts/download-snapshot-file.md
scripts/list-snapshots.md

The instruction itself

13 sections, as written by the author

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.

Prerequisites

  • The user must be logged in to Azure CLI (az login)
  • The user must provide an Application Insights app ID (GUID) or resource ID

Steps

1–2. Check investigation notes and gather inputs

Follow the Standard Skill Preamble to check for existing investigation context and gather inputs.

In addition to the standard App ID, this skill requires:

  • Time range (optional): How far back to look for snapshots. Defaults to 7 days (P7D).
  • Output path (optional): Where to save the downloaded file. Defaults to the current directory.

3. Acquire an access token

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.

4. List available snapshots

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:

  • Timestamp (triggerTime — when the snapshot was captured)
  • Role name
  • Role instance (machine/container name)
  • Artifact ID

Let the user pick which snapshot to download. If there's only one result, confirm it with the user before proceeding.

5. Download the selected snapshot

Run the script in download-snapshot-file.md with the selected artifactId. The script:

  • Calls the artifact download endpoint (GET /artifacts/{artifactId})
  • Follows the 302 redirect to the SAS-protected blob URL
  • Downloads the snapshot file to the specified output path

6. Present the result

After downloading, tell the user:

  • Where the file was saved
  • The file size
  • How to open it — see snapshot-file-info.md for guidance on tools and formats

Response format

See snapshot-file-info.md for information about snapshot file formats and how to open them.

Troubleshooting

401 Unauthorized

  • Verify the user is logged in: az account show
  • Re-authenticate: az login
  • Ensure the correct subscription is selected: az account set --subscription <subscription-id>
  • Try acquiring the token manually: az account get-access-token --resource "api://dataplane.diagnosticservices.azure.com"

Empty snapshot list

  • Check the time range — snapshots may have been captured outside the default 7-day window. Try P30D.
  • Verify the App ID — ensure it matches the Application Insights resource with Snapshot Debugger enabled.
  • 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.

404 Not Found during download

  • Expired snapshot — snapshots have a retention period. Very old snapshots may have been purged from storage.
  • Wrong artifact ID — verify the artifact ID matches a snapshot from the listing.
  • Try again — transient storage issues can cause temporary 404s. Wait a moment and retry.

Other skills for the same job

different authors, same section of the catalogue
Protocolsio Integration
by christophacham
×4

Integration with protocols.io API for managing scientific protocols. This skill should be used when working with protocols.io to search, create, update, or publish protocols; manage protocol steps and materials; handle discussions and comments; organize workspaces; upload and manage files; or integrate protocols.io functionality into workflows. Applicable for protocol discovery, collaborative protocol development, experiment tracking, lab protocol management, and scientific documentation.

16k tokens
Tailored Resume Generator
by frostant
×4

Analyzes job descriptions and generates tailored resumes that highlight relevant experience, skills, and achievements to maximize interview chances

3k tokens
Excalidraw Diagram Generator
by github
vendor ×3

Generate Excalidraw diagrams from natural language descriptions. Use when asked to "create a diagram", "make a flowchart", "visualize a process", "draw a system architecture", "create a mind map", or "generate an Excalidraw file". Supports flowcharts, relationship diagrams, mind maps, and system architecture diagrams. Outputs .excalidraw JSON files that can be opened directly in Excalidraw.

36k tokens scripts
Expo Dev Client
by openai
vendor ×3

Build and distribute Expo development clients locally or via TestFlight

961 tokens
Executing Plans
by ZhanlinCui
×3

Use when you have a written implementation plan to execute in a separate session with review checkpoints

542 tokens
Anndata
by christophacham
×3

Data structure for annotated matrices in single-cell analysis. Use when working with .h5ad files or integrating with the scverse ecosystem. This is the data format skill—for analysis workflows use scanpy; for probabilistic models use scvi-tools; for population-scale queries use cellxgene-census.

16k tokens
Benchling Integration
by christophacham
×3

Benchling R&D platform integration. Access registry (DNA, proteins), inventory, ELN entries, workflows via API, build Benchling Apps, query Data Warehouse, for lab data management automation.

14k tokens
Biopython
by christophacham
×3

Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use bioservices.

24k tokens

How to use it

Copy the folder

Take microsoft/download-snapshot from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

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.