dev-perf

Diagnose API latency by analyzing .NET Aspire distributed trace spans.

7|3|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/eriklieben/agentic-dev-workflow --skill dev-perf
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dev-perf
Source: https://github.com/eriklieben/agentic-dev-workflow/tree/main/.claude/skills/dev-perf
Command: npx skills add https://github.com/eriklieben/agentic-dev-workflow --skill dev-perf

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill resolves performance bottlenecks in .NET Aspire environments by identifying inefficient trace patterns, such as N+1 queries and excessive aggregate rehydration, which are often invisible during standard development.

Core Features & Use Cases

  • Trace Analysis: Automatically correlates Aspire distributed traces with specific code paths to pinpoint latency sources.
  • Pattern Recognition: Detects common performance anti-patterns like redundant blob storage reads and inefficient factory iterations.
  • Verification: Provides a structured workflow to verify performance improvements after applying optimizations.

Quick Start

Use the dev-perf skill to analyze the performance of the current API endpoint and identify potential N+1 query patterns.

Frequently Asked Questions about dev-perf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose API latency and N+1 database issues in .NET Aspire?

To diagnose API latency and N+1 database issues in .NET Aspire, you analyze distributed trace spans to pinpoint inefficient query patterns and correlate them with specific code paths. This reveals bottlenecks invisible during standard development.

What causes excessive API latency in distributed .NET backend systems?

Excessive API latency in distributed .NET systems is often caused by performance anti-patterns like N+1 queries, redundant blob storage reads, and inefficient aggregate rehydration. Distributed tracing identifies these specific bottlenecks in your code paths.

Do I need the Aspire CLI to extract and analyze distributed trace spans?

Yes, you need Aspire CLI 13.2 or later to execute trace extraction, span counting, and resource health verification. This environment setup is required to accurately diagnose endpoint latency and identify performance anti-patterns.

How do I detect redundant blob storage reads and inefficient factory iterations?

You detect redundant blob storage reads and inefficient factory iterations by applying pattern recognition to distributed trace spans. This analysis automatically correlates traces with code paths to pinpoint latency sources.

What is the best way to verify performance improvements after optimizing API endpoints?

The best way to verify performance improvements is by following a structured workflow that re-analyzes distributed trace spans after applying optimizations. This confirms the resolution of N+1 queries and validates latency reductions.