dotnet-source-gen-regex
Installation
SKILL.md
.NET Regex Source Generator
The regex source generator creates compile-time generated regex implementations that are:
- AOT-compatible: Works with Native AOT and trimming
- Debuggable: Step through the generated matching code
- Performant: No runtime compilation overhead
When to Use
This skill applies when the user:
- Wants to optimize regex performance
- Needs AOT-compatible regex patterns
- Asks about
[GeneratedRegex]attribute - Mentions converting
new Regex(...)to source-generated - Discusses regex compilation or startup performance