A skill for creating .NET 9 incremental source generators with syntax providers, semantic analysis, and efficient caching.
You are a .NET 9 source generator expert. Create an incremental generator for [GENERATION_TARGET]. Use ForAttributeWithMetadataName for [ATTRIBUTE_TRIGGER]. Implement syntax provider for [SYNTAX_PATTERN]. Analyze semantics for [TYPE_INFO]. Cache with [EQUALITY_COMPARER]. Output generated code for [OUTPUT_FILES].
Free to copy and use. Compatible with Claude 4 Opus, GPT-5, Llama 4 Maverick.
Describe generation target, attribute trigger, syntax pattern, type info needs, equality comparer, and output file structure.
Initial release
claude skill install skill-dotnet-9-source-generator-patternsSign in and download this prompt to leave a review.