analyzing-dotnet-performance

Scan .NET code for performance anti-patterns and classify issues by severity.

5.1k|377|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/dotnet/skills --skill analyzing-dotnet-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: analyzing-dotnet-performance
Source: https://github.com/dotnet/skills/tree/main/plugins/dotnet-diag/skills/analyzing-dotnet-performance
Command: npx skills add https://github.com/dotnet/skills --skill analyzing-dotnet-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill identifies and helps you fix common performance anti-patterns in .NET code, leading to faster execution and reduced resource consumption.

Core Features & Use Cases

  • Pattern Detection: Scans for ~50 performance anti-patterns across async, memory, strings, collections, LINQ, regex, serialization, and I/O.
  • Prioritized Findings: Classifies issues by severity (Critical, Moderate, Info) with concrete, actionable fixes.
  • Use Case: You've identified a critical code path in your .NET application that is running slower than expected. Use this Skill to pinpoint specific API usage patterns or allocation strategies that are causing the slowdown and get recommendations for optimization.

Quick Start

Analyze the provided C# code for performance anti-patterns.

Frequently Asked Questions about analyzing-dotnet-performance

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

FAQPage Schema
How do I find performance anti-patterns in .NET code?

Scanning .NET code for performance anti-patterns detects approximately 50 issues across async, memory, strings, collections, LINQ, regex, serialization, and I/O to pinpoint API usage causing slowdowns.

What is the best way to audit .NET memory allocations on a hot path?

Auditing .NET memory allocations on a hot path requires scanning critical code paths for allocation-heavy patterns, providing tiered severity classification and actionable fixes to optimize execution speed.

Can I use this to detect inefficient LINQ and string operations in C#?

Yes, you can detect inefficient LINQ and string operations in C# by scanning the codebase for specific performance anti-patterns within these categories, receiving prioritized findings with concrete optimization recommendations.

Does .NET performance analysis distinguish between critical and moderate issues?

.NET performance analysis distinguishes between critical, moderate, and informational issues by classifying detected anti-patterns into tiered severity levels, ensuring you receive concrete, actionable fixes prioritized by impact.

When do I need to scan .NET code for async performance issues?

You need to scan .NET code for async performance issues when a critical code path runs slower than expected, allowing you to identify and fix specific asynchronous API usage patterns causing resource consumption.