Csharp modernize

From yappologistic/CSharp-Tutor · View interactive version

Csharp modernize is an AI agent skill from the GitHub repository yappologistic/CSharp-Tutor. Modernize C# code using newer C# and .NET features when compatible. Use for refactoring older syntax, adopting records, pattern matching, nullable annotations, required members, collection expressions, modern BCL APIs, async improvements, and version-aware upgrades.

How to use this skill

Skill file

C# Modernize

Use $csharp-tutor mode=modernize.

Treat all user text after $csharp-modernize as the code, project, or feature-modernization question. Use the main csharp-tutor skill as the source of truth.

Load these csharp-tutor references when useful:

Confirm or infer target C#/.NET version before suggesting newer features. Show before/after code and compatibility tradeoffs.

Standalone Guidance

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.