What problem does it solve?
C#/.NET codebases accumulate technical debt over time: obsolete APIs, compiler warnings, inconsistent naming, missing tests, and outdated syntax. This Skill provides a systematic workflow for cleaning up, modernizing, and documenting .NET code without breaking existing behavior.
Core Features & Use Cases
- Code Modernization: Upgrades code to modern C# language features supported by .NET 10, including nullable reference types, pattern matching, collection expressions, and primary constructors.
- Quality & Performance Cleanup: Removes unused usings and members, fixes naming violations, resolves compiler warnings, and applies performance patterns like StringBuilder, Span<T>, and correct async/await usage.
- Test Coverage & Documentation: Identifies coverage gaps, adds NUnit tests following the AAA pattern, and writes XML documentation comments for public APIs.
- Use Case: Point the Skill at a legacy Dynamo node library project and have it replace deprecated APIs, resolve all compiler warnings, and add missing unit tests incrementally, validating with test runs after each change.
Quick Start
Ask the assistant to scan this C# project for compiler warnings and obsolete API usage, then modernize the code and add missing NUnit tests incrementally.