modern-csharp
Modern C# for .NET helps you write idiomatic C# code that aligns with your repository's target framework and language-version constraints. It guides feature selection across C# versions, handles compatibility decisions, and validates that new syntax is actually supported by your project's configuration.
Modern C# for .NET upgrades your C# code to modern syntax while respecting your repo's target framework.
AI-generated summary based on this skill's SKILL.md
Decision gist · record as of 2026-07-25
Modern C# for .NET upgrades your C# code to modern syntax while respecting your repo's target framework. Modern C# for .NET helps you write idiomatic C# code that aligns with your repository's target framework and language-version constraints. It guides feature selection across C# versions, handles compatibility decisions, and validates that new syntax is actually supported by your project's configuration.
Use it when
- Modern C# for .NET evaluates feature compatibility by checking your project's target framework and language-version settings.
- Modern C# for .NET guides you through upgrading your C# language version while respecting your repository's constraints.
Verify before relying
Read SKILL.md below before installing (5 files). Open directory: indexed for reading, not audited.
Install
managedcode/dotnet-skills/modern-csharp · repository language: C#
Open directory. Skills are indexed for reading, not audited. Review a skill's body before installing it.
Frequently asked questions
AI-generated answers based on this skill's SKILL.md and metadata
What is modern-csharp and how does it help with .NET projects?
Modern C# for .NET helps you write idiomatic C# code that aligns with your repository's target framework and language-version constraints. It guides feature selection across C# versions, handles compatibility decisions, and validates that new syntax is actually supported by your project's configuration.
Is this C# feature supported in my .NET version?
Modern C# for .NET evaluates feature compatibility by checking your project's target framework and language-version settings. It determines which C# language features are safe for your current project, accounting for both the .NET runtime version and explicit LangVersion configuration, so you know exactly what syntax you can safely adopt.
How do I upgrade C# language version in my project?
Modern C# for .NET guides you through upgrading your C# language version while respecting your repository's constraints. It helps configure language version and validate feature compatibility, ensuring that modernized code aligns with your project's target framework and won't cause runtime or compilation issues.
What C# features can I use on .NET 9?
Modern C# for .NET maps available features to your specific .NET version. It reviews which C# language features—including C# 13 and C# 14 capabilities—are compatible with .NET 9, helping you make informed decisions about which modern syntax and patterns you can safely adopt in your codebase.
How can I refactor legacy C# code to modern standards?
Modern C# for .NET reviews and refactors your codebase for idiomatic C# patterns while respecting your project's language-version constraints. It identifies opportunities to upgrade C# code to newer standards and C# idioms and best practices for .NET, ensuring modernization stays compatible with your target framework.
What's the difference between C# 13 and C# 14 feature compatibility?
Modern C# for .NET clarifies C# 13 and C# 14 feature compatibility by checking your project's LangVersion and target framework settings. It helps you select the right features for your repository, ensuring that any syntax you adopt is actually supported by your .NET version and project configuration.
SKILL.md
Rendered from the published skill. Quoted content, verbatim.
Modern C# for .NET
Trigger On
- the repo wants more modern idiomatic C# code
- a change depends on language-version compatibility
- the team is upgrading or reviewing C# feature usage across versions
- you need to know whether a C# 13 or C# 14 feature is safe to use
Value
- produce a concrete project delta: code, docs, config, tests, CI, or review artifact
- reduce ambiguity through explicit planning, verification, and final validation skills
- leave reusable project context so
(truncated - see the full file via the links below)
File tree — 5 files
catalog/Tools/Modern-CSharp/skills/modern-csharp/SKILL.md
catalog/Tools/Modern-CSharp/skills/modern-csharp/manifest.json
catalog/Tools/Modern-CSharp/skills/modern-csharp/references/csharp-modern-features.md
catalog/Tools/Modern-CSharp/skills/modern-csharp/references/migration.md
catalog/Tools/Modern-CSharp/skills/modern-csharp/references/patterns.md
Let your AI agent find skills like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 56,283 agent skills by what they can do, searchable in plain language.
wish › “Upgrade C# code to modern syntax while respecting repo's target framework”
Give your agent the search over MCP, or paste the wish link into any chat. No install? Search from any chat →
Related skills
CSharpier establishes a single, opinionated formatting standard for C# and XML in .NET projects. It detects current formatter state, installs the tool locally for reproducible CI, and documents ownership to avoid conflicts with dotnet format. Use this when your team values consistent formatting decisions over extensive configuration options.
format configures the SDK-provided dotnet format tool for .NET projects, enabling reproducible code formatting and analyzer fixes across local and CI environments. It respects .editorconfig as the source of truth for style preferences and helps avoid formatter conflicts by clarifying ownership when multiple tools are in use.
Roslynator equips .NET projects with open-source static analysis and code-cleanup capabilities through NuGet analyzer packages and an optional command-line tool. Configure rule severity in `.editorconfig`, run analysis and fix workflows, or detect unused code—all while respecting your repo's existing analyzer setup.
This skill guides you through adopting Swift's modern FormatStyle APIs for formatting values across numbers, dates, durations, measurements, and other types. It identifies legacy patterns like DateFormatter and C-style String(format:) calls, then shows you how to replace them with contemporary .formatted() methods and FormatStyle configurations. Perfect for modernizing iOS 15+ codebases.
This skill configures ESLint to lint JavaScript, TypeScript, and React code in .NET repositories that include frontend assets. It detects existing configurations, installs dependencies locally, and establishes repeatable lint commands in your build pipeline. Use it when your repo has package.json, frontend source files, or explicit linting requests.
Stylelint brings CSS and SCSS linting to .NET projects that bundle stylesheets alongside web frontends. Set up repo-local configuration, define clear ownership boundaries, and enforce naming conventions and duplicate-style cleanup without conflicting with other linters.
More skills Swift Language (NOASSERTION)