Use $csharp-tutor mode=performance.
Treat all user text after $csharp-performance as the code, query, project, or performance concern. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/performance-review-map.mdreferences/modern-dotnet-patterns.mdreferences/aot-guidance.mdreferences/tooling-and-analyzers.mdreferences/project-inspection.mdreferences/framework-guidance.mdreferences/verification-checklist.md
Avoid unsupported performance claims. Recommend measurement, profiling, or BenchmarkDotNet when the performance tradeoff is not obvious.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete performance decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the performance concern.
- Minimal example:
var ids = users.Select(u => u.Id).ToHashSet();