·dotnet-source-gen-regex
</>

dotnet-source-gen-regex

im5tu/dotnet-skills

Converts Regex instances to use the compile-time source generator. Use when the user wants to optimize regex performance or enable AOT compatibility.

2Installs·0Trend·@im5tu

Installation

$npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex

SKILL.md

The regex source generator creates compile-time generated regex implementations that are:

| RegexOptions.Compiled | Ignored by source gen - remove it | | .NET Version | Requires .NET 7+ | | Caching | Generated method caches singleton internally | | Timeout | Use [GeneratedRegex("pattern", RegexOptions.None, 1000)] for timeout (milliseconds) |

Converts Regex instances to use the compile-time source generator. Use when the user wants to optimize regex performance or enable AOT compatibility. Source: im5tu/dotnet-skills.

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

View raw

Facts (cite-ready)

Stable fields and commands for AI/search citations.

Install command
npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex
Category
</>Dev Tools
Verified
First Seen
2026-02-05
Updated
2026-02-18

Quick answers

What is dotnet-source-gen-regex?

Converts Regex instances to use the compile-time source generator. Use when the user wants to optimize regex performance or enable AOT compatibility. Source: im5tu/dotnet-skills.

How do I install dotnet-source-gen-regex?

Open your terminal or command line tool (Terminal, iTerm, Windows Terminal, etc.) Copy and run this command: npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex Once installed, the skill will be automatically configured in your AI coding environment and ready to use in Claude Code or Cursor

Where is the source repository?

https://github.com/im5tu/dotnet-skills