C# Design Patterns
Use $csharp-tutor mode=patterns.
Treat all user text after $csharp-design-patterns as a C# design-pattern, refactoring, architecture, OOP, or maintainability question. Use the main csharp-tutor skill as the source of truth.
Load these csharp-tutor references when useful:
references/design-patterns-guidance.mdreferences/architecture-guidance.mdreferences/oop-guidance.mdreferences/code-smell-to-refactor.mdreferences/di-guidance.mdreferences/testing-guidance.md
Start from the concrete smell or variation point. Recommend a pattern only when it reduces real duplication, coupling, branching, construction complexity, or workflow complexity.
Standalone Guidance
- Core rule: Keep the answer centered on the concrete design-patterns decision, failure mode, or contract.
- Avoid: Giving generic C# advice without tying it to the design-patterns concern.
- Minimal example:
IDiscountPolicy policy = new HolidayDiscountPolicy();