modernize

Plan and execute staged Roslyn-based C# code modernization with previews and validation.

Updated Mar 13, 2026
One-click install
npx skills add https://github.com/darylmcd/Roslyn-Backed-MCP --skill modernize-darylmcd
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: modernize
Source: https://github.com/darylmcd/Roslyn-Backed-MCP/tree/main/skills/modernize
Command: npx skills add https://github.com/darylmcd/Roslyn-Backed-MCP --skill modernize-darylmcd

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Translate user modernization goals into a safe, staged workflow that converts legacy C# patterns and APIs into modern equivalents using Roslyn MCP, with preview-then-apply steps and rigorous validation.

Core Features & Use Cases

  • Translate natural-language modernization goals into an ordered, stage-based plan.
  • Execute staged previews, applies, and validations with compile-and-test checks after each stage.
  • Support common modernizations such as file-scoped namespaces, primary constructors, collection expressions, using declarations, and pattern-based refactors across large codebases.

Quick Start

Provide a concrete modernization goal (e.g., migrate to file-scoped namespaces and primary constructors where applicable) to begin the staged workflow.

Frequently Asked Questions about modernize

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I systematically refactor a large C# codebase to use file-scoped namespaces and collection expressions?

You can systematically modernize C# codebases by translating goals into staged Roslyn-based plans, executing preview-then-apply steps for file-scoped namespaces and collection expressions with rigorous compile validation after each stage.

What is the safest way to apply primary constructors and using declarations across a workspace?

The safest way to apply primary constructors and using declarations is through a staged workflow that loads workspaces, discovers symbols, previews changes, and validates compile and test results after applying each modernization stage.

Can I automate safe C# refactoring across large workspaces without breaking compilation?

Yes, you can automate safe C# refactoring at scale. It uses server discovery, workspace loading, and symbol discovery to preview and apply changes, verifying compile and test results rigorously after each stage.

Does Roslyn support staged code modernization for legacy C# patterns?

Yes, Roslyn supports staged code modernization. This Skill leverages Roslyn to translate modernization goals into ordered, primitive-based stages, converting legacy C# patterns into modern equivalents with rigorous validation.

What are the limitations of automating C# modernization with Roslyn for complex refactorings?

The complexity of automating C# modernization lies in ensuring safe refactorings across large workspaces. Limitations are mitigated by breaking goals into ordered stages with preview-then-apply steps and rigorous compile-and-test validation per stage.