C# Refactor
Use $csharp-tutor mode=refactor.
Treat all user text after $csharp-refactor as the code or design problem to refactor. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/code-smell-to-refactor.mdreferences/review-checklist.mdreferences/testing-guidance.mdreferences/learner-levels.mdreferences/answer-quality-rules.md
Preserve behavior unless the user requests behavior changes. Prefer simple, idiomatic C# before adding abstractions or patterns.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete refactor decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the refactor concern.
- Minimal example:
var total = CalculateSubtotal(items) + CalculateTax(items);