dotnet-modern-csharp

Analyze .NET repositories to plan C# 13 and 14 upgrades within LangVersion and TargetFramework constraints.

8|Updated Mar 29, 2026
One-click install
npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-modern-csharp-postpartum-genushyacinthus29
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dotnet-modern-csharp
Source: https://github.com/Postpartum-genushyacinthus29/dotnet-skills/tree/main/skills/dotnet-modern-csharp
Command: npx skills add https://github.com/Postpartum-genushyacinthus29/dotnet-skills --skill dotnet-modern-csharp-postpartum-genushyacinthus29

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write modern, version-aware C# for .NET repositories. Use when deciding language features across C# versions, especially C# 13 and C# 14, while staying compatible with the repo's LangVersion and TargetFramework settings.

Core Features & Use Cases

  • Analyze a repository's LangVersion and TargetFramework to determine safe modern features.
  • Produce concrete deltas including code changes, docs, tests, and CI notes to upgrade or modernize safely.
  • Provide artifact-ready outputs (plan, validation steps) for review and handoff.

Quick Start

Run the Workflow through the Ralph Loop until outcomes are acceptable and a delta plan with validation artifacts is produced.

Frequently Asked Questions about dotnet-modern-csharp

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

FAQPage Schema
How do I modernize C# code while staying compatible with my target framework?

Modernizing C# code requires analyzing your repository's LangVersion and TargetFramework settings to determine safe feature adoption. This process yields a concrete delta plan containing code changes, documentation updates, and validation steps that respect your SDK constraints.

What C# language features can I safely use when upgrading to C# 13 or C# 14?

When upgrading to C# 13 or 14, safe language features depend on your explicit LangVersion and TargetFramework settings. Evaluating these constraints helps produce a concrete delta plan that ensures version-aware usage and compatibility within your specific .NET repository environment.

How do I plan a safe C# version upgrade for my .NET repository?

Planning a safe C# version upgrade involves identifying version-aware language usage and producing a concrete delta plan. This plan includes specific code changes, documentation, tests, and CI notes designed to keep your .NET repository within its target framework and SDK constraints.

Does upgrading LangVersion affect compatibility with my .NET TargetFramework?

Yes, upgrading LangVersion can affect compatibility if new language features require newer runtime capabilities not present in your TargetFramework. Analyzing both settings ensures you only adopt modern C# features that remain safely compatible with your current SDK constraints.

What are the limitations when refactoring code to use modern C# features?

The primary limitation when refactoring to use modern C# features is the repository's explicit TargetFramework and SDK constraints. You must ensure that any version-aware language usage stays within these boundaries to avoid introducing runtime incompatibilities or build failures.