Official agent skill

Startup Perf

by microsoft in microsoft/aspire

Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.

OfficialMITAuto-check passed

Install Startup Perf

skills CLI
$ npx skills add microsoft/aspire --skill startup-perf -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install microsoft/aspire startup-perf --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/microsoft/aspire.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/startup-perf .claude/skills/startup-perf && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
startup-perf
GitHub stars
6.3k
Token cost
~1.9k tokens
SKILL.md length
765 words
Files
1
Skills in repo
22
Repo updated
First seen
Licence
MIT

At a glance

Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.

  • SKILL.md covers Current Profiling Model, Prerequisites, Quick Start and Self-Profile Options, plus 4 more sections
  • Calls jq

What it does

Startup Perf is an agent skill from microsoft/aspire, published by the product's own GitHub organization. Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.

Its SKILL.md is about 1.9k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: Aspire is the tool for code-first, extensible, observable dev and deploy. The licence is MIT.

Example prompts

  • “Use the startup-perf skill to measure Aspire startup profiling with CLI self-profile capture and dashboard export traces”
  • “/startup-perf”

What it can do on your machine

Read from SKILL.md and the folder at commit a3f44d2. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • jq

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Startup Perf loads about 1.9k tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 765 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~1.9k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from microsoft/aspire at commit a3f44d2, republished under its MIT licence (© microsoft). 765 words, ~1,882 tokens.

Download SKILL.mdSave it as .claude/skills/startup-perf/SKILL.md (or your agent's skills folder).
name
startup-perf
description
Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.

Aspire Startup Profiling with OTEL

Use this skill when measuring, validating, or investigating Aspire startup performance with the CLI self-profile capture flow.

The workflow is the hidden CLI flag --capture-profile. It starts a private standalone dashboard collector, enables profiling-only OTEL instrumentation for the command and child AppHost processes, exports a trace archive, and then exits with the wrapped command's exit code.

Current Profiling Model

Profiling is opt-in and separate from reported telemetry:

  • Enable profiling with ASPIRE_PROFILING_ENABLED=true or 1.
  • CLI profiling spans use the Aspire.Cli.Profiling ActivitySource.
  • Hosting profiling spans use the Aspire.Hosting.Profiling ActivitySource.
  • DCP startup spans use the dcp.startup instrumentation scope when DCP emits startup telemetry.
  • Reported telemetry must not carry profiling session IDs, high-cardinality profiling tags, or profiling spans.

Prerequisites

Use an Aspire CLI build that contains --capture-profile. From a repo checkout:

bash
./restore.sh
./dotnet.sh build src/Aspire.Cli/Aspire.Cli.csproj /p:SkipNativeBuild=true

Repo-local development builds discover the built managed dashboard from artifacts/bin/Aspire.Managed when ASPIRE_REPO_ROOT points at the checkout. Installed or bundled CLIs discover the dashboard from the bundle. Use ASPIRE_DASHBOARD_PATH / ASPIRE_MANAGED_PATH when profiling with a custom dashboard build.

Quick Start

Capture startup for an AppHost and exit automatically after startup:

bash
./dotnet.sh exec artifacts/bin/Aspire.Cli/Debug/net11.0/aspire.dll run \
  --project tests/TestingAppHost1/TestingAppHost1.AppHost/TestingAppHost1.AppHost.csproj \
  --capture-profile \
  --capture-profile-output artifacts/tmp/startup-profile/profile.zip \
  --non-interactive

Capture any other Aspire command:

bash
aspire ls \
  --capture-profile \
  --capture-profile-output artifacts/tmp/startup-profile/ls-profile.zip \
  --non-interactive

If --capture-profile-output is omitted, the CLI writes aspire-profile-<timestamp>-<session>.zip under the current working directory. For long-lived run and start, the CLI exits automatically after startup and waits for profiling data to settle before writing the export.

Self-Profile Options

OptionDescription
--capture-profileHidden recursive root option that enables self-profile capture for any Aspire command.
--capture-profile-output PATHOutput zip path. Relative paths are rooted at the current working directory.
--capture-profile-delay SECONDSOptional warmup delay before stopping long-lived run/start commands. Defaults to 5 seconds so AppHost-side spans have time to flush before shutdown. Increase it when you intentionally want additional post-start resource activity in the capture.

Output Artifacts

The capture writes a dashboard export zip containing:

PathDescription
traces/profile.jsonOTLP JSON trace export from the private dashboard collector.

Inspect the export:

bash
unzip -l artifacts/tmp/startup-profile/profile.zip
tmpdir="$(mktemp -d)"
unzip -q artifacts/tmp/startup-profile/profile.zip -d "$tmpdir"
jq -r '.resourceSpans[]?.scopeSpans[]?.scope.name' "$tmpdir/traces/profile.json" | sort | uniq -c
jq -r '.resourceSpans[]?.scopeSpans[]?.spans[]?.name' "$tmpdir/traces/profile.json" | sort | uniq -c

Expected startup captures include:

  • Aspire.Cli.Profiling spans such as aspire/cli/command, aspire/cli/run, dotnet process spans, backchannel connect spans, and dashboard URL retrieval.
  • Aspire.Hosting.Profiling spans such as DCP model work, resource creation, resource wait, and DCP resource observation.
  • dcp.startup spans when the DCP process emits startup telemetry and the scenario is configured to require them.

Comparing Before/After Changes

Prefer separate worktrees for baseline and feature measurements so branch switching does not disturb a dirty worktree.

bash
# Baseline worktree
aspire run --project path/to/AppHost.csproj \
  --capture-profile \
  --capture-profile-output artifacts/tmp/startup-profile-baseline/profile.zip \
  --non-interactive

# Feature worktree
aspire run --project path/to/AppHost.csproj \
  --capture-profile \
  --capture-profile-output artifacts/tmp/startup-profile-feature/profile.zip \
  --non-interactive

Compare traces/profile.json span names, durations, operation IDs, process IDs, events, and trace correlation. For statistically meaningful wall-clock comparisons, run multiple iterations manually and keep the environment stable. The self-profile capture flow produces artifacts; it is not a statistical benchmark runner by itself.

Parallel captures are supported because each --capture-profile process allocates its own collector ports and profiling session ID. Always use distinct --capture-profile-output paths. If the profiled AppHost launch profile pins dashboard, resource-service, or application ports, those AppHost ports can still conflict across parallel worktrees; use an isolated/randomized profile or adjust the AppHost ports for parallel runs.

Show full SKILL.md (284 more words)Show less

Instrumentation Guidance

Keep profiling APIs coarse-grained and profiling-specific:

  • Centralize raw Activity, activity names, tag names, and event names in the profiling telemetry type for the area (Aspire.Cli.Profiling or Aspire.Hosting.Profiling).
  • Do not expose one public/internal method per tag. Prefer operation/result-level methods that accept the data for a phase and set multiple tags/events internally.
  • Good API shape examples: start a dotnet process span with command, project, working directory, and options; record a process start result with started/process ID; record process completion with exit code and output counts; start a Kubernetes API span with operation/resource type; record retry details as one event method.
  • Call sites should describe the operation being profiled, not know tag/event names.
  • Do not add profiling tags/events to Activity.Current unless the current activity is known to be a profiling activity or profiling has explicitly wrapped it.
  • Keep high-cardinality data out of reported telemetry.

Common Issues

SymptomCauseFix
The CLI bundle layout was found, but the dashboard binary (aspire-managed) is missing.The CLI could not find a bundled, repo-local, or override dashboard binary.Build the repo-local CLI, use an installed/bundled CLI, set ASPIRE_REPO_ROOT to the checkout, or set ASPIRE_DASHBOARD_PATH / ASPIRE_MANAGED_PATH to a custom managed dashboard build.
Self-profile export contains CLI spans but not Hosting spansThe AppHost did not run through a profiled startup path, or Hosting telemetry did not reach the collector.Confirm aspire run or aspire start launched the expected AppHost and inspect traces/profile.json for Aspire.Hosting.Profiling.
No exported spans contained aspire.profiling.session_idProfiling was not enabled or telemetry was not exported.Confirm --capture-profile was parsed before -- and inspect traces/profile.json.
No profiling session contained correlated... spansCLI/Hosting/DCP spans did not land in one correlated trace.Inspect traces/profile.json for missing scopes or broken parent/trace IDs.

© microsoft, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/startup-perf of microsoft/aspire.

Open the folder on GitHubat commit a3f44d2

Compare with similar skills

Startup Perf next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Startup Perf compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Startup Perf this skillmicrosoft/aspire6.3k—~1.9kAutomated safety check: PassMIT
Measure Startup RequestsTriliumNext/Trilium38k—~1.5kAutomated safety check: PassAGPL-3.0
Profile Capturemozilla-firefox/firefox13k—~714Automated safety check: PassCustom licence
Perf Profilercomposio-community/awesome-claude-plugins1.9k—~182Automated safety check: PassNone
PlotJuggler 4 Perf ProfilingPlotJuggler/PlotJuggler6.2k—~1.6kAutomated safety check: NotesMPL-2.0
Profiler Capture FrameIvanMurzak/Unity-MCP4.4k1 repos~839Automated safety check: PassApache-2.0

Similar skills

  • Measure Startup Requests

    TriliumNext/Trilium

    A skill your agent uses when measuring what the Trilium client loads at startup — "what loads at boot?", "did this change reduce the startup bundle?", "is <dependency lazy?", or any before/after…

    38k GitHub stars~1.5k tokensUpdated today
    Testing & QAAuto-check passed
  • Profile Capture

    mozilla-firefox/firefox

    Record a Firefox performance profile with the firefox-devtools MCP.

    13k GitHub stars~714 tokensUpdated today
    Testing & QAAuto-check passed
  • Perf Profiler

    composio-community/awesome-claude-plugins

    A skill your agent uses when profiling CPU/memory hot paths, generating flame graphs, or capturing JFR/perf evidence.

    1.9k GitHub stars~182 tokensUpdated 2 mo ago
    DevelopmentAuto-check passed
  • PlotJuggler 4 Perf Profiling

    PlotJuggler/PlotJuggler

    Guides CPU profiling of PlotJuggler 4 on Linux with perf: count first, record cheaply with LBR, then read per-thread, flat, flamegraph or time-window views.

    6.2k GitHub stars~1.6k tokensUpdated 6 days ago
    DevelopmentAuto-check: notes
  • Profiler Capture Frame

    IvanMurzak/Unity-MCP

    Capture the current frame's timing info (delta time, FPS, frame counts, runtime).

    4.4k GitHub starsUsed in 1 repo~839 tokens
    Game DevelopmentAuto-check passed
  • Game Performance Profiler

    Donchitos/Claude-Code-Game-Studios

    Finds performance bottlenecks, measures them against frame, draw-call and memory budgets, and ranks the optimization recommendations.

    26k GitHub stars~2.5k tokensUpdated 8 days ago
    Game DevelopmentAuto-check: notes

More from microsoft/aspire

All 22 skills in this repo
  • Azdo Internal

    microsoft/aspire

    Official

    A skill your agent uses when asked to trigger or inspect Aspire internal Azure DevOps builds, source-index runs, or release validation on dnceng/internal; push to the internal mirror; download build…

    6.3k GitHub stars~4.5k tokensUpdated today
    Auto-check passed
  • Backport PR

    microsoft/aspire

    Official

    Backports a merged PR to a release branch by triggering the /backport bot, waiting for the bot-created PR, and filling in the shiproom template (Customer Impact, Testing, Risk, Regression?).

    6.3k GitHub stars~4.2k tokensUpdated today
    Auto-check passed
  • Bump Aspire Version

    microsoft/aspire

    Official

    Bumps the Aspire repository product version in eng/Versions.props using previous version-bump commits as guidance.

    6.3k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • CI Test Failures

    microsoft/aspire

    Official

    Guide for diagnosing GitHub Actions test failures, extracting failed tests from runs, and creating or updating failing-test issues.

    6.3k GitHub stars~4.7k tokensUpdated today
    Auto-check passed
  • Create PR

    microsoft/aspire

    Official

    Create a pull request using the repository PR template. An agent skill from microsoft/aspire.

    6.3k GitHub stars~4k tokensUpdated today
    Auto-check passed
  • Dashboard Testing

    microsoft/aspire

    Official

    Guide for writing tests for the Aspire Dashboard. An agent skill from microsoft/aspire.

    6.3k GitHub stars~4.7k tokensUpdated today
    Auto-check passed

Questions about Startup Perf

What does Startup Perf do?

Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces. Startup Perf is an agent skill from microsoft/aspire, published by the product's own GitHub organization. Measures Aspire startup profiling with CLI self-profile capture and dashboard export traces.

How do I install Startup Perf in Claude Code?

Run `npx skills add microsoft/aspire --skill startup-perf -a claude-code`. Or copy the skill folder (.agents/skills/startup-perf in microsoft/aspire) into .claude/skills/startup-perf in your project. Claude Code loads it when a task matches its description.

How do I install Startup Perf in Codex?

Run `npx skills add microsoft/aspire --skill startup-perf -a codex`. Or copy the skill folder (.agents/skills/startup-perf in microsoft/aspire) into .agents/skills/startup-perf in your project. Codex loads it when a task matches its description.

Can I use Startup Perf in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add microsoft/aspire --skill startup-perf -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/startup-perf, .gemini/skills/startup-perf, .github/skills/startup-perf and .opencode/skills/startup-perf in your project.

What does Startup Perf need to run?

Going by SKILL.md and its folder, Startup Perf needs the command-line tools its instructions call (jq).

Does Startup Perf access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Startup Perf safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Startup Perf use?

Startup Perf is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Startup Perf use?

About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Startup Perf?

Skills that share tags, products or a category with Startup Perf: Measure Startup Requests (TriliumNext/Trilium, 38k stars), Profile Capture (mozilla-firefox/firefox, 13k stars), Perf Profiler (composio-community/awesome-claude-plugins, 1.9k stars) and PlotJuggler 4 Perf Profiling (PlotJuggler/PlotJuggler, 6.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Startup Perf?

microsoft (a GitHub organization, an official publisher) maintains it in microsoft/aspire, which has 6,348 GitHub stars. The repository holds 22 skills in this directory. The repository was last updated on October 8, 2026.

Source: microsoft/aspire on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.