perf

Audit Granit .NET modules for performance bottlenecks and suggest optimizations.

18|4|Updated Mar 13, 2026
One-click install
npx skills add https://github.com/granit-fx/granit-dotnet --skill perf-granit-fx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: perf
Source: https://github.com/granit-fx/granit-dotnet/tree/main/.claude/skills/perf
Command: npx skills add https://github.com/granit-fx/granit-dotnet --skill perf-granit-fx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

The perf skill helps identify scalability bottlenecks in Granit .NET modules and suggests optimizations for improving performance and scalability.

Core Features & Use Cases

  • Static Audit: Analyze code for common performance issues without running a process.
  • Dynamic Profiling: Profile running processes using dotnet-trace, dotnet-counters, and BenchmarkDotNet.
  • Multi-Provider Support: Works with PostgreSQL, SQL Server, and SQLite.
  • Use Cases: Pre-load test, during scaling, or when an endpoint/job is slow.

Quick Start

/perf all --scope efcore --provider postgres

Frequently Asked Questions about perf

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

FAQPage Schema
How do I audit EF Core query patterns for performance bottlenecks in .NET?

To audit EF Core performance bottlenecks, run a static code analysis targeting query patterns, allocations, and async operations to identify scalability issues and suggest optimizations for your .NET modules.

What's the best way to profile a slow .NET endpoint before load testing?

The best way to profile a slow .NET endpoint is to use dynamic profiling tools like dotnet-trace, dotnet-counters, and BenchmarkDotNet to capture runtime metrics and pinpoint bottlenecks before scaling.

Does this performance audit support PostgreSQL and SQL Server databases?

Yes, the performance audit supports PostgreSQL, SQL Server, and SQLite database providers, allowing you to analyze EF Core query patterns and data access scalability across different environments.

How do I check my .NET application for horizontal scaling and caching issues?

You can check for horizontal scaling and caching issues by executing a comprehensive performance audit that analyzes runtime behavior, HTTP messaging, and caching strategies to suggest targeted optimizations.

Can I analyze .NET startup performance without running the application?

Yes, you can analyze startup performance without running the application by using the static audit feature, which scans your codebase for common performance issues related to startup, async operations, and allocations.

Do I need access to profiling tools to optimize .NET module performance?

Yes, you need access to profiling tools like dotnet-trace and BenchmarkDotNet for dynamic profiling, although you can perform static code audits to identify basic allocation and EF Core query issues without executing.