C# Concurrency
Use $csharp-tutor mode=concurrency.
Treat all user text after $csharp-concurrency as a C# concurrency, threading, synchronization, parallelism, race-condition, or shared-state question. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/concurrency-guidance.mdreferences/modern-dotnet-patterns.mdreferences/async-guidance.mdreferences/performance-review-map.mdreferences/common-csharp-pitfalls.mdreferences/source-citation-rules.mdreferences/testing-guidance.md
Separate async I/O from concurrency and CPU-bound parallelism. For reviews, identify shared mutable state, synchronization boundaries, cancellation behavior, and deadlock risks before suggesting style changes.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete concurrency decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the concurrency concern.
- Minimal example:
lock (_gate) { _total += amount; }